Current time: 04-19-2024, 05:56 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT] Typo3 Symlink Installation
Author Message
WarCow Offline
Newbie
*

Posts: 9
Joined: Aug 2007
Reputation: 0
Post: #1
[ERLEDIGT] Typo3 Symlink Installation
Hi,

wo packe ich typo3 am besten hin für eine Symlink Installation (source nur 1x pro Server)? Und was sollte ich dann in der ispCP config anpassen?

Wenn ich im Moment den symlik auf ausserhalb von /var/www/virtual/domain.xy setze, dann kommt nur die Meldung
Cannot find tslib/. Please set path by defining $configured_tslib_path in index.php.
(This post was last modified: 01-21-2009 04:36 PM by BeNe.)
11-08-2008 09:02 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Typo3 Symlink Installation
hi

ich hab das am laufen:

/var/www/typo3/typo3_src-4.2.3 (jeweils aktuelle Sourcen... von den installierten Versionen...)
Symlinks in /var/www/virtual/kunde.tld/htdocs/typo3_src -> dahin ^
Die Symlinks selbst gehören root:root
Wichtig: php.ini ist anzupassen (kannst du ja auch in die Vorlagen überragen):

- open_basedir = "/var/www/virtual/domain.tld/:/usr/share/php/:/var/www/typo3/"
- bei disable_functions: "exec" rausnehmen (wegen den graphicsmagic programmen etc)

das sollte dann gehen. ich habe dann noch ein php error-log eingerichtet und display_errors ausschalten...

Die Fehlermeldung oben kommt vom open_basedir...

Hier noch das Skript für die Rechte, auszuführen im htdocs... damit lassen sich die "dummy" Daten einfach kopieren...

Code:
#!/bin/bash

username=$(ls -ld . | cut -d" " -f3)
echo "Setze auf Benutzer: $username"
echo "Abbrechen -> Ctrl-C, sonst weiter mit Enter..."

read

# Owner setzen vu:vu
cmd="find ./ -type d -exec chown $username:$username {} ;"
#echo $cmd
($cmd)

cmd="find ./ -type f -exec chown $username:$username {} ;"
#echo $cmd
($cmd)

# Permissions setzen
cmd="find ./ -type d -exec chmod 0755 {} ;"
#echo $cmd
($cmd)

cmd="find ./ -type f -exec chmod 0644 {} ;"
#echo $cmd
($cmd)

# aber PHP Dateien etwas weniger...
cmd="find ./ -type f -regex .*\.php$ -exec chmod 0640 {} ;"
#echo $cmd
($cmd)

echo "fertig..."
echo ""
(This post was last modified: 11-13-2008 12:09 AM by joximu.)
11-13-2008 12:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Kaimane Offline
Junior Member
*

Posts: 39
Joined: Oct 2007
Reputation: 0
Post: #3
RE: Typo3 Symlink Installation
(11-13-2008 12:08 AM)joximu Wrote:  /var/www/typo3/typo3_src-4.2.3 (jeweils aktuelle Sourcen... von den installierten Versionen...)

Wem gehört denn das Verzeichnis typo3 bzw typo3_src-4.2.3?
Werden die Verzeichnisse
Code:
User: root
Gruppe: root

zugewiesen oder wie in meinem Fall das virtual-Verzeichnis
Code:
User: vu2000
Gruppe: www-data

Vielen Dank für die Hilfe!
12-29-2008 11:45 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Typo3 Symlink Installation
Code:
server:~/var/www# ls -la typo3/
insgesamt 28
drwxr-xr-x  6 root root 4096 2008-11-11 09:06 .
drwxr-xr-x 10 root root 4096 2008-11-14 14:36 ..
drwxr-xr-x  6 root root 4096 2008-04-23 12:15 dummy-4.2.0
drwxr-xr-x  5 root root 4096 2008-10-09 16:52 typo3_src-4.2.1
drwxr-xr-x  5 root root 4096 2008-10-09 16:53 typo3_src-4.2.2
drwxr-xr-x  6 root root 4096 2008-11-14 16:14 typo3_src-4.2.3

eine Installation sieht dann so aus:
Code:
server:~/var_www# ls -la virtual/domain.zld/htdocs
insgesamt 92
drwxr-xr-x  6 vu2001 vu2001  4096 2008-12-04 11:11 .
drwxr-xr-x  6 vu2001 vu2001  4096 2008-12-04 10:55 ..
-rw-r--r--  1 vu2001 vu2001    46 2008-04-23 12:15 clear.gif
drwxr-xr-x  6 vu2001 vu2001  4096 2008-11-28 17:12 fileadmin
-rw-r--r--  1 vu2001 vu2001  5051 2008-04-23 12:15 _.htaccess
lrwxrwxrwx  1 root   root      19 2008-12-04 10:55 index.php -> typo3_src/index.php
-rw-r--r--  1 vu2001 vu2001  7087 2008-04-23 12:15 INSTALL.txt
-rw-r--r--  1 vu2001 vu2001  7695 2008-04-23 12:15 README.txt
-rw-r--r--  1 vu2001 vu2001   425 2008-04-23 12:15 RELEASE_NOTES.txt
lrwxrwxrwx  1 root   root      15 2008-12-04 10:55 t3lib -> typo3_src/t3lib
lrwxrwxrwx  1 root   root      15 2008-12-04 10:55 typo3 -> typo3_src/typo3
drwxr-xr-x  4 vu2001 vu2001  4096 2008-12-08 11:14 typo3conf
lrwxrwxrwx  1 root   root      33 2008-12-04 11:07 typo3_src -> ../../../typo3/typo3_src-4.2.3
drwxr-xr-x 10 vu2001 vu2001 36864 2008-12-17 12:19 typo3temp
drwxr-xr-x 16 vu2001 vu2001  4096 2008-11-28 17:12 uploads

Alles klar?
/J
(This post was last modified: 12-29-2008 05:23 PM by joximu.)
12-29-2008 05:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Kaimane Offline
Junior Member
*

Posts: 39
Joined: Oct 2007
Reputation: 0
Post: #5
RE: Typo3 Symlink Installation
Antwort kommt spät, aber sie kommt Wink

Hat wunderbar geklappt mit deiner Hilfe, J!
Vielen Dank noch mal dafür.
01-21-2009 09:33 AM
Find all posts by this user Quote this message in a reply
tommy Offline
Newbie
*

Posts: 7
Joined: Dec 2008
Reputation: 0
Post: #6
RE: [ERLEDIGT] Typo3 Symlink Installation
Hallo
Da ich wohl ein ähnliches Problem habe werde ich gleich an diesem Thread anknüpfen.

Die Dateiattribute habe ich mal versucht zu setzen wie oben becshrieben.
Der Ornder mit der Source:
Code:
-rwxrwxrwx  1 www-data root 368689 2009-02-10 10:36 ChangeLog
-rwxrwxrwx  1 www-data root  18007 2009-02-10 10:36 GPL.txt
-rwxrwxrwx  1 root     root   2827 2009-02-10 10:36 index.php
-rwxrwxrwx  1 www-data root   7087 2009-02-10 10:37 INSTALL.txt
-rwxrwxrwx  1 www-data root    843 2009-02-10 10:36 LICENSE.txt
drwxrwxrwx  3 www-data root   4096 2009-02-10 10:37 misc
-rwxrwxrwx  1 www-data root   8578 2009-02-10 10:36 NEWS.txt
-rwxrwxrwx  1 www-data root   7695 2009-02-10 10:37 README.txt
-rwxrwxrwx  1 www-data root    425 2009-02-10 10:37 RELEASE_NOTES.txt
drwxrwxrwx  7 root     root   4096 2009-02-10 10:37 t3lib
drwxrwxrwx 13 root     root   4096 2009-02-10 10:37 typo3

Und die Files im entsprechenden htdocs:
Code:
-rw-rw-r-- 1 vu2006 vu2006   46 2009-03-23 17:02 clear.gif
drwxrwxr-x 4 vu2006 vu2006 4096 2009-03-23 17:02 fileadmin
-rw-rw-r-- 1 vu2006 vu2006 5051 2009-03-23 17:02 _.htaccess
lrwxrwxrwx 1 root   root     19 2009-03-23 17:02 index.php -> typo3_src/index.php
-rw-rw-r-- 1 vu2006 vu2006 7087 2009-03-23 17:02 INSTALL.txt
-rw-rw-r-- 1 vu2006 vu2006 7695 2009-03-23 17:02 README.txt
-rw-rw-r-- 1 vu2006 vu2006  425 2009-03-23 17:02 RELEASE_NOTES.txt
lrwxrwxrwx 1 root   root     15 2009-03-23 17:02 t3lib -> typo3_src/t3lib
lrwxrwxrwx 1 root   root     15 2009-03-23 17:02 typo3 -> typo3_src/typo3
drwxrwxr-x 4 vu2006 vu2006 4096 2009-03-23 17:02 typo3conf
lrwxrwxrwx 1 vu2006 vu2006   18 2009-03-23 17:02 typo3_src -> ../typo3_src-4.2.6
drwxrwxr-x 2 vu2006 vu2006 4096 2009-03-23 17:02 typo3temp
drwxrwxr-x 5 vu2006 vu2006 4096 2009-03-23 17:02 uploads

