• 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

M

MaRiOs

Guest
I try to install the moodle cms in a subdomain called education/

but I get errors of : Warning: file_exists(): open_basedir restriction in effect.

so I created a vhost.conf file containing :

<Directory /home/httpd/vhosts/mariosmaravelias.info/subdomains/education/httpdocs>
php_admin_value open_basedir none
php_admin_value safe_mode 0
</Directory>

The I runned the command /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=maindomain.com

and I got no error.
Then I restarted apache.

And I saw no change to the errors of the cms ...
 
Where did you set up the vhost.conf file?

It should be

/home/httpd/vhosts/mariosmaravelias.info/subdomains/education/conf/vhost.conf

NOT

/home/httpd/vhosts/mariosmaravelias.info/conf/vhost.conf

(That was my fault the last time...)
 
Back
Top