|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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! |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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... |
|
#9
|
|||
|
|||
|
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? |
|
#10
|
|||
|
|||
|
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! |
|
#11
|
|||
|
|||
|
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 ? |
|
#12
|
|||
|
|||
|
Quote:
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 |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > PHP + Apache Installation on Win XP Pro. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|