I got a website built in Laravel that uses web sockets for real time stuff. To make sure the socket server keeps running, I need to install a task runner. Click here to check the supervisor installation instructions.
I got a VPS CentOS 7 hosting. When I connect through SSH using hosting account it allows me to list the directories but then I cannot run command like yum install supervisor and I get an error message that I don't have root permissions. When I connect through SSH using root credentials, I can't even list directories for example public_html and my project.
I'm unable to figure out what exactly Is going on. I spoke to support and they literally kept connected with me for an HOUR but there was no actual help. I requested them to tell why I can't browse public_html and other directories being a root user and they could not help me out. I'm posting my question here hoping for a quick help.
Thanks in advance.
Solved! Go to Solution.
I guess I'm confused by your question - there is no bin folder in the home directory - the Home directory is where each of the cPanel user folders are stored - /usr/ is different than /home
You need to be very careful on the VPS / SSH as you can easily take down your entire server - having Root access means you have super user privileges to to the entire server - where as with cPanel you just have access to one "folder / subfolders" and
In your example what would change is the laravel-echo would change to whatever username you have for the cPanel account you've created on the VPS
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community
I just want to recap what you are attempting to do and the steps I would try / do
1) You've logged into to WHM for your VPS and gone to Terminal
2) You have run yum install supervisor
3) You now need to get to the home directory for your website
4) You've done cd /home
5) then cd /USER where user is the user for the cPanel account for your site
6) The directories aren't showing????
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community
Yes directories aren't showing. I mean, It shows some directories but the HOME directory is not there. I managed to install the supervisor (task runner) and now I need to run it but there's no php executable in the bin directory.
Please take the following as an example:
[program:websockets]
command=/usr/bin/php /home/laravel-echo/laravel-websockets/artisan websockets:serve
numprocs=1
autostart=true
autorestart=true
user=laravel-echo
If you check the seconds line which starts with the word command, the PHP executable path is specified but when I go to /home/bin/ (there is no executable inside). Where do I locate the PHP executable?
Thank you.
I guess I'm confused by your question - there is no bin folder in the home directory - the Home directory is where each of the cPanel user folders are stored - /usr/ is different than /home
You need to be very careful on the VPS / SSH as you can easily take down your entire server - having Root access means you have super user privileges to to the entire server - where as with cPanel you just have access to one "folder / subfolders" and
In your example what would change is the laravel-echo would change to whatever username you have for the cPanel account you've created on the VPS
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community