Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I was running a small LAMP setup on my home network with Ubuntu 9.4. Every thing was working OK. I then upgraded to 10.04 and now my php does get executed. Apache is still working, but I suspect something in the config has changed, but I don't know what.
When I try to load a .php file, the resultant web page is just blank, if I have a .html file with php code in it, the page is not rendered from the point where the php starts. I have checked /var/log/apache2/error.log and there is nothing in that file.
You should take a look at apache error_log.
Also you can set "display_errors = On" in php.ini and restart apache to see if you get any errors in your browser
The display errors in php.ini was already set to 'on', however I forced the output of errors to a file and found this:-
--------------------------------------------
[25-Jul-2010 21:01:14] PHP Warning: PHP Startup: mysqli: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
[25-Jul-2010 21:01:14] PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
[25-Jul-2010 21:01:14] PHP Warning: PHP Startup: mysqli: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
[25-Jul-2010 21:01:14] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/pdo.so' - /usr/share/php/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
[25-Jul-2010 21:01:14] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/pdo_mysql.so' - /usr/share/php/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[25-Jul-2010 21:01:15] PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
[25-Jul-2010 21:01:15] PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
--------------------------------------------
but now the question is - does this really mean anything?
Either search on the error messages your getting (typically you will get indications that something failed because of a deprecated function on line xxx) or search for "ubuntu 10.04 downgrade php" and you will get lots of information on this subject.
I ran into this with the pear mail function, which got hit. The work around in my case was to change the error level to ignore this error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.