-
Notifications
You must be signed in to change notification settings - Fork 60
500 internal error in browser? #25
Comments
Any help? All steps of building Telegram-cli, loging in for first time and run it as deamon has beed completed. Example.php file has been moved to web server root directory. But also unning it cause a 500 Internal server error. I commented the php codes all and activated them one by one and i found out the problem is this line: notices: The file has been checked and is already there. Edit: But nothing again.. |
Any help? This is my first time in Linux. Don't disappoint me error_log file: [Wed Feb 10 11:02:04.251133 2016] [:error] [pid 1172] [client 10.0.1.24:49168] PHP Warning: stream_socket_client(): unable to connect to unix:///tmp/tg.sck (No such file or directory) in /var/www/html/vendor/zyberspace/telegram-cli-client/lib/Zyberspace/Telegram/Cli/RawClient.php on line 48 |
Hi, i am currently on vacation so excuse me if i am not able to answer in under 24 hours. :) The error in your log says that the client is unable to connect to the socket ( Did you do this part in the README?
Note that you said that you are using "telegramd" as user, so your
To check the file permissions you can just run this:
If you are running the telegram cli as root user and you did not change the socket permissions afterwards the
But you should really prefer the method above with the groups, as it is more secure. |
I did all the advises in past but it doesn't work. I passed this problem (temporarily) by running the Telegram-CLI on a VM Machine and using the PHP-Telegram-CLI-Client on my host machine (windows) via listening on port in TG-CLI ( -S [port#] ) At all, Thanks for this good job |
i got this error in firefox when i opened example: Fatal error: Uncaught exception 'Zyberspace\Telegram\Cli\ClientException' with message 'Could not connect to socket "unix:///tmp/tg.sck"' in /var/www/html/vendor/zyberspace/telegram-cli-client/lib/Zyberspace/Telegram/Cli/RawClient.php on line 50but when i run via php example.php the problem solved! |
I installed this package and did all of the specified steps.
But the running Example.php displays 500 internal error.
Whats happened?
Whats wrong?
How could i fix this?
The text was updated successfully, but these errors were encountered: