Repeating/circular login?
Repeating/circular login?
I just installed phpwcms on my 5 day trial server (it took me 4 tries to get it installed), everything works just peachy until we get to the login screen. I put in the user name and password for my user, and click login. It refreshes the page, shows that I am indeed logged in ("logged in users"-list, lists my user name), but it still is on the same "please login page".
What should I do?
What should I do?
Code: Select all
<?php
// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "dbaccount";
$phpwcms["db_pass"] = "pass";
$phpwcms["db_table"] = "db_name";
$phpwcms["db_prepend"] = "account";
$phpwcms["db_pers"] = 1;
// site values
$phpwcms["site"] = "http://www.hometownhosting.net/";
$phpwcms["admin_email"] = "myemail";
// paths
$phpwcms["root"] = "~account/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"] = 5120000; //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"] = 2000; //max width of the large preview image
$phpwcms["img_prev_height"] = 2000; //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"] = 1; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$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'
$phpwcms["allow_remote_URL"] = 0; //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms["gt_mod"] = 0; //0 = Graphical Text MOD disabled, 1 = enabled
// 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'] = 'myemail'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'Nathan "Dittohead" Allworth'; // reply/from name
$phpwcms['SMTP_HOST'] = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT'] = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH'] = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER'] = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS'] = ''; // default SMTP password
// Try to check and uncomment the DOCUMENT_ROOT if you have problems
// often neccessary on IIS or default MacOS X webserver settings
// Do not use backslash "\" on Windows - always replace "\" by "/"
//$_SERVER['DOCUMENT_ROOT'] = '/home/account/public_html';
?>
hello
please change this
to this
please change this
Code: Select all
// site values
$phpwcms["site"] = "http://www.hometownhosting.net/";
$phpwcms["admin_email"] = "myemail";
// paths
$phpwcms["root"] = "~account/phpwcms"; //default: ""
Code: Select all
// site values
$phpwcms["site"] = "http://www.hometownhosting.net/~account/";
$phpwcms["admin_email"] = "myemail";
// paths
$phpwcms["root"] = "phpwcms"; //default: ""
hello
i was looking at your installation!
so you have also a pathproblem!
please replace this in the conf.inc.php
i was looking at your installation!
so you have also a pathproblem!
please replace this in the conf.inc.php
Code: Select all
// site values
$phpwcms["site"] = "http://www.hometownhosting.net/";
$phpwcms["admin_email"] = "imnla@softhome.net";
// 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"] = 5120000; //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"] = 2000; //max width of the large preview image
$phpwcms["img_prev_height"] = 2000; //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, 2 = ImageMagick 4.2.9
$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'
$phpwcms["allow_remote_URL"] = 0; //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms["gt_mod"] = 0; //0 = Graphical Text MOD disabled, 1 = enabled
// 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'] = 'imnla@softhome.net'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'Nathan "Dittohead" Allworth'; // reply/from name
$phpwcms['SMTP_HOST'] = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT'] = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH'] = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER'] = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS'] = ''; // default SMTP password
// Try to check and uncomment the DOCUMENT_ROOT if you have problems
// often neccessary on IIS or default MacOS X webserver settings
// Do not use backslash "\" on Windows - always replace "\" by "/"
$_SERVER['DOCUMENT_ROOT'] = '/home/account/public_html';
hello
no wonder that you get errors!
cos when i call you index.php i get following errors
no wonder that you get errors!
cos when i call you index.php i get following errors
so first we need to fiy our pathproblem!Warning: main(/home/hometown/public_html/phpwcms/include/inc_conf/conf.pagelayout.inc.php): failed to open stream: No such file or directory in /home/account/public_html/phpwcms/include/inc_front/content.func.inc.php on line 131
Warning: main(): Failed opening '/home/hometown/public_html/phpwcms/include/inc_conf/conf.pagelayout.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/account/public_html/phpwcms/include/inc_front/content.func.inc.php on line 131
http://hometownhosting.net/~account/document_root.php provides some insight into some of the pathes. Does my problem come from the fact that the server's default "document_root" is /home/hometown and the actaul physical document root is /home/account?
This accounts for the "FALSE (not existing)" errors I got on all the directories when I installed it. After some searching the forums I found out that if I set the document_root in the conf.inc.php that Iit would work, but since the installer doesn't check (to my knowledge) that particular setting in and existing conf.inc.php I couldn't get an abosulute idea on whether it could find those dirs.
To say the least I'm rather lost. Maybe it would be much easier if I just purchased a domain and a month's worth of service from the company.
Thanks for the help, I think this is what I'm going to do. I'll be back in a few days if I don't get it to work on it's own domain.
This accounts for the "FALSE (not existing)" errors I got on all the directories when I installed it. After some searching the forums I found out that if I set the document_root in the conf.inc.php that Iit would work, but since the installer doesn't check (to my knowledge) that particular setting in and existing conf.inc.php I couldn't get an abosulute idea on whether it could find those dirs.
To say the least I'm rather lost. Maybe it would be much easier if I just purchased a domain and a month's worth of service from the company.
Thanks for the help, I think this is what I'm going to do. I'll be back in a few days if I don't get it to work on it's own domain.
helloDittohead wrote:http://hometownhosting.net/~account/document_root.php provides some insight into some of the pathes. Does my problem come from the fact that the server's default "document_root" is /home/hometown and the actaul physical document root is /home/account?
This accounts for the "FALSE (not existing)" errors I got on all the directories when I installed it. After some searching the forums I found out that if I set the document_root in the conf.inc.php that Iit would work, but since the installer doesn't check (to my knowledge) that particular setting in and existing conf.inc.php I couldn't get an abosulute idea on whether it could find those dirs.
To say the least I'm rather lost. Maybe it would be much easier if I just purchased a domain and a month's worth of service from the company.
Thanks for the help, I think this is what I'm going to do. I'll be back in a few days if I don't get it to work on it's own domain.
first... yes it would be easier if you would have an real own domain.

and the problem with the path it that you have an ~domain. cos you have two different pathes. did you have there an own server!? cos you say in an other thread that you have set this session.use_trans_sid = 1
I edited .htaccess and added
I'm planning on buying it all today sometime. And I would probably install it to the base url, like http://www.dittobox.net/
Code: Select all
php_flag session.use_trans_sid 1