Die erste Installation hat auch funktioniert, doch momentan bekomme ich nur noch error 403 wenn ich die Installation starten will. Hat jemand eine Idee woran das noch liegen könnte?

Greetz tom
(This post was last modified: 03-24-2009 08:58 PM by tommy.)
03-24-2009 08:57 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: [ERLEDIGT] Typo3 Symlink Installation
Hallo Tom

ein 403 hinterlässt i.d.R. auch Infos im entsprechenden error.log... das würde wohl helfen.

ich würde aber so oder so die Dateien im typo3-src nicht mit 777 "berechtigen" - bei mir sieht es so aus:
Quote:-rw-r--r-- 1 root root 361K 2009-02-10 10:36 ChangeLog
-rw-r--r-- 1 root root 18K 2009-02-10 10:36 GPL.txt
-rw-r--r-- 1 root root 2.8K 2009-02-10 10:36 index.php
-rw-r--r-- 1 root root 7.0K 2009-02-10 10:37 INSTALL.txt
-rw-r--r-- 1 root root 843 2009-02-10 10:36 LICENSE.txt
drwxr-xr-x 3 root root 4.0K 2009-02-10 10:37 misc
-rw-r--r-- 1 root root 8.4K 2009-02-10 10:36 NEWS.txt
-rw-r--r-- 1 root root 7.6K 2009-02-10 10:37 README.txt
-rw-r--r-- 1 root root 425 2009-02-10 10:37 RELEASE_NOTES.txt
drwxr-xr-x 7 root root 4.0K 2009-02-10 10:37 t3lib
-rw-r--r-- 1 root root 5.5K 2009-03-18 13:23 t3.php
drwxr-xr-x 13 root root 4.0K 2009-02-10 10:37 typo3
dh. ich lade die src-Datei (.tgz !) vom Typo3-Download runter und entpacke gleich am richtigen Ort und alles stimmt mal soweit.
Wirchtig ist, dass Dateien für "alle" lesbar sind und Verzeichnisse lesbar und ausführbar...

Also - den Fehler noch präzisieren...

Gruss J
03-24-2009 09:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
tommy Offline
Newbie
*

Posts: 7
Joined: Dec 2008
Reputation: 0
Post: #8
RE: [ERLEDIGT] Typo3 Symlink Installation
Besten Dank für die Antwort.
Ich habe die Dateirechte nun verändert dass sie genau gleich sind wie bei dir. Leider wird noch immer derselbe Fehler ausgegeben.

Im errorlog der Domain steht folgendes:
Quote:192.168.1.211 - - [24/Mar/2009:15:33:30 +0100] "GET /errors/inc/error_top.jpg HTTP/1.1" 304 - "http://typotest.ch/dummy/" "Mozilla/
4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
192.168.1.211 - - [24/Mar/2009:15:33:31 +0100] "GET /dummy/ HTTP/1.1" 403 1136 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5
.1; SV1)"
192.168.1.211 - - [24/Mar/2009:15:33:31 +0100] "GET /errors/inc/errordocs.js HTTP/1.1" 304 - "http://typotest.ch/dummy/" "Mozilla/4
.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

Greetz Tom
03-24-2009 11:43 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: [ERLEDIGT] Typo3 Symlink Installation
das dürfte das access.log order combined.log sein - der error.log sieht anders aus:

Code:
[Thu Feb 26 16:58:56 2009] [error] [client 87.179.32.1] File does not exist: /var/www/virtual/domain.ch/htdocs/favicon.ico

(siehe /var/log/apache2/users/domain-error.log)

Gruss J
03-25-2009 12:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
tommy Offline
Newbie
*

Posts: 7
Joined: Dec 2008
Reputation: 0
Post: #10
RE: [ERLEDIGT] Typo3 Symlink Installation
Aha, ja es war der combined log..

Im richtigen Errorlog steht
Quote:[Mon Mar 23 17:16:52 2009] [error] [client 192.168.1.211] Symbolic link not allowed or link target not accessible: /var/www/virtual
/typotest.ch/htdocs/dummy/index.php

Schätze damit kann ich jetzt etwas anfangen und das Problem ist somit erledigt. Vielen dank für die Hilfe!
03-25-2009 12:42 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)