Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Can not run php in terminal



Threaded Mode | Print  

 Can not run php in terminal, Can not run php in terminal (5 Replies, Read 29090 times)
doxtor
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hello team,

When I login in terminal, and run php there, it said that php: command not found.
While i'm sure, there's php installed, because I can open my website and webuzo panel.
How to enable php command in terminal?

Thank you,
Best regards
IP: --   

Can not run php in terminal
webuzo_manager
Group: Member
Post Group: Elite Member
Posts: 268
Status:
Hi doxtor,

Hmm, strange issue.

Might be the symlink that links to the custom PHP binary location in Webuzo is broken.

Can you check if you can run PHP in the terminal by giving the full path?

You can find the PHP binary at the following location:
/usr/local/apps/php{VERSION_NO}/bin/php

Edited by webuzo_manager : June 21, 2018, 5:32 am
IP: --   

Can not run php in terminal
doxtor
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hi nikhil.m,

Yes, it works with full path :-)

What problem is it? And how to repair it?
Thank you so much
IP: --   

Can not run php in terminal
webuzo_manager
Group: Member
Post Group: Elite Member
Posts: 268
Status:
Hi doxtor,

Glad to know that it helped.

>>What problem is it? And how to repair it?

It seems that the Symlink that links the /usr/bin/php to the custom Webuzo PHP binary might be broken.

You can repair it using the following command:

ln -sf /usr/local/apps/php{VERSION_NO}/bin/php  /usr/bin/php

After executing the above command running PHP scripts directly would work.

Eg:

php  /path/to/php/file
IP: --   

Can not run php in terminal
doxtor
Group: Member
Post Group: Newbie
Posts: 3
Status:
Thank you so much nikhil.m
Now it's work :-)
IP: --   

Can not run php in terminal
webuzo_manager
Group: Member
Post Group: Elite Member
Posts: 268
Status:
Hi doxtor,

Glad to know that your issue has been resolved.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 9:56 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.021