• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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