Seite 2 von 3

Verfasst: Mo 7. Jul 2003, 14:10
von Sorry
Jetzt muss ich aber dochmal nachhacken, echt sorry, da das Thema schon so ausgelutscht ist. :(

Also, ich habe bislang keinen Hoster gefunden der SSH-Zugriff zur Verfügung stellt (egal ob Hosteurope, Domainfactory, etc.).

Meine Frage:
Tritt das CHOWN-Problem generell auf oder ist das von Hoster zu Hoster unterschiedlich? Gibts nen Hoster (abgesehen natürlich von idea-tec), bei dem es keine Probleme gibt? :idea:

Ich würde gerne Euer CMS für meinen nächsten Auftrag einsetzen, aber wie soll ich dem Kunden verklickern, dass er keine Bilder uploaden kann.

Provider

Verfasst: Mo 7. Jul 2003, 14:28
von htw
Hosteurope, da läuft contenido einwandfrei (haben auch safe_mode off)

Gruß
Harald

Verfasst: Mo 7. Jul 2003, 14:35
von maTTos
Das ist doch mal ne Ansage! :D :D :D
Das wollten die User wissen.
Vielen Dank Harald!

Reicht das Web-Paket L oder muss es ein anderes sein?

Verfasst: Mo 7. Jul 2003, 14:42
von enduser
Hab' mit der C431 derzeit zwar auch noch kleinere Probleme (Verzeichnisrechte etc). aber zumindest kriegst Du bei meinem Hoster (www.manitu.de) SSH-Zugang und wirst auch sonst kompetent geholfen:

http://www.manitu.de/cgi/webhosting/faq ... xwidth=800

[Anti-Idea-Tec-Prolls-Protection] Dies ist keine Werbung. Ich bin kein manitu-Reseller. [/Anti-Idea-Tec-Prolls-Protection]

hosteurope

Verfasst: Mo 7. Jul 2003, 15:15
von htw
Sollte wohl noch schnell reseller werden ;-)

L reicht

Gruß
Harald

Verfasst: Di 8. Jul 2003, 10:04
von timo
Anonymous hat geschrieben: @ADMINS: Könnt Ihr dazu was sagen? Ist eine durchgängie CHOWN-Formatierung nicht mittels eines Scripts möglich? Mit zwei Input-Feldern für Besitzer und Gruppe?
Nein, ist nicht möglich, da der SAFE_MODE auch das Owner-Setzen verhindert (sonst wäre der SAFE_MODE ja für die Katz :)). Eine Beschreibung, warum hochgeladene Dateien nicht den richtigen Owner haben, gibt es weiter oben im Thread oder hier: http://contenido.de/forum/viewtopic.php?p=5422#5422

Grüße,
Timo

undefined function: posix_getpwuid()

Verfasst: Mi 9. Jul 2003, 22:16
von sansibar
Fatal error: Call to undefined function: posix_getpwuid() in /home/sansich/public_html/contenido/permissioncheck.php on line 22

Was soll ich denn jetzt mit dieser Fehlermeldung vom Permissioncheck.php wieder anfangen?.....:-))

Re: undefined function: posix_getpwuid()

Verfasst: Do 10. Jul 2003, 12:44
von timo
sansibar hat geschrieben:Fatal error: Call to undefined function: posix_getpwuid() in /home/sansich/public_html/contenido/permissioncheck.php on line 22

Was soll ich denn jetzt mit dieser Fehlermeldung vom Permissioncheck.php wieder anfangen?.....:-))
Beim Provider fragen, warum diese Funktion deaktiviert ist :)

Grüße,
Timo

Verfasst: Do 10. Jul 2003, 13:28
von mikamedia
for contenido programming:

If I understand correctly, there are problems with creating/modifying/deleting files / dirs with PHP with safe_mode?

With safe_mode on, the following line doesn't work:

mkdir("/home/sites/site99/web/mydir/",0770);

This does work:

mkdir("/home/sites/site99/web/mydir",0770);

With safe_mode off they both work.

Code in PHP to change owner:

<?
$newdir = '/usr/local/psa/home/vhosts/domainname.nl/httpdocs/testdir';
$user = 'mikamedia';
umask(011);
mkdir($newdir, 0777);
chown($newdir, $user);
?>

Don't forget the '0' before the 777 permission!

Take a look at php.net for a better understanding of umask()

You should do the same for creating files instead of dirs

cheers!
John

Verfasst: Do 10. Jul 2003, 13:49
von Gast
LOL, wenn DAS stimmt muss ich aber mal kräftig lachen.
Sollte dieser kleine Befehl die Lösung des Problems sein? :?:

Jetzt bin ich mal gespannt! Kann ich leider erst später testen ...

Verfasst: Do 10. Jul 2003, 13:50
von ?
Fehlt nur noch ne Beschreibung, WIE man das auf WELCHE Dateien anwendet.

Verfasst: Do 10. Jul 2003, 14:27
von timo
mikamedia hat geschrieben: mkdir("/home/sites/site99/web/mydir/",0770);

This does work:

mkdir("/home/sites/site99/web/mydir",0770);
That's very interesting, since it doesn't seem to happen in all PHP versions. I think we'll test a few combinations of PHP-Versions, .ini-Settings and Distributions to make sure that such things won't happen.

best regards,
Timo

Verfasst: Do 10. Jul 2003, 16:58
von mikamedia
I understand it doesn't work with all php versions.
With PHP 4.1.x and 4.2.x it should work.

PHP safemode always gives some troubles. Eventhough you wouldn't expect it: a lot of open_basedir restriction errors are caused by safemode instead of an incorrect open_basedir location.

Another solution to solve this problem is to use (if not used already, I didn't look at the sourcecode yet) realpath(). This should add the real path with or without the trailing '/'.

$real_path = realpath ("./pdf/folder/");
$real_path.="/$filename";

realpath will create the complete virtual path automatically.

cheers!
~john

Verfasst: Fr 11. Jul 2003, 10:44
von timo
Thanks john,

instead of idea-tec you give valuable, productive hints. Thanks for your input :)

cheers,
Timo

Verfasst: Fr 11. Jul 2003, 10:50
von maTTos
Hi Timo,

was heisst das denn jetzt? Werdet Ihr kurzfristig nen BugFix zur Verfügung stellen? Oder werden wir auf das nächsten Release warten müssen? Würde so gerne paar Bild hochladen?

Gruß maTTos