Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

virtual hosts

General discussions related to php

Moderators: macek, egami, gesf

virtual hosts

Postby Tobias » Mon Oct 28, 2002 11:22 pm

Hello!

I have installed PHP 4 with Apache 1.3 and everything works just fine if the .php file is in the main root directory.
The problem occurs when I try to open .php files from my virtual hosts, then I get an errormessage in my browser, something like this:
"Warning: Failed opening '/www/users/sifon/test.php' for inclusion (include_path='. ;c:\php\includes;d:\www\users\sifon;d:\www\users\h
iiulink') in Unknown on line 0"
It seems like it does not find the .php file.

I have tried to add the path to my .php file in the include_path and several other paths in both php.ini and httpd.conf.

Can anyone give me a hint please!
Tobias
New php-forum User
New php-forum User
 
Posts: 4
Joined: Mon Oct 28, 2002 4:43 am

Postby webwired » Wed Dec 11, 2002 10:49 am

You should recheck your include path on your .php page... I've had that problem before...
User avatar
webwired
New php-forum User
New php-forum User
 
Posts: 26
Joined: Sat Nov 23, 2002 5:20 pm
Location: St. Louis, Missouri

Re: virtual hosts

Postby WiZARD » Thu Dec 12, 2002 8:29 am

Tobias wrote:Hello!

I have installed PHP 4 with Apache 1.3 and everything works just fine if the .php file is in the main root directory.
The problem occurs when I try to open .php files from my virtual hosts, then I get an errormessage in my browser, something like this:
"Warning: Failed opening '/www/users/sifon/test.php' for inclusion (include_path='. ;c:\php\includes;d:\www\users\sifon;d:\www\users\h
iiulink') in Unknown on line 0"
It seems like it does not find the .php file.

I have tried to add the path to my .php file in the include_path and several other paths in both php.ini and httpd.conf.

Can anyone give me a hint please!

Hi!
if true you need check path to root of your httpd server Apache. I'think what path to the real root dir not correct :wink:
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.