Page 1 of 2
phpwcms and dreamhost
Posted: Tue 27. Apr 2004, 18:16
by Haaid
has anyone here been able to set up phpwcms on a dreamhost hosting account?
I did not succeed so far and have no idea why/where it is going wrong...
Posted: Tue 27. Apr 2004, 18:41
by frold
and we don't know what error msgs you get, and what that doesn´t work!

Posted: Tue 27. Apr 2004, 18:48
by Haaid
on the login page:
Warning: session_start(): open(/tmp/sess_ab5d8d6bb25560689000ca352fb245d4, O_RDWR) failed: Permission denied (13) in /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php on line 24
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php:24) in /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php on line 24
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php:24) in /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php on line 24
when 'logging in' i get this:
Warning: session_start(): open(/tmp/sess_ab5d8d6bb25560689000ca352fb245d4, O_RDWR) failed: Permission denied (13) in /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php on line 24
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php:24) in /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php on line 24
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php:24) in /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php on line 24
Warning: Cannot modify header information - headers already sent by (output started at /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php:24) in /home/.kale/salonphi/salonphilosophique.net/playgarden/login.php on line 124
Warning: Unknown(): open(/tmp/sess_ab5d8d6bb25560689000ca352fb245d4, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Posted: Wed 28. Apr 2004, 01:35
by DeXXus
Haaid wrote:Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
It seems that your PHP installation is trying to save the session data, for your login attempt, in a folder named (/tmp). Maybe you need to make sure that there is a folder named "/tmp" in your root directory ??
Posted: Wed 28. Apr 2004, 01:42
by Pappnase
hello
i know this error also from windows systems and there you change in the php.in
/tmp to c:/windows/temp.
i know that you use OSX but maybe it helps!

Posted: Wed 28. Apr 2004, 02:05
by bertalizer
You will have to contact your host...
PHP is configured to save session data in /tmp
PHP is kind enough to tell you what's wrong: Failed to write session data (files).
It could be that the /tmp directory doesn't exist or that php doesn't have rights to write in that directory.
If you are able to change your php.ini (some hosts allow this by letting you upload a php.ini file to a specific place) you could change the session savepath to a dir that you can create. Only do this if you can create folders OUTSIDE your webroot (inaccessible through http).
B.
Posted: Wed 28. Apr 2004, 10:17
by Haaid
DeXXus wrote:Haaid wrote:Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
It seems that your PHP installation is trying to save the session data, for your login attempt, in a folder named (/tmp). Maybe you need to make sure that there is a folder named "/tmp" in your root directory ??
well; that sure solved the problem for this one. Thank you. There are no more error messages on the login screen etc.
now on to the next
When i log in now, i see most of the layout of the admin controlscreen but instead of content there is:
Warning: main(./phpwcms_template/inc_default/startup.html): failed to open stream: Permission denied in /home/.kale/salonphi/salonphilosophique.net/playgarden/phpwcms.php on line 372
Warning: main(): Failed opening './phpwcms_template/inc_default/startup.html' for inclusion (include_path='.:/usr/local/lib/php') in /home/.kale/salonphi/salonphilosophique.net/playgarden/phpwcms.php on line 372
(different errors but still with the same general 'look' come up at other places in the admin section; every time an 'open_basedir restriction' and the 'permission denied' and a 'failed opening' error)
-----
in the normal index.php this becomes
Warning: main(): open_basedir restriction in effect. File(/home/salonphi/salonphilosophique.net/include/inc_conf/conf.pagelayout.inc.php) is not within the allowed path(s): (/dh/web/phpmyadmin:/tmp:/dh/solidclient:/usr/local/lib/php:/home/salonphi:/home/.kale/salonphi) in /home/.kale/salonphi/salonphilosophique.net/playgarden/include/inc_front/content.func.inc.php on line 131
Warning: main(/home/salonphi/salonphilosophique.net/include/inc_conf/conf.pagelayout.inc.php): failed to open stream: Operation not permitted in /home/.kale/salonphi/salonphilosophique.net/playgarden/include/inc_front/content.func.inc.php on line 131
Warning: main(): Failed opening '/home/salonphi/salonphilosophique.net/include/inc_conf/conf.pagelayout.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/.kale/salonphi/salonphilosophique.net/playgarden/include/inc_front/content.func.inc.php on line 131
-----
tx guys!
Posted: Wed 28. Apr 2004, 10:20
by Pappnase
hello
set the folder where the startup.html is to 777 and the startup file 766.
and the other errors are somewhere in the forum solved! i will lokk if i can find it. or you made a serach by the error codes!
also wich rights did have the playground folder!?
Posted: Wed 28. Apr 2004, 10:57
by Haaid
Pappnase wrote:also wich rights did have the playground folder!?
777
Posted: Wed 28. Apr 2004, 18:20
by Pappnase
hmm that's strange now!
Posted: Wed 28. Apr 2004, 19:17
by Oliver Georgi
How did you upload phpwcms files?
Oliver
Posted: Thu 29. Apr 2004, 14:16
by Haaid
ftp (flashfxp to be correct)
normally it should take all binaries as binaries and all the others as ascii. I have never before had problems with uploading any kind of php files.
K.
----
Some more info on the php settings in Dreamhost:
The provider has two options: 1)PHP-CGI and 2)PHP as an Apache Module
I first tried to run it as cgi but this gave me the problem that for some reason phpwcms was trying to look into the wrong folder for the phpwcms files; the path as shown during the setup of phpwcms was also not the path in which the files were installed but was a cgi path that is probably a virtual path somewhere as I do not have the mentioned cgi-system folder on my account there).
As this would not run due to file not found errors, I switched the server to run PHP as an Apache Module and actually deleted all previous phpwcms files and re-uploaded them. however this resulted in the errors as described above.
I have for now considered just opting for the 'let me install it for you' option and have someone else install it but i don't know if I'll be any wiser then as I would like to be able to do future installations myself.
Posted: Fri 30. Apr 2004, 01:21
by Haaid
by now i am convinced that there is something wrong with the paths; i have altered them all but can't seem to figure out what exactly is wrong with them;
if somebody would be willing to check them for me, i'd be very grateful and am even willing to pay something for it if you want (don't expect outrageous wages please; just a poor student myself (but a hopeless one at this point))
just drop me a message.
(i can be contacted through chat on msn/icq/irc/... ) if you are willing to talk to me but I just would like to give it out of my hands for now because i have the feeling i am missing a crucial step somewhere but that i am just ignoring it because i have looked over it (over and over again).
any takers?
tx,
K.
(I live in Central European Timezon (GMT+1))
Posted: Fri 30. Apr 2004, 10:57
by Pappnase
hello
i tryed to installe it at the webspace from haaid.
it's really strage! chmods are all right!
it's only a path problem i think!
but how to fix
if i call the setup.php the setup routine shows me the following path:
Code: Select all
/home/salonphi/salonphilosophique.net/cgi-system
but the error messages shows two different pathes
Code: Select all
/home/.kale/salonphi/salonphilosophique.net/playgarden/
Code: Select all
/home/.kale/salonphi/salonphilosophique.net/
somhow the system don't get that teh wcms is installed in a sub dir!
has anybody an idea!?
Posted: Fri 30. Apr 2004, 11:51
by Oliver Georgi
setup $_SERVER['DOCUMENT_ROOT'] in conf.inc.php linking to the real server path
it has to be:
Code: Select all
$_SERVER['DOCUMENT_ROOT'] = '/home/.kale/salonphi/salonphilosophique.net';
AND!!! disable Directory Listing!!!!!!!!!
Or delete your setup folder. This is a high security problem! Everybody can see your conf.
And there is a premission problem right now too - you can see if you open the setup - the CSS file can not be loaded (does not shows an error).
Oliver