Jump to content

Vista-Apache-PHP Config


sunsetph

Recommended Posts

Need help on Apache/PHP install/config problem:

Running Windows Vista Ultimate 32-bit

Installed Apache 2.2.11 win32-x86-no_ssl msi

Installed php 5.2.9-2 win32 msi

Modified php.ini:

  doc_root = "c:\Program Files\Apache Software Foundation\Apache2.2\htdocs"

Verified:

  extension_dir ="C:\Program Files\PHP\ext"

  error_reporting = E_ALL

Modified httpd.conf with:

  LoadModule php5_module "c:/Program Files/PHP/php5apache2_2.dll"

  In <IfModule mime_module>

    AddType application/x-httpd-php .php

    AddType application/x-httpd-php-source .phps

  DirectoryIndex index.html index.php

  PHPIniDir "C:/Program Files/PHP"

Doubled-checked all directories and file names

Created info.php with <?php phpinfo(); ?>

Administrator stop-start apache

http://localhost/ replies It Works

http://localhost/info.php replies <?php phpinfo(); ?> instead of showing php info

restarted computer, same result.  Googled, did not see anybody with same problem.  Tried some of the suggestions, reran installs to repair apache and php - with stop/start of course, same result.  No error log file in PHP directory.  Just rebooted to see if registry needs reloading, same result.  So I am now stuck.

Any suggestion on what I am missing?

 

Link to comment
https://forums.phpfreaks.com/topic/158805-vista-apache-php-config/
Share on other sites

#1 Welcome to PHP Freaks

 

#2 this post is in the wrong section,

this should be in PHP Installation & Configuration

 

However, the problem at a guess is Microsoft well okay more Vista,

try moving your webroot from

c:\Program Files\Apache Software Foundation\Apache2.2\htdocs

to somewhere outside program files

also put PHP on the top level as well

the User Account Control (UAC) are a pain but i'm not sure if they will affect PHP or apache,

 

infact after a quick check, i found this Setting up Apache, PHP, MySQL under Vista it sounds like the solution for you

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.