ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Suppose I am troubleshooting a client site that is not loading properly and I find find this error on the php error_log:
[Mon May 28 04:56:09 2012] [error] [client 109.182.33.xx] PHP Warning: require(): Failed opening './includes/login.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/public_html/index.php on line 5
[Mon May 28 04:56:09 2012] [error] [client 109.182.33.xx] PHP Fatal error: Call to undefined function login() in /var/www/public_html/index.php on line 12
The first thing to check is whether you actually have a public_html directory under /var/www/. I would be surprised if you did. Generally, you will have the apache files including index.html under /var/www/html or htdocs depending upon which distribution you are using which you have not indicated. The public_html directory should be in the /home/user directory and you have to enable/configure this as it usually isn't set up by default. You need to load the userdir_module for your distribution.
Check your DocumentRoot in the apache httpd.conf file and if you don't resolve this, indicate which Linux you are using in your next post.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.