Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old June 5th, 2007   #1
TannerLD
Just Give Me the Beans!
 
Join Date: Aug 2006
Location: Atlanta, GA
Beans: 58
Ubuntu 9.10 Karmic Koala
Apache & PHP Blank Page

Hello all,

After attempting to work with apache2 and php, I discovered that it was not displaying php pages for some reason. When I goto them in Firefox, it simply shows a blank page. Now I did a phpinfo(); page just to test, and that does not work either, but it works in the cli. How can I fix this?

Thanks
-Tanner
TannerLD is offline   Reply With Quote
Old June 6th, 2007   #2
rich.bradshaw
Has an Ubuntu Drip
 
rich.bradshaw's Avatar
 
Join Date: May 2006
Location: UK
Beans: 664
Ubuntu 8.04 Hardy Heron
Re: Apache & PHP Blank Page

I used this to get going,


https://help.ubuntu.com/community/ApacheMySQLPHP


and it all works fine... Make sure you have all the relevant packages installed.
rich.bradshaw is offline   Reply With Quote
Old June 6th, 2007   #3
TannerLD
Just Give Me the Beans!
 
Join Date: Aug 2006
Location: Atlanta, GA
Beans: 58
Ubuntu 9.10 Karmic Koala
Re: Apache & PHP Blank Page

If it helps at all, I have found this in my error.log for apache.

[Tue Jun 05 21:55:10 2007] [notice] child pid 9210 exit signal Segmentation fault (11), possible coredump in /tmp

-Tanner
TannerLD is offline   Reply With Quote
Old June 7th, 2007   #4
brien
First Cup of Ubuntu
 
Join Date: Aug 2006
Beans: 8
Ubuntu 7.04 Feisty Fawn
Re: Apache & PHP Blank Page

Heya Tanner,

I just ran across this exact issue myself this morning. Can you provide the output of this command:
Quote:
ls /etc/php5/conf.d/*.ini; cat /etc/php5/conf.d/*.ini
in my situation the problem was caused by a module specific to cli php (it was php-gtk2 module) that was loading up with apache2 php and causing a seg fault since it's only meant to run under cli php.

to find out which module may be causing the problem, move (with 'sudo mv') all of those .ini files listed in /etc/php5/conf.d and move them into a different directory, i made a "inifiles" directory under the conf.d directory and then moved them all in there. after you have moved all the .ini files from conf.d, restart apache2

Quote:
sudo /etc/init.d/apache2 restart
test your phpinfo(); script and it should now work (hopefully). if so, move *one* of the .ini files back into conf.d directory, then restart apache2 again. test phpinfo(); script again, if that works, repeat... bla bla bla you get the picture. when you move an ini file, restart apache2, and then see the segfault again, you know that the last .ini file you moved is causing the problem. look at that .ini file and post the name and the contents in this thread.

if the module causing the problem is not needed, it may just be worth uninstalling it.

--brien.
__________________
-----------------------------------------
Hangout .. : http://forums.reebosak.net/
Learn .... : http://www.code-a-day.com/
brien is offline   Reply With Quote
Old June 8th, 2007   #5
TannerLD
Just Give Me the Beans!
 
Join Date: Aug 2006
Location: Atlanta, GA
Beans: 58
Ubuntu 9.10 Karmic Koala
Re: Apache & PHP Blank Page

Hello,

I did install php-gtk. After following your instructions and removing it; eureka it works. Many thanks.

-Tanner
TannerLD is offline   Reply With Quote
Old June 9th, 2007   #6
brien
First Cup of Ubuntu
 
Join Date: Aug 2006
Beans: 8
Ubuntu 7.04 Feisty Fawn
Re: Apache & PHP Blank Page

awesome!

--brien
__________________
-----------------------------------------
Hangout .. : http://forums.reebosak.net/
Learn .... : http://www.code-a-day.com/
brien is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:21 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry