Click to See Complete Forum and Search --> : pho works in root directory, but not in virtual directories


scotcro
12-17-2002, 08:40 PM
I have just started working with RH 8.0/Apache 2.0/ PHP 4.

<? phpinfo() ?> works in the document root, but not in a subdirectory. The subdirectory is configured as a virtualhost in httpd.conf.

Any Ideas?

dalecosp
12-18-2002, 11:07 AM
Hmmm, first thing I'd do is call phpinfo() with the long (<?php) tag; not that it'd do much good, I expect...

Are you using name-based VirtualHosts, or IP based? Is PHP a standalone module, or the Apache DSO?

Sounds likes a hard look at httpd.conf might be in order; try and determine whether the AddModule, LoadModule, and AddType directives are in a location such that they do not apply to the entire server, or are we facing a different issue?