• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

vhost.conf & vhost_ssl.conf

Y

Ysean

Guest
How about someone from SWsoft posting a document regarding these files? I've found NO details anywhere online as to the commands or syntax of these files. I'm trying to modify the vhost php settings and I keep getting errors of this type:

/etc/init.d/httpd gracefulSyntax error on line 7 of /home/httpd/vhosts/orders.shawhosting.com/conf/vhost_ssl.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

I'm getting rather annoyed. I'm totally shocked I haven't been able to find any documentation on these files. :(
 
Post what your trying to accomplish and maybe someone can help you in the meantime?

I'd like to see the same documentation.
 
Here's the content of the file....

After trying different things to get it working on my own here's the current status...

/etc/init.d/httpd graceful
Syntax error on line 5 of /home/httpd/vhosts/orders.shawhosting.com/conf/vhost_ssl.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)


vhost_ssl.conf
<Directory /home/httpd/vhosts/orders.shawhosting.com/httpsdocs>
php_admin_flag register_globals On
php_admin_flag session.use_only_cookies Off
php_admin_flag register_argc_argv On
php_admin_value open_basedir = none
php_admin_flag short_open_tag On
php_admin_flag safe_mode Off
php_admin_value error_reporting = 2039
php_admin_value memory_limit = 32M
</Directory>
 
welp support helped

It appears "=" is not an allowed character in the files.
 
These files don't differ in any way from what you would put into httpd.conf - they are just "include" files that you can edit without Plesk overwriting them.

So anything you could put in your httpd.conf apache file, you can put here. Same syntax applies.

Apache reads httpd.conf which Plesk adds "Include httpd.include" to

httpd.include then lists all your domains which has "Include domain/conf/httpd.include" in it

Then if you create vhost.conf files and run websrvmsg -a -v, and it finds them, Plesk adds "Include vhost.conf" to the domain's httpd.include file.

This way Apache reads down the chain and finds all the commands to use.

Originally posted by Ysean
How about someone from SWsoft posting a document regarding these files? I've found NO details anywhere online as to the commands or syntax of these files. I'm trying to modify the vhost php settings and I keep getting errors of this type:

/etc/init.d/httpd gracefulSyntax error on line 7 of /home/httpd/vhosts/orders.shawhosting.com/conf/vhost_ssl.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

I'm getting rather annoyed. I'm totally shocked I haven't been able to find any documentation on these files. :(
 
Back
Top