简体   繁体   中英

How to execute “php server.php” in cpanel?

I have websocket based application which requires to run as php server.php .

In my local Ubuntu computer I run on terminal as php server.php . And it works without a problem unless I break that up with Ctrl + C

So, how can I achive that in live server? Is there some features in cpanel?

您可以使用SSH ,也可以直接通过url来运行它。

Without jail shell access you can not login that server through SSH. Please contact your server provider and ask them to enable SSH access for your account,

If you want to run that command every day, then I will suggest you please setup cron job through cPanel.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM