Open Rancbar opened 8 years ago
I'm compiled Telegram-CLI and loged in to my account, and its works like a charm. I installed LAMP ([in Linux], Apache, MySQL, PHP) and i tested them works. Then i installed This project on php project root dir using "Composer". and tested the examples but i couldn't make them run... and running them cause a 500 Internal server error.
All steps of building Telegram-cli, loging in for first time and run it as deamon has beed completed.
I commented the php codes all and activated them one by one and i found out the problem is ('unix:///tmp/tg.sck'); I cant see any error log or such and i dont know whats the problem
notices: The socket file has been checked and after running tg-cli, it is already there. The telegram-cli is running as a daemon on root user. I added a telegramd group and telegramd user assigned to that group. I detacted that php commands running under apache user account. So i changed the apache user group to telegramd.
Edit:
I changed the httpd.conf
user and group parameters to run at the same (telegramd) account
User telegramd
Group telegramd
And i have restarted the apache and checked the username by
exec('whoami');
The Apache is running under "telegramd" user account.
But nothing again...
What should i do????
I want to access Telegram-cli commands using php and i did all of installation steps but when i enter the examples in address bar its display
500 internal error in browser?
What is this problem reason? How could i fix this?
Thanks in advance