phpwcms and dreamhost
phpwcms and dreamhost
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...
I did not succeed so far and have no idea why/where it is going wrong...
and we don't know what error msgs you get, and what that doesn´t work!



http://www.studmed.dk Portal for doctors and medical students in Denmark
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
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
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 ??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
-
- Posts: 47
- Joined: Sat 21. Feb 2004, 14:24
- Location: Belgium
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.
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.
DeXXus wrote: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 ??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
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!
- Oliver Georgi
- Site Admin
- Posts: 9918
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
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.
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.
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))
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))
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:
but the error messages shows two different pathes
somhow the system don't get that teh wcms is installed in a sub dir!
has anybody an idea!?
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
Code: Select all
/home/.kale/salonphi/salonphilosophique.net/playgarden/
Code: Select all
/home/.kale/salonphi/salonphilosophique.net/
has anybody an idea!?
- Oliver Georgi
- Site Admin
- Posts: 9918
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
setup $_SERVER['DOCUMENT_ROOT'] in conf.inc.php linking to the real server path
it has to be:
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
it has to be:
Code: Select all
$_SERVER['DOCUMENT_ROOT'] = '/home/.kale/salonphi/salonphilosophique.net';
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