Have lampp use PHP code in a directory not under /opt/lampp

Posted by Sundeep on Ask Ubuntu See other posts from Ask Ubuntu or by Sundeep
Published on 2011-06-26T13:56:03Z Indexed on 2011/06/26 16:30 UTC
Read the original article Hit count: 300

Filed under:
|
|

I have my lampp installed in the default /opt/lampp directory and the PHP code is in the htdocs folder. Now, to edit any of the files I have to use sudo permissions and have to type my password (or use sudo -i) which I do not want to do.

All I want is to know if I can somehow make lampp use the code that is residing in a folder not located under /opt/lampp/. I tried giving full path and using a '..' relative path - both did not seem to work.

Or is it okay to do my work in /opt/lampp/ folder by using sudo all the the time?

© Ask Ubuntu or respective owner

Related posts about apache

Related posts about php