vhost.conf file in PLESK not working as intended

Posted by Saif Bechan on Server Fault See other posts from Server Fault or by Saif Bechan
Published on 2010-03-26T19:14:07Z Indexed on 2010/03/26 19:23 UTC
Read the original article Hit count: 723

I have configured a vhost file for my domain but it does not seem to work. These are the steps I took, please correct me if I am wrong.

First I made a file called vhost.conf in:

/var/www/vhosts/*domain*/conf/vhost.conf

The content of the vhost file looks like this:

<Directory /var/www/vhosts/*domain*/httpdocs>
    php_admin_flag engine on
    php_admin_flag display_errors on
</Directory>

Now in my /etc/php.ini i set display_errors=Off

After everything i rebuild with: /usr/local/psa/admin/sbin/websrvmng -a

But I don't see the any errors in my page. When i turn on the display_errors in /etc/php.ini only then can I see the errors.

I know for a fact that the vhost file is read, because when i type nonsense values i get an error when restarting apache saying there are errors in the vhost file.

Anyone know what the problem can be.

Should there be special settings in either the php.ini file or the httpd.conf file.

The httpd.conf i edit is in /etc/httpd/conf/httpd.conf. Is this the file that PLESK uses or is there another, because the values i see there do not really reflect the http folders of my domain. The httpd file looks like this now.

# The document root
DocumentRoot "/var/www/html"

# i guess this is the base directory
<Directory />
    Order Deny,Allow
    Deny from all
    Options None
    AllowOverride None
</Directory>

# And i guess here are all my domains located, but there aren't any here
<Directory "/var/www/html">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Only this directory /var/www/html is not used by me, I use the directory /var/www/vhosts. The only folder found in /var/www/html is a folder called awstats. Does plesk use other files, and where are they located.

I hope this all makes sense to anyone, and i hope i can find a solution

© Server Fault or respective owner

Related posts about plesk

Related posts about vhost.conf