Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old August 23rd, 2003, 08:49 PM
satishs satishs is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: India
Posts: 4 satishs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy PHP + Apache Installation on Win XP Pro.

I have successfully installed Apache 1.3.9 as module with PHP 4.3.2 on a Win XP Pro machine.
When I start Apache, I get the message "Apache 1.3.9 PHP 4.3.2 running".
I am also able to see the default Apache page when I type URL on my browser (IE 6). However, whenever I try to load any .php file, I get a blank page.
I am sure the file is saved as .php and not .txt. Still I am unable to solve this mystery.
I have no problems with .html fles.
Can someone tell me what is going wrong here?
You can view my attached httpd.conf file.
Attached Files
File Type: txt httpdconf.txt (27.0 KB, 810 views)

Reply With Quote
  #2  
Old August 23rd, 2003, 10:20 PM
pentapenguin pentapenguin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 51 pentapenguin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 7 sec
Reputation Power: 6
I think your problem is that you didn't tell Apache where PHP is located.
Change (# ScriptAlias /php/ "c:/php/") to (ScriptAlias /php/ "c:/php/") or to where ever you installed PHP.
(You have to remove the comment mark "#".)
Let me know if that works.

Reply With Quote
  #3  
Old August 24th, 2003, 10:20 PM
satishs satishs is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: India
Posts: 4 satishs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello pentapenguin,

Thanks for your help.

I tried your suggestion, but regret to say it did not work. As I mentioned in my first message, Apache says that PHP 4.3.2 is running. I am running it as a sapi module instead of using the php.exe. This is also strongly recommended for windows in the php manual.

So it appears that the problem lies somewhere else.

C:/php/ is the correct path to php on my machine.

Reply With Quote
  #4  
Old August 25th, 2003, 08:05 PM
digitalamit digitalamit is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: New Delhi, India
Posts: 19 digitalamit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to digitalamit Send a message via AIM to digitalamit Send a message via Yahoo to digitalamit
Ok, a step by step guide ... Setting up your first web server on windows with Apache, PHP and MySQL

Try this, and tell whether it works or not or at which step you are stuck!

HTH!

Reply With Quote
  #5  
Old August 27th, 2003, 11:52 PM
satishs satishs is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: India
Posts: 4 satishs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello Amit,

Thanks for the reply. The set-up instructions on your website are truly remarkable for their simplicity and clarity.
However, I have still not been able to solve my problem, although I followed your instructions to the letter !

The only difference is that I am installing Apache with PHP on a single system (localhost) so I have not created a virtual domain. Also, I have retained my root web directory as the default apache root directory. Hope this is not an issue.

The server pinging is absolutely okay and I am also able to get the PHP version details when I type php -v in the PHP directory in command prompt.

The only problem is that I am unable to get the server to process any .php files (I also tried your phpinfo code). I have no problems with pure html files (i.e. without any PHP code).

Can you figure out where the problem could be.

Once again, I am using a Windows XP pro machine with IE 6 browser. The Apache version is 1.3.9 with PHP 4.3.2.

Regards.

Reply With Quote
  #6  
Old August 28th, 2003, 08:48 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
satishs,

I'm not sure if you've tried this... I didn't see it in your httpd.conf file. Add this code:

AddType application/x-httpd-php .php

Don't forget to restart Apache after saving the configuration file.
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #7  
Old August 28th, 2003, 10:31 PM
satishs satishs is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: India
Posts: 4 satishs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello FrankieShakes,

I have used

"AddType application/x-httpd-php4 .php .phtml .php3"

in my httpd.conf, since I am using PHP4 and this is recommended in the manual for PHP4.

However, if you think "AddType application/x-httpd-php .php " is better, I will try your suggestion and revert.

Regards.

Reply With Quote
  #8  
Old February 22nd, 2004, 08:50 PM
mac_connect mac_connect is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 mac_connect User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
satishs,

After I got a working Apache, MySQL and PHP setup on Windows XP I created this guide:
Installing Apache, MySQL and PHP on Windows XP



I hope it helps...

Reply With Quote
  #9  
Old May 12th, 2004, 02:03 PM
Chuck_ZA Chuck_ZA is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 Chuck_ZA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have had a similar problem. I am running Windows XP Home, Apache/2.0.49 (Win32) PHP/4.3.6

I can load pages with php extensions but I can't load index.php.

Can anyone explain this - is there a solution to this thread otherwise, plz?

Reply With Quote
  #10  
Old May 23rd, 2004, 03:50 PM
digitalamit digitalamit is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: New Delhi, India
Posts: 19 digitalamit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to digitalamit Send a message via AIM to digitalamit Send a message via Yahoo to digitalamit
index.php

Edit your apache's http.conf file and try to find out the line starting with

Code:
DirectoryIndex ....


and change this to

Code:
DirectoryIndex index.phtml index.php index.php3 index.shtml index.html index.htm


This tells apache which files to show on startup when no files is specifiec in the url.

HTH!

Reply With Quote
  #11  
Old April 27th, 2005, 09:22 AM
anushi2004 anushi2004 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 1 anushi2004 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 31 sec
Reputation Power: 0
Hello,
I am having the same problem as above. I am using Windows XP, Apache 1.3.33 ,
PHP 4.

The Apache installation is fine and i can see the startup page ( http://localhost)
But I cannot view any php files. It shows a blank screen.

What should be the exact configuration in httpd.conf file ?

Reply With Quote
  #12  
Old April 27th, 2005, 04:01 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 24 m 44 sec
Reputation Power: 7
Quote:
Originally Posted by anushi2004
Hello,
I am having the same problem as above. I am using Windows XP, Apache 1.3.33 ,
PHP 4.

The Apache installation is fine and i can see the startup page ( http://localhost)
But I cannot view any php files. It shows a blank screen.

What should be the exact configuration in httpd.conf file ?



ok under you dso support list add the following lines

LoadModule php4_module c:/php4/sapi/php4apache2.dll
AddType application/x-httpd-php .php


also comment out the other addtype with php in it near the bottom of your httpd.conf

next check to see if you put the php4ts.dll in your system32 folder.
__________________
Apache Expert

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > PHP + Apache Installation on Win XP Pro.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway