shinokada wrote:I am trying to add the following to httpd.conf.
- Code: Select all
<VirtualHost 192.168.0.80>
ServerName phpweb20
DocumentRoot C:\xampp\htdocs\phpweb20
<Directory "C:\xampp\htdocs\phpweb20">
AllowOverride All
Options All
</Directory>
php_value include_path .:C:\xampp\htdocs\phpweb20\include:C:\xampp\php\pear\
php_value magic_quotes_gpc off
php_value register_globals off
</VirtualHost>
That's not where you add that. Open up /xampp/apache/conf/extra/httpd-vhosts.conf and it goes there.
You also need to try writing it more like this:
- Code: Select all
<VirtualHost *:80>
ServerName phpweb20
DocumentRoot C:\xampp\htdocs\phpweb20
<Directory "C:\xampp\htdocs\phpweb20">
AllowOverride All
Options All
</Directory>
</VirtualHost>
The additional values you set are not necessary.
php_value magic_quotes_gpc off
php_value register_globals off
These are already set to off by default in XAMPP. You can find them in /xampp/php/php.ini .
I hope that helps.