• 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

Custom Vhost.conf

So I'm confused. If it is working, but you are back to the original conf files (all of them), then which exact problem are you still having?

I thought you already solved the open_basedir problem in a previous post, or is that the one which is still a problem?
 
lol im sorry i confused u .

I solved the openbase_dir problem but when i did that i had the problem with the index.
and in my panic i rolled back all the changed i've done, so everything is is the state it were before i start touching it.

So the conclusion...
If i ll do the changes again..and make
open_base dir to work as "none" will i have the problem with the index again ? :p

it's something like to be or not to be ?
 
Ok, to resolve the open_basedir issue:

1. Create vhost_ssl.conf (since you are running it on SSL https:...)

<Directory /home/httpd/vhosts/domain.gr/httpsdocs/modernbill>
php_admin_value safe_mode 0
php_admin_value open_basedir none
php_admin_value register_globals on
<Directory>

2. Restart apache either by the control panel, or from the shell prompt:

/etc/init.d/httpd restart

This takes care of Safe Mode off, Register Globals On, and Open Basedir none. This is per the instructions you linked to earlier.

I have tested this by putting the phpinfo.php file and an index.php file into the /modernbill folder on my site, then using browser (both IE and Firefox) was able to bring up the phpinfo.php file and show no open_basedir, and if I browse to the /modernbill it automatically brings up the index.php file.

You will not need to change any other conf file, just the one vhost_ssl.conf located in /home/httpd/vhosts/domain.gr/conf

The exact folder being specified (/modernbill) causes the changes to only affect that folder and any subfolders within it. Other folders from the root of the domain will not be affected by these statements.

You should not need to put the <IfModule></IfModule> statements at all in the vhost_ssl.conf file.

Did you already take care of the other required settings?
- register_argc_argv = On
- short_open_tag = On
- error_reporting = 2039
- memory_limit = 32M
- register_long_arrays = On
These are the other ones listed on the link you provided earlier...
 
The http.include will be rewritten at will by plesk, so you cannot make any changes in there and expect them to stick. It may be a minute or a week, but it WILL rewrite them. I suspect it has something to do with updating the domains within plesk.
 
Back
Top