• 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

safemode off for subdomains

R

rmtek

Guest
hi!

hello ²all!

how can i get the safemode off for subdomains?

example:

the safemode for the rmtek.net is off but for the subdomain it is still on.

i made a vhost.conf with:

php_admin_flag safe_mode off
php_admin_flag register_globals on

and put it in my rmtek.net conf folder then i did this:

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=rmtek.net

and made a restart of the apache.
(i put the same vhost.conf in my subdomain conf folder)

but the safemode for the subdomain is still on.

what is wrong?

thanku you for your help!
p.s. sorry for my bad english
 
Currently, I don't believe custom vhost.conf's for the subdomains are set to work properly. To verify this, read the file httpd.include in the subdomain directory, see if it has the following line second from the end...

"Include /var/www/httpd/domain/subdomain/conf/vhost.conf"

If it doesn't, that's where it's having the problem. You may be able to outline the directive in your regular vhost.conf with the appropriate additional directory directives...
 
hello!

thx for the fast answer!

i have this in my httpd.iclude file:

Include /home/httpd/vhosts/rmtek.net/subdomains/evotest/conf/vhost.conf
</VirtualHost>

an guess:

it is running with safemode off! seems that the webserver had to be restartet full. now it works perfekt!

thumbs up for your fast support!!!

greetz
 
Back
Top