Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Dear all
i have a web server that ran perfectly php site. today that i checked it my web site output was white page, nothing output. when i tried to restart httpd i received this error:
Starting httpd:[warn] module php5_module is already loaded, skipping
i found that there is a config file /etc/httpd/conf.d/php.conf that contains : " #LoadModule php5_module modules/libphp5.so"
i commented it and restart httpd. everything is Ok. but by web site still results white page, i mean nothing.
Dear all
i have a web server that ran perfectly php site. today that i checked it my web site output was white page, nothing output. when i tried to restart httpd i received this error:
Starting httpd:[warn] module php5_module is already loaded, skipping
i found that there is a config file /etc/httpd/conf.d/php.conf that contains : " #LoadModule php5_module modules/libphp5.so"
i commented it and restart httpd. everything is Ok. but by web site still results white page, i mean nothing.
please somebody help me, thanks
Well, you say "everything is ok"...do you still have a problem or not?
The warning is just that...a warning. The better questions to ask are "did anything change on the page(s) lately?" and "what do the apache error logs show?".
sorry. about "everything is ok" i mean httpd restart. but web site doesn't load. i checked http error_log. my web site's default folder is /var/www/html but when i want to view web site register an error in error_log : "file does not exits: /var/www/html/web. and nothing displayed.
White screen of death, it happened to me, but I can't remember exact reason, try finding on google. there might be various reason.
Seems that PHP interpreter for Apache is not working. Maybe some update of Apache or PHP has been made?
Also, check out apache log.
Which version of Apache are you using, which OS ?
On Ubuntu, with Apache 2, there is a directory /etc/apache2/mods-enabled
there is a php5.load with only one line: LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
Try to check again where is libphp5.so for Apache, and check for your version of OS/Apache where shall it be in configuration, in httpd.conf or somewhere else.
The warning you get won't affect PHP running, as I've seen that error before, and PHP pages render fine. The only times I've seen the WSOD is if the PHP page itself has errors on it (see question one...have the page(s) been changed lately?), or there is another error (see question two...look in the Apache error_log file).
The error logs TELL YOU exactly what's wrong with the page loading. That should be your first place to look....
Quote:
Originally Posted by ahmadirad
File does not exist: /var/www/html/web
Ok...is that your DocumentRoot directory?? If it's been deleted, that would certainly explain why you don't have web content. If so, restore it from backups.
no changes to index.php and DocumentRoot was /var/www/html at first. there is no /var/www/html/web before. i don't know why it try to execute default web page into directory /var/www/html/web. also there are some .php files in the DocumentRoot that not of them can run i mean when i type url with that file nothing to display (all .php file goes blank)
If nothing is shown, most probably is problem with php module for Apache.
I'm not sure about CentOS, but in this directory: /etc/httpd/
shall be directory mods-enabled
Check out the file php5.load
It must have line that loads php5 module (something as in previous post);
Code:
LoadModule php5_module path/to/libphp5.so
Find out the path of that module on your OS, it shall be:
/usr/lib/httpd/modules/libphp5.so
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.