PDA

View Full Version : Httpd.conf Customization


aleborg
03-05-2004, 03:44 AM
I've added this for a customer in Httpd.conf Customization:

<Directory /home/web455/domains/ssssssss.nu/public_html>
php_flag register_globals off
php_flag magic_quotes_gpc off
php_flag display_errors on
</Directory>


But it wont work, what's wrong? I've restarted Apache.

DirectAdmin Support
03-05-2004, 11:59 AM
What doesn't work? apache, or the settings you've made arn't doing anything?

John

aleborg
03-08-2004, 12:13 AM
The changes arn't doing anything!

DirectAdmin Support
03-08-2004, 11:49 AM
Not sure, what does the whole virtualhost look like?

John

aleborg
03-09-2004, 03:48 AM
<VirtualHost 217.78.42.15:80>
<Directory /home/web455/domains/xxxxx.nu/public_html>
php_flag register_globals 0
php_flag magic_quotes_gpc 0
php_flag display_errors 1
</Directory>

ServerName www.xxxxx.nu
ServerAlias www.xxxxx.nu xxxxx.nu
ServerAdmin webmaster@xxxxx.nu
DocumentRoot /home/web455/domains/xxxxx.nu/public_html
ScriptAlias /cgi-bin/ /home/web455/domains/xxxxx.nu/public_html/cgi-bin/

User web455
Group web455
CustomLog /var/log/httpd/domains/xxxxx.nu.bytes bytes
CustomLog /var/log/httpd/domains/xxxxx.nu.log combined
ErrorLog /var/log/httpd/domains/xxxxx.nu.error.log

<Directory /home/web455/domains/xxxxx.nu/public_html>
Options +Includes -Indexes
php_flag engine on
#php_admin_value safe_mode 1
</Directory>




#php_admin_value open_basedir /home/web455/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/

</VirtualHost>

DirectAdmin Support
03-09-2004, 11:46 AM
Hello,

How are you accessing the site?
domain.com/~username or domain.com ? (the ~username doesn't carry the virtualhost settings)

Create a php file with <?phpinfo();?> in it and checkout what it says. Also check for any .htaccess files that may be counteracting what you're doing.

John

aleborg
03-10-2004, 12:20 AM
http://www.kundservice.nu/php.php

DirectAdmin Support
03-10-2004, 10:44 AM
Not sure. Maybe remove the flags from the <Directory>, just put them in the <VirtualHost> and see what happens.

John

aleborg
03-11-2004, 01:07 AM
Didn't help :(
This seems like a bug!?

aleborg
03-11-2004, 01:14 AM
Has also tried using this:
<Directory /home/web455/domains/kundservice.nu/public_html>
AllowOverride Options
</Directory>
and a .htaccess file but it won't work either.

aleborg
03-11-2004, 04:48 AM
Found the error, SuPHP mess everything up :mad: