Apache Wont Display PHP
Moderator: General Moderators
Apache Wont Display PHP
Hello All,
Well after figuring out my WiFi card issue, I am turning my FC5 Distro into the ultimate Dev Shed!
But I have configured Apache to work with PHP (so I hoped)
But when I go to the index of a php-project, nothing shows. It doesnt ask me to download the file or anything, nothing shows.
Thanks,
Rick
Well after figuring out my WiFi card issue, I am turning my FC5 Distro into the ultimate Dev Shed!
But I have configured Apache to work with PHP (so I hoped)
But when I go to the index of a php-project, nothing shows. It doesnt ask me to download the file or anything, nothing shows.
Thanks,
Rick
-
Cladinshadows
- Forum Newbie
- Posts: 10
- Joined: Sun Aug 06, 2006 3:57 am
-
Cladinshadows
- Forum Newbie
- Posts: 10
- Joined: Sun Aug 06, 2006 3:57 am
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
Cladinshadows
- Forum Newbie
- Posts: 10
- Joined: Sun Aug 06, 2006 3:57 am
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Make a phpinfo() page and see if it loads. A blank page is usually a sign that there is an error in the script and that display_errors is off.LiveFree wrote:No Source Code is displayed
Code for your phpinfo.php page.
Code: Select all
<?php
phpinfo();
?>- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
-
Cladinshadows
- Forum Newbie
- Posts: 10
- Joined: Sun Aug 06, 2006 3:57 am
I made a unicode text file and wrote it in, then I saved it as a .php. I saved the file as index.php and put it in the htdocs folder in my Apache folder.Everah wrote:Which file did you add those directives to? Where in the file did you add them?Cladinshadows wrote:Yes, I did restart the service.
My friend sent me over a html file and it opened that correctly, but the phpinfo page I made to test it loads blank.
My source:
<?php
phpinfo();
?>
As an added note, I also attempted to open the file via command prompt:
cd php
C:\php: C:\apache2\apache2\htdocs\index.php
It then asked me what program I wished to use to open the file...I'm not sure what I'm suppose to select here (if anything), but I chose Internet explorer and the file won't even open.
My php.ini is in my windows folder as well.
Last edited by Cladinshadows on Mon Aug 07, 2006 1:35 am, edited 1 time in total.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Sorry, should have clarified. I meant these...
Where did you put these statements? Also, you restarted the server, correct? And lastly, you said that the page display is blank, but the PHP code shows in 'View Source'? Please confirm.
Code: Select all
LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php