LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-25-2010, 02:53 AM   #1
thegerm
LQ Newbie
 
Registered: May 2007
Location: Melbourne, Australia
Posts: 12

Rep: Reputation: 0
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
 
Old 07-25-2010, 04:21 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
1 members found this post helpful.
Old 07-25-2010, 06:11 AM   #3
thegerm
LQ Newbie
 
Registered: May 2007
Location: Melbourne, Australia
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 07-25-2010, 07:53 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 07-25-2010, 10:13 PM   #5
thegerm
LQ Newbie
 
Registered: May 2007
Location: Melbourne, Australia
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 07-26-2010, 06:22 AM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) LXer Syndicated Linux News 0 06-14-2010 11:42 PM
LXer: The Perfect Server - Ubuntu Lucid Lynx (Ubuntu 10.04) [ISPConfig 2] LXer Syndicated Linux News 0 05-02-2010 06:32 PM
LXer: What’s New in Ubuntu 10.04 Lucid Lynx LXer Syndicated Linux News 0 04-29-2010 03:10 AM
LXer: Ubuntu 10.04 Lucid Lynx gets 14 new wallpapers LXer Syndicated Linux News 0 04-14-2010 07:41 PM
LXer: 15 Beautiful Wallpapers from Ubuntu Artwork Pool for Ubuntu 10.04 Lucid Lynx LXer Syndicated Linux News 0 02-23-2010 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration