LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   PHP not working on Lucid Lynx (Ubuntu 10.04) (http://www.linuxquestions.org/questions/linux-server-73/php-not-working-on-lucid-lynx-ubuntu-10-04-a-822001/)

thegerm 07-25-2010 03:53 AM

PHP not working on Lucid Lynx (Ubuntu 10.04)
 
Hi,

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.

Any body got any ideas where I could look??

thanks,
thegerm

bathory 07-25-2010 05:21 AM

Hi,

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

Regards

thegerm 07-25-2010 07:11 AM

Hi,

Thanks for your suggestions.

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?

regs,
the germ

bathory 07-25-2010 08:53 AM

Quote:

Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
That means that you have different php extensions version than the php that is installed

thegerm 07-25-2010 11:13 PM

Hi Bathory,

I really appreciate your help here.

I did updates for all packages I could think of, including php, apache and mysql, but I still get the same result.

Do you know how I can fix this. The only way I can think of, is a clean install!!

thanks,
thegerm

Noway2 07-26-2010 07:22 AM

Ununtu 10.04 uses php 5.3, which breaks a lot of existing PHP packages. Karmic (9.10) and before used PHP 5.2. Here is one link with some information:http://www.nickveenhof.be/blog/rever...ucid-lynx-1004

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.


All times are GMT -5. The time now is 07:22 PM.