• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

TYPO3 Installation – Trouble with open_basedir...

M

marcbenthaus

Guest
hi there!

i'm new to plesk and configuring a webserver down from the ground.

i'm trying to install typo3: the dummy-package (including the index.php) inside the httpdocs-folder and the typo3-source one level higher. the files inside the httpdocs-folder are symlink'd to the typo3-source-folder outside of the httpdocs...

when i access the index.php with a browser i get this:


Warning: Unknown(): open_basedir restriction in effect. File(/home/httpd/vhosts/[MYDOMAIN.COM]/typo3_src-3.8.1/typo3/sysext/cms/tslib/index_ts.php) is not within the allowed path(s): (/home/httpd/vhosts/[MYDOMAIN.COM]/httpdocs:/tmp) in Unknown on line 0

Warning: Unknown(/home/httpd/vhosts/[MYDOMAIN.COM]/typo3_src-3.8.1/typo3/sysext/cms/tslib/index_ts.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: (null)(): Failed opening '/home/httpd/vhosts/[MYDOMAIN.COM]/typo3_src-3.8.1/typo3/sysext/cms/tslib/index_ts.php' for inclusion (include_path='.:') in Unknown on line 0



so, i googled for a while, reading that i have to add an vhost.conf-file where the server allows access outside the httpdocs-folder.

i've tried some variants (including a apache-restart every time) but nothing did work.

what do i have to write into this vhost-file exactly? i simply don't get it... or do i have to change something else in addition?

would be great if anyone could give me hint, what to write to the conf-file...

thanks in advance and kind greetings from germany!


marc.
 
thanks for your reply!

but i'm sorry to say that this didn't work... i still get the same errors.

i've added the typo3_src-folder outside the httpdocs-folder in this vhost.conf file, too.

well, at least a different error. but i can't figure out, whats going on now...

Cannot find configuration. This file is probably executed from the wrong location.


what's going on here? :-/


we'll here is my "setup", in case that it helps...

Typo3 3.8.1 | SUSE/Linux 9.0 with Plesk 7.5 Reloaded | Apache: 2.0.49 | MySQL 4.0.18 | PHP: 4.3.4
 
Ok well the local open_basedir restriction is being set up in

/var/www/vhosts/[domainName]/conf/httpd.include

At the top of that file is this comment:

Code:
# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /var/www/vhosts/[domainName]/conf/vhost.conf
# /var/www/vhosts/[domainName]/subdomains/<subdomain-name>/conf/vhost.conf

Further down the file is this section:

Code:
        <Directory /var/www/vhosts/[domainName]/httpdocs>
        <IfModule sapi_apache2.c>
                php_admin_flag engine on
                php_admin_value open_basedir "/var/www/vhosts/[domainName]/httpdocs:/tmp"
        </IfModule>
        <IfModule mod_php5.c>
                php_admin_flag engine on
                php_admin_value open_basedir "/var/www/vhosts/[domainName]/httpdocs:/tmp"
        </IfModule>
                Options -Includes -ExecCGI
        </Directory>

The problem is, there is no /var/www/vhosts/[domainName]/conf/vhost.conf file.

What would I need to put in this file to:

  • append
  • replace
  • switch off
the current setting?

Presumably there is a table in the psa database I could tweak too, so that the default httpd.include is more appropriate to my server settings?
 
Back
Top