[thelist] Getting PHP to work on my localhost Apache server

robertm-list at rmdesign.com robertm-list at rmdesign.com
Sat Apr 24 18:57:13 CDT 2004


On 23-Apr-04, at 4:47 PM, Tom Dell'Aringa wrote:

> Hi,
>
> Trying to install PHP on my Apache server. I added these lines in my
> httpd.conf
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php .php .phtml
> Action application/x-httpd-php "/php/php.exe"
>
> Yes when I load my test.php page:
>
> <html>
> <body>
> <?PHP phpinfo(); ?>
> </body>
> </html>
>
> All I'm getting is text. I am running apache in console mode, on
> localhost:89. I did restart it after I made the changes to the config
> file. What have I missed? I left everything in their default install
> configs.
>
> Tom
>
>

Is PHP installed at c:/php/?

Did you put test file in Apache root htdocs directory?

Did you call it via http not file://? (ie. http://localhost/test.php).

Do you have hide extensions turned on in Windows? (ie file name is 
really test.php.txt)

robert mcgonegal



More information about the thelist mailing list