Page 1 of 1

Problems with login @ phpwcms

Posted: Thu 13. May 2004, 10:18
by mandy.
hi,
after setup phpwcms i can't login. i get the following error messages:

Code: Select all

Warning: session_start() [function.session-start]: open(/tmp\sess_b10203f7234e43943595e978d9752038, O_RDWR) failed: No such file or directory (2) in e:\phpwcms\login.php on line 24

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at e:\phpwcms\login.php:24) in e:\phpwcms\login.php on line 24

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at e:\phpwcms\login.php:24) in e:\phpwcms\login.php on line 24

Warning: Unknown(): open(/tmp\sess_b10203f7234e43943595e978d9752038, O_RDWR) failed: No such file or directory (2) 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
do you know what's wrong??

that's the conf.inc.php:

Code: Select all

<?php

// database values
$phpwcms["db_host"]           = "localhost";
$phpwcms["db_user"]           = "root";
$phpwcms["db_pass"]           = "";
$phpwcms["db_table"]          = "dialyse";
$phpwcms["db_prepend"]        = "";
$phpwcms["db_pers"]           = 1;

// site values
$phpwcms["site"]              = "http://127.0.0.1/phpwcms/";
$phpwcms["admin_email"]       = "info@mail.com";

// paths
$phpwcms["root"]         = "phpwcms";         //default: ""
$phpwcms["file_path"]         = "phpwcms_filestorage";    //default: "phpwcms_filestorage"
$phpwcms["file_tmp"]          = "phpwcms_tmp";     //default: "phpwcms_tmp"
$phpwcms["templates"]         = "phpwcms_template";    //default: "phpwcms_template"
$phpwcms["dir_thlist"]        = "thumb_list";   //default: "thumb_list"
$phpwcms["dir_preview"]       = "thumb_preview";  //default: "thumb_preview"
$phpwcms["content_path"]      = "content"; //default: "content"
$phpwcms["cimage_path"]       = "images";  //default: "images"
$phpwcms["ftp_path"]          = "phpwcms_ftp";     //default: "phpwcms_ftp"

// content values
$phpwcms["file_maxsize"]      = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"]     = 538; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"]    = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"]   = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"]    = 538; //max width of the large preview image
$phpwcms["img_prev_height"]   = 400; //max height of the large preview image
$phpwcms["max_time"]          = 1800; //logout after max_time/60 seconds

// other stuff
$phpwcms["compress_page"]     = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"]           = 0; //0 = GD,  1 = ImageMagick convert
$phpwcms["imagick_path"]      = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"]           = 1; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"]       = 0;  //whether URL should be rewritable
$phpwcms["wysiwyg_editor"]    = 3;  //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"]        = 1;  //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"]      = "en";  //default language
$phpwcms["charset"]           = "iso-8859-1";  //default charset 'iso-8859-1'

// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"]     = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms["site_ssl_url"]      = '';  //URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. "https://www.yourdomainhere.tld"
$phpwcms["site_ssl_port"]     = '443'; //The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'

// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = 'info@mail.com'; // reply/from email address
$phpwcms['SMTP_FROM_NAME']    = 'phpwcms webmaster'; // reply/from name
$phpwcms['SMTP_HOST']         = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT']         = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER']       = 'smtp'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 1; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER']         = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS']         = ''; // default SMTP password
thanks in advance!
mandy.

Posted: Thu 13. May 2004, 10:26
by pSouper
first thing i notice is that you have your path as

Code: Select all

http://127.0.0.1/phpwcms/phpwcms/
is this correct? i think you should be keeping your

Code: Select all

$phpwcms["root"] =""
if you are still having the session problem... http://www.phpwcms.de/forum/viewtopic.p ... essiontest
try the sessiontest.php as described here.
if the sessiontest.php does not work as expected then ensure you have a TMP directory where your php.ini is expecting it.

if all this fails would you post your link to phpinfo() along with your server/host setup?

Posted: Thu 13. May 2004, 10:58
by mandy.
hi,
pSouper wrote:if the sessiontest.php does not work as expected then ensure you have a TMP directory where your php.ini is expecting it.
thanks, the TMP directory was the problem. now I don't have any error messages, but I still can't login. i use the default datas "webmaster" & "admin". but it doesn't work.

the phpinfo() i saved here: http://web79.server57.greatnet.de/info.pdf.

thanks again! :-)
mandy.

Posted: Tue 18. May 2004, 19:32
by Oliver Georgi
In php.ini set session.use_trans_sid to On. It's off at the moment. Otherwise you will not be able to be stay logged in because the session ID is not passed to next page.

Oliver