Page is a not externally linkable
- Hardware and OS Related Technologies
-- Linux, Unix, and *nix like Operating Systems
---- Running php and mysql commands at terminal


ocon - 3:41 pm on Nov 8, 2010 (gmt 0)


I'm trying to run php and mysql commands from the command terminal.

I'd like to run commands such as: php mypage.php

But I can't because I get this error: -sh: php: not found

What I have to do is run: /opt/php5/bin/php mypage.php

I can't even find the path to run mysql from the command line, but I know mysql works because it works on the site.

How can I configure my Ubuntu 10.04 setup to allow me to use short commands such as php instead of /opt/php5/bin/php and mysql instead of (how do I find the path?).


Thread source:: http://www.webmasterworld.com/linux/4228058.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com