Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

SMTP | Warning: require_once(): open_basedir restriction in effect. File(/usr/share/pear/System.php) is not within ...

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
bobmeetin
Posts: 16
Joined: Tue Apr 10, 2018 3:52 pm

Os: CentOS 6x
Web: apache + nginx
SMTP | Warning: require_once(): open_basedir restriction in effect. File(/usr/share/pear/System.php) is not within ...
  • Quote

Post by bobmeetin » Tue Mar 24, 2020 1:30 am

I am a novice with SMTP, found some instructions to both install SMTP and PEAR. The install looks good. When I get around to testing to see if they work I have a short test script with these includes:

Code: Select all

require_once 'System.php';
var_dump(class_exists('System', false));

Code: Select all

require_once "Mail.php";

System is supposed to show a true response and doesn't. If I include the Mail.php line it breaks the balance of the page.

I get several error lines if I enable php errors like:

Code: Select all

Warning: require_once(): open_basedir restriction in effect. File(/usr/share/pear/System.php) is not within the allowed path(s): (/home/testing/web/develtesting.com/public_html:/home/testing/tmp) in /home/testing/web/develtesting.com/public_html/smtp/check-installation.php on line 43
How would you go about resolving this problem?
Top

bobmeetin
Posts: 16
Joined: Tue Apr 10, 2018 3:52 pm

Os: CentOS 6x
Web: apache + nginx
Re: SMTP | Warning: require_once(): open_basedir restriction in effect. File(/usr/share/pear/System.php) is not within .
  • Quote

Post by bobmeetin » Thu Apr 02, 2020 1:31 pm

I updated the php.ini file setting open_basedir as follows and restarting Apache:

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/

Warning: require_once(): open_basedir restriction in effect. File(/usr/share/pear/System.php) is not within the allowed path(s): (/home/testing/web/develtesting.com/public_html:/home/testing/tmp) in /home/testing/web/develtesting.com/public_html/smtp/check-installation.php on line 53

Suggestions please.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password