• 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

Issue open_basedir restriction in effect

NamNam

Basic Pleskian
Hi everyone, i've this problem on my dedicated server under plesk onyx...

[Fri Oct 27 15:11:27.119026 2017] [proxy_fcgi:error] [pid 20656] [client 88.179.161.126:41458] AH01071: Got error 'PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/relations-pro.fr/httpdocs/wp-content/plugins/weglot/weglot.php) is not within the allowed path(s): (/mnt/disk/relations-pro.fr/:/tmp/) in /mnt/disk/relations-pro.fr/httpdocs/wp-content/plugins/weglot/freemius/includes/class-freemius.php on line 847\nPHP message: PHP Warning: fopen(): open_basedir restriction in effect. File(/var/www/vhosts/relations-pro.fr/httpdocs/wp-content/plugins/weglot/weglot.php) is not within the allowed path(s): (/mnt/disk/relations-pro.fr/:/tmp/) in /mnt/disk/relations-pro.fr/httpdocs/wp-includes/functions.php on line 4785\nPHP message: PHP Warning: fopen(/var/www/vhosts/relations-pro.fr/httpdocs/wp-content/plugins/weglot/weglot.php): failed to open stream: Operation not permitted in /mnt/disk/relations-pro.fr/httpdocs/wp-includes/functions.php on line 4785\nPHP message: PHP Warning: fread() expects parameter 1 to be resource, boolean given in /mnt/disk/relations-pro.fr/httpdocs/wp-includes/functions.php on line 4788\nPHP message: PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /mnt/disk/relations-pro.fr/httpdocs/wp-includes/functions.php on line 4791\n', referer: Relations Pro ‹ Se connecter

I've change the host directory in /mnt/disk/

If i desactivate open_basedir for my hosts, website is inaccessible (error 500)

If i try {WEBSPACEROOT}{/} insted of {WEBSPACEROOT}{/}{:}{TMP}{/} i've no error but script doesn't work...

Can you help me ?
 
You could try to change
{WEBSPACEROOT}{/}{:}{TMP}{/}
to
{WEBSPACEROOT}{/}{:}{TMP}{/}{:}/mnt/disk{/}

Big question though: Did you tell Plesk that your web space virtual host paths are no longer located under /var/www/vhosts? Else many other problems will probably occur.
 
Hi thx for answers :


If you want I can have a look at this and get you a fix in place.

Sent from my Pixel XL using Tapatalk

Sorry, it's kindly but i don't give an access :)

You could try to change
{WEBSPACEROOT}{/}{:}{TMP}{/}
to
{WEBSPACEROOT}{/}{:}{TMP}{/}{:}/mnt/disk{/}

Big question though: Did you tell Plesk that your web space virtual host paths are no longer located under /var/www/vhosts? Else many other problems will probably occur.

Thx, i've try and restart services (apache, nginx and php) it's seem i've no issue again...

Did you tell Plesk that your web space virtual host paths are no longer located under -> what do you mean ?
 
I've modify by this command, except i don't use correct-script. I try to use correct script after but say it's already configured. I've use a reconfigure all for domains.
 
I've a problem, my wordpress websites seems doesn't take any change. In error log i've again this errors :

[Mon Oct 30 17:09:29.553814 2017] [proxy_fcgi:error] [pid 8682] [client 88.179.161.126:38512] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function submit_button() in /mnt/disk/namasthe.fr/httpdocs/wp-admin/includes/file.php:1287\nStack trace:\n#0 /mnt/disk/namasthe.fr/httpdocs/wp-content/plugins/trx_addons/includes/plugin.files.php(123): request_filesystem_credentials('https://www.nam...', 'ftpext', false, false, Array)\n#1 /mnt/disk/namasthe.fr/httpdocs/wp-includes/class-wp-hook.php(298): trx_addons_init_filesystem('')\n#2 /mnt/disk/namasthe.fr/httpdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)\n#3 /mnt/disk/namasthe.fr/httpdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#4 /mnt/disk/namasthe.fr/httpdocs/wp-settings.php(432): do_action('after_setup_the...')\n#5 /mnt/disk/namasthe.fr/wp-config.php(99): require_once('/mnt/disk/namas...')\n#6 /mnt/disk/namasthe.fr/httpdocs/wp-config.php(6): require_once('/mnt/disk/namas...')\n#7 /mnt/disk/namasthe.fr/httpdocs/wp-load.php(37): require_once('/mnt/disk/namas...')\n#8 /mnt/disk/namasthe.fr/httpdocs/wp-...\n', referer: Namas'thé ‹ Se connecter

It's seems i've a problem with executable script or hot path... can you help me ?
 
I've a lot of errors...

I've try to move in subfolder for regenerate all /mnt/disk/www but transfer seems broken... I try to execute a sudo /usr/local/psa/admin/bin/httpdmng --reconfigure-all

but i've this error :

Curl failed: Timeout was reached
Curl failed: Timeout was reached
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
)

Details: [2017-10-30 18:47:25] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1]
Curl failed: Timeout was reached
[2017-10-30 18:48:25] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1]
Curl failed: Timeout was reached
[2017-10-30 18:49:25] ERR [panel] Apache config (15093856440.84597200) generation failed: Template_Exception: AH00526: Syntax error on line 9 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Curl failed: Timeout was reached
AH00526: Syntax error on line 9 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory


In my /etc/apache2/plesk.conf.d/server.conf i've this path "/mnt/disk/www/www".

Even if i try to correct manually, it be regenerated whit it...

Can you help me to fix it plz ?
 
It all seems to be caused by wrong path information that was entered during the migration of the virtual host paths and wrong permissions or file system attributes, e.g. using symbolic links instead of real paths. I think this is far to complicated to solve in a forum. This will need hands on work on the system. Have you considered to create a support ticket with official Plesk support? Else I can only recommend to revert to a default installation of Plesk with the default paths and restore your sites to that installation.
 
I've removed /usr/local/psa/admin/conf/templates/custom and try /usr/local/psa/admin/bin/httpdmng --reconfigure-all again but i've this :

Error occured while sending feedback. HTTP code returned: 500
Error occured while sending feedback. HTTP code returned: 500
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
)

Details: [2017-10-30 19:07:23] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1]
Curl failed: Timeout was reached
[2017-10-30 19:08:23] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1]
Curl failed: Timeout was reached
[2017-10-30 19:09:23] ERR [panel] Apache config (15093868420.81786800) generation failed: Template_Exception: AH00526: Syntax error on line 9 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Curl failed: Timeout was reached
AH00526: Syntax error on line 9 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory
 
Back
Top