Apache symlinks

Apache, Lighttpd, nginx, Cherokee
Post Reply
wizz
Posts: 5
Joined: 2006-02-11 15:23
 

Apache symlinks

Post by wizz »

Hi

Ich hab ein problem mit meinem apache configs.

Ich wollte mir auf meinem server typo3 (3.8.0) installieren und hab dazu das source package genommen das über symlinks funktioniert.

ich hab also plesk mit

Code: Select all

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=meinedomain.de
die vhost.conf hinzugefügt:

Code: Select all

<Directory "/var/www/vhosts/wzno.com/httpdocs">
	AllowOverride All
	Options +SymLinksIfOwnerMatch +FollowSymLinks
	Order allow,deny
	Allow from all
	 php_admin_flag register_globals on
	php_admin_flag engine on
  php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/wzno.com/httpsdocs:/tmp:/var/www/vhosts/t3src"
<IfModule sapi_apache2.c>
		php_admin_flag register_globals on
		php_admin_flag engine on
		php_admin_value open_basedir "/var/www/vhosts/wzno.com/httpsdocs:/tmp:/var/www/vhosts/t3src"
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag register_globals on
		php_admin_flag engine on
		php_admin_value open_basedir "/var/www/vhosts/wzno.com/httpsdocs:/tmp:/var/www/vhosts/t3src"
	</IfModule>
</Directory>
Dann hab ich den apache restarted

und seitdem bekomme ich nur noch von typo3 gesagt

Code: Select all

Cannot find configuration. This file is probably executed from the wrong location.
obwohl das typo3 conf file im /httpsdocs Dir von plesk liegt also kein symlink ist chmod ist richtig gesetzt

also woran kann es liegen.

MFG
Wizz
User avatar
daemotron
Administrator
Administrator
Posts: 2641
Joined: 2004-01-21 17:44
Contact:
 

Re: Apache symlinks

Post by daemotron »

Hi,

Du hast httpdocs und httpsdocs in der vhost gemixt. Für den SSL-Vhost musst Du eine eigene conf anlegen, die heißt dann vhost_ssl.conf. Mit Deiner conf kann jetzt der "normale" VHost nicht mehr auf das httpdocs-Verzeichnis zugreifen 8)

Bei mir klappt's mit folgender vhost.conf (vhost_ssl.conf analog):

Code: Select all

<Directory "/home/httpd/vhosts/domain.tld/httpdocs">
    AllowOverride All
    Options +FollowSymLinks
    <IfModule sapi_apache2.c>
        php_admin_flag engine on
        php_admin_value open_basedir "/home/httpd/vhosts/domain.tld/httpdocs:/usr/local/typo3:/tmp"
    </IfModule>
</Directory>
php_admin_flag safe_mode Off
php_admin_value max_execution_time 120
php_admin_value memory_limit 128M
php_admin_value post_max_size 24M
php_admin_value upload_max_filesize 16M
register_globals kannst Du getrost auf off setzten, braucht Typo3 schon seit Ewigkeiten nicht mehr - ist sowieso eine böse Option.
Wizz wrote:obwohl das typo3 conf file im /httpsdocs Dir von plesk liegt also kein symlink ist chmod ist richtig gesetzt
Das einzige, was bei Typo3 als Symlink ausgelegt ist, ist das Source-Verzeichnis. In deinem http(s)docs-Verzeichnis muss das Dummy-Package liegen, und in diesem muss das Source-Verzeichnis als typo3_src verlinkt sein (auf die Unterverzeichnisse des SRC-Verzeichnisses zeigen allerdings wieder ein Haufen weiterer Symlinks).

Wenn Du auf das Backend via SSL zugreifen möchtest, konfigurierst Du die Domain in Plesk mit SSL-Unterstützung und der Option "Use a single directory for housing SSL and non-SSL content". Dann legst Du eine vhost.conf und eine vhost_ssl.conf an (s. o.), wobei die vhost_ssl.conf eine exakte Kopie der vhost.conf sein muss (auch Pfade auf httpdocs bezogen!) Das Dummy-Package entpackst Du ins httpdocs-Verzeichnis, das Source-Verzeichnis irgendo anders hin (z.B. /usr/local o. ä.). Dann noch Owner und Berechtigungen anpassen, Symlink typo3_src im httpdocs-Ordner auf das Source-Verzeichnis setzten und im Installer die Option [lockSSL] auf den Wert 2 setzen.

Ich hab zusätzlich generell unterbunden, dass Extensions ins global installiert werden können, so konnte ich das Source-Verzeichnis komplett auf read-only lassen.

cu
Jesco
wizz
Posts: 5
Joined: 2006-02-11 15:23
 

Re: Apache symlinks

Post by wizz »

Dank Funzt Super :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
User avatar
daemotron
Administrator
Administrator
Posts: 2641
Joined: 2004-01-21 17:44
Contact:
 

Re: Apache symlinks

Post by daemotron »

Hi,

du solltest IMHO nicht mehr 3.8.0 verwenden. Nimm lieber 3.8.1, da wurden einige Bugs gefixt und auch einige Sicherheitslöcher gestopft, wenn ich mich recht entsinne...

Gruß
Jesco
wizz
Posts: 5
Joined: 2006-02-11 15:23
 

Re: Apache symlinks

Post by wizz »

Hab ich mir gestern noch drauf demacht . danke :lol: :lol: :lol: :lol:
Post Reply