Current location: Hot Scripts Forums » Programming Languages » PHP » Local Apache and PHP installation


Local Apache and PHP installation

Reply
  #1 (permalink)  
Old 07-12-04, 04:25 AM
MasQ's Avatar
MasQ MasQ is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Norway/Oslo
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Local Apache and PHP installation

Hello!

I have a local Apache and PHP instalation on my PC, but everytime I access the page i get errors when handling cookies, headers and access to some of the files...

I have tryed to install a webgallery. This is the error i get when trying to view it.

Warning: session_start(): open(/tmp\sess_132b944bec695ce3ab3bde841baf7a8a, O_RDWR) failed: No such file or directory (2) in C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php on line 60

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php:60) in C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php on line 60

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php:60) in C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php:60) in C:\Programfiler\Apache Group\Apache2\htdocs\gallery\lib\lang.php on line 319


All help is very welcome!
Thank you!
__________________
**Schmmotch**
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-12-04, 06:24 AM
mdhall's Avatar
mdhall mdhall is offline
Aspiring Coder
 
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
Just a thought...I noticed the word "Programfiler" several times...should this be "Program Files"?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-12-04, 08:31 AM
MasQ's Avatar
MasQ MasQ is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Norway/Oslo
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry, but no...

Its Norwegian
__________________
**Schmmotch**
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 07-12-04, 05:14 PM
kvnband kvnband is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 242
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by MasQ
Hello!

I have a local Apache and PHP instalation on my PC, but everytime I access the page i get errors when handling cookies, headers and access to some of the files...

I have tryed to install a webgallery. This is the error i get when trying to view it.

Warning: session_start(): open(/tmp\sess_132b944bec695ce3ab3bde841baf7a8a, O_RDWR) failed: No such file or directory (2) in C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php on line 60

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php:60) in C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php on line 60

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php:60) in C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php:60) in C:\Programfiler\Apache Group\Apache2\htdocs\gallery\lib\lang.php on line 319


All help is very welcome!
Thank you!

OK, the first error...Well, I don't know what's up with that. It's looking for a file but can't find it. However, the last 3 errors are simple. OK, in order for headers to work, they have to be called before ANYTHING is printed to the page. So, since error number 1 is printed before the header calls, you are getting 3 more errors. Therefore, in reality, you only have one problem, and that is that your server can't find. Just try something for me though. Try to make a directory called tmp in your gallery folder and try running the script again. I don't think it'll work, but it might, so you might as well try it. And let me know how it turns out.

Kevin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 07-13-04, 02:44 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
I'll tell you why

can you take a closer look at:
Quote:
Warning: session_start(): open(/tmp\sess_132b944bec695ce3ab3bde841baf7a8a, O_RDWR) failed: No such file or directory (2) in C:\Programfiler\Apache Group\Apache2\htdocs\gallery\session.php on line 60
can't you see that php is trying to read sessionfiles from a dir called /temp !!
doesn't that sound like Unix directoy ? no drive name !
now you need to go to php.ini and look for session.save_path and change it what ever you want ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 07-13-04, 03:30 AM
MasQ's Avatar
MasQ MasQ is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Norway/Oslo
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah!! Thanks alot NeverMind! That fixed the session issue...
Since im not running Unix, I had to set it to "N;/path"
__________________
**Schmmotch**
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL installation on Apache 2.0.49/WinXP kjmatthews PHP 1 06-14-04 04:40 PM
PHP installation fahadfaraz PHP 0 04-24-04 05:27 AM
Apache, MySQL, PHP, PERL, Content Providers Needed! vbgunz Traffic Exchange 0 04-17-04 09:26 PM
apache handlers for php alexj PHP 0 01-05-04 04:06 PM
Php and apache problem Cmrdrv PHP 26 08-03-03 11:35 PM


All times are GMT -5. The time now is 07:04 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.