[Typo3-linux] Using one typo3-source for more than one webroot.

Boris Senker typo3 at dvotocka.hr
Sun Jul 17 13:51:14 CEST 2005



Abdelhakeem wrote:
> Another update...
> 
> And after experimenting I found out that it's better not to change anything in the httpd.include file which is in the conf directory of the domain when using plesk.
> 
> It's better to go to plesk:
> http://download1.sw-soft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-admins-guide-html/apa.html
> &
> http://download1.sw-soft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-admins-guide-html/apas02.html
> 
> Here's well documented what to do.
> 
> These are the steps I did:
> - Created the document vhost.conf in the directory /path/to/domain/conf
> - In vhost.conf I wrote the following:
> 
> <Directory /path/to/domain/httpdocs>
>         Options +FollowSymLinks
>         php_admin_value open_basedir "/path/to/domain/httpdocs:/tmp:/path/to/typo3source/"
> </Directory>

This is a security breach.

> - After that I runned the command like stated in the plesk-tutorial:
> /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain_name> 
> 
> - Where <domain_name> is the name of the domain (directory).
> 
> - In this way it is possible for the domain to get access to the typo3-source and you won't risk to mess up the plesk configuration.
> 

You don't do it this way. You just make links in the domain's document 
root folder to a TYPO3 source using shell and sudo.

For ex.

sudo -u apacheuser ln -s ../t3lib/gfx ./gfx

Link and destination have to be owned by the user:group executing 
(Apache) and you don't have to change vhost's document roots at all.

And this is fully suPHP compliant and safe like a fortress.

Links you need to make in every typo3 domain's document root folder are:

t3lib -> ./typo3_src/t3lib
tslib -> ./typo3_src/tslib
typo3 -> ./typo3_src/typo3
typo3_src -> ../../typo3_src-3.8.0/
index.php -> tslib/index_ts.php
showpic.php -> tslib/showpic.php

Copy the media folder to every domain, and make other dirs there:

fileadmin
typo3conf
typo3temp
uploads etc.



Boris Senker


: dvotocka design
________________________________________________________________

Graphic Design for Print and Web, Prepress, Website Production

J. Laurencica 8, 10000 Zagreb, Croatia
http://www.dvotocka.hr



More information about the TYPO3-linux mailing list