DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • October 22, 2017, 03:48:30 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Error on Fresh install of Logd  (Read 4626 times)
0 Members and 1 Guest are viewing this topic.
Stephen
Guest
« on: March 23, 2004, 05:13:14 PM »

I get the following error.

PHP Warning:  session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions)

I am assuming that the directory /var/php_sessions has to exist somewhere and I know how to give it the proper permissions to allow people to write to it... but where should it exist..

Keep in mind that my website is not hosted on my home computer and that I don't have direct Apache or PhpMyAdmin access as most answers I have gotten without clarifying have told me to modify womething with either Apache or PhpMyAdmin.

Thanks for any help.
Stephen Arseneau
Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #1 on: March 23, 2004, 07:07:29 PM »

The path for PHP is not setup correctly. If this is a hosting company, nine times out of ten they don't have PHP setup correctly for virtual domains and seperate users.

If this is your box and you have access to root, you need to reinstall PHP then re-compile apache with PHP modules.
« Last Edit: March 23, 2004, 07:08:06 PM by Arune » Logged
Stephen
Guest
« Reply #2 on: March 23, 2004, 08:24:31 PM »

It is a hosting company that I have it thru.

They gave me this:

Thank you for using the HyperMart PowerPack!

CGI SETTINGS

Your base directory for CGI scripting is /home/users/web/b1650/hy.testseiko/cgi-
bin/


Does this help any??

Thanks for the assistance
Seiko
Stephen Arseneau
Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #3 on: March 23, 2004, 08:25:37 PM »

Well CGI and PHP are 2 different animals..

I'd check and make sure they allow PHP or have PHP setup for you.
Logged
Stephen
Guest
« Reply #4 on: March 23, 2004, 09:45:52 PM »

The PHP is enabled, as it is able to load the main webpage, and the SQL database is fully loaded with the LoGD information.

www.covertseiko.com/logd/
That is the main page for my LOGD install.



Logged
Kendaer
Guest
« Reply #5 on: March 24, 2004, 12:14:10 AM »

The PHP is enabled, as it is able to load the main webpage, and the SQL database is fully loaded with the LoGD information.

www.covertseiko.com/logd/
That is the main page for my LOGD install.


Stephen,

The setting for session.save_path in php.ini is set incorrectly.
This can be fixed one of two ways.

1) convince your hosting provider to set it to something that the apache server has write permissions to (such as the MUCH more standard /tmp)
2) in common.php,
    a) look for the line which reads  session_register("session");
    b) Insert a line session_save_path("/tmp"); before it.

Please note: GET YOUR HOSTING PROVIDERS PERMISSION BEFORE DOING THIS and PREFERABLY GET YOUR HOSTING PROVIDERS PERMISSION TO RUN LOTGD AS SOME PROVIDERS TAKE A DIM VIEW OF GAMES

(note, that isn't meant as yelling, just emphasis)
Logged
Stephen
Guest
« Reply #6 on: March 24, 2004, 01:41:57 AM »

okay... the second option there has gotten rid of the failed to write session data error.

Thank you VERY much by the way.


now when trying to log in, I get the following in my error log.

PHP Warning:  Cannot modify header information - headers already sent by (output started at /hermes/data12/b1650/hy.testseiko/logd/dbconnect.php:13) in /hermes/data12/b1650/hy.testseiko/logd/common.php on line 276
PHP Warning:  Cannot modify header information - headers already sent by (output started at /hermes/data12/b1650/hy.testseiko/logd/dbconnect.php:13) in /hermes/data12/b1650/hy.testseiko/logd/common.php on line 1620
PHP Warning:  session_register(): Cannot send session cache limiter - headers already sent (output started at /hermes/data12/b1650/hy.testseiko/logd/dbconnect.php:13) in /hermes/data12/b1650/hy.testseiko/logd/common.php on line 1498
PHP Warning:  session_register(): Cannot send session cookie - headers already sent by (output started at /hermes/data12/b1650/hy.testseiko/logd/dbconnect.php:13) in /hermes/data12/b1650/hy.testseiko/logd/common.php on line 1498

Any idea what causes this?
Logged
Kendaer
Guest
« Reply #7 on: March 24, 2004, 07:51:46 AM »

Quote
PHP Warning:  Cannot modify header information - headers already sent by (output started at /hermes/data12/b1650/hy.testseiko/logd/dbconnect.php:13) in /hermes/data12/b1650/hy.testseiko/logd/common.php on line 276

Yeah, you have something sending output before the PHP code runs.

If you look at dbconnect.php line 13 (you know, the one in the message above where it says output started??) I bet you will find that you have whitespace outside of the <? and ?> tags.   Remove it.

(btw, this next is not really annoyance at you, but at people in general)  Why the heck can't people *search* for this error message on the forums here (I know it's been answered at least twice) or on sourceforge.net (where I've now answered it at least 20 times).  This is always caused by people editing their files and adding in whitespace (or other text) which wasn't there before.  ALWAYS..
Logged
Stephen
Guest
« Reply #8 on: March 24, 2004, 07:58:29 PM »

Everything seems to be working fine now, Thank you very much for your help, it is greatly appreciated.

And I am sorry that I was not able to locate the answer in the forums. Sorry for wasting your time.

Stephen Arseneau
Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #9 on: March 25, 2004, 01:16:46 AM »

heh I asked the same question =p

Stumped me for a while!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
14 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search