Solved

How do I fix this phpMyAdmin error?

Posted on 2008-10-14
12
357 Views
Last Modified: 2013-12-13
I'm trying to install phpMyAdmin and I get this error:

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

I ran a test.php file that I'm assuming displays the necessary information needed to identify the problem. The code looks like this:

<?php
error_reporting(E_ALL);
ini_set('display_errors','1');
session_start();
?>

The resulting page from that code is posted as below as a code "snippet." I want to believe this is an easy fix as far as writing out the correct "path," but I don't know how and I'm hoping somebody can point me in the right direction.

Thanks!
Warning: session_start() [function.session-start]: open(C:\DOCUME~1\Bruce\LOCALS~1\Temp\php\session\sess_2ur9lpm8tu8rh53rbahj7hcvp2, O_RDWR) failed: Permission denied (13) in C:\Inetpub\wwwroot\phpMyAdmin\test.php on line 4
 

Warning: Unknown: open(C:\DOCUME~1\Bruce\LOCALS~1\Temp\php\session\sess_2ur9lpm8tu8rh53rbahj7hcvp2, 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 (C:\DOCUME~1\Bruce\LOCALS~1\Temp\php\session) in Unknown on line 0

PHP Warning: session_start() [function.session-start]: open(C:\DOCUME~1\Bruce\LOCALS~1\Temp\php\session\sess_2ur9lpm8tu8rh53rbahj7hcvp2, O_RDWR) failed: Permission denied (13) in C:\Inetpub\wwwroot\phpMyAdmin\test.php on line 4 PHP Warning: Unknown: open(C:\DOCUME~1\Bruce\LOCALS~1\Temp\php\session\sess_2ur9lpm8tu8rh53rbahj7hcvp2, O_RDWR) failed: Permission denied (13) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\DOCUME~1\Bruce\LOCALS~1\Temp\php\session) in Unknown on line 0

Open in new window

0
Comment
Question by:brucegust
  • 6
  • 3
  • 2
  • +1
12 Comments
 
LVL 34

Accepted Solution

by:
Beverley Portlock earned 300 total points
Comment Utility
It appears to be a permissions problem. Ensure that the webserver has "write" permissions to the "temp" directory or that the "Temp" directory exists. It seems to be attempting to access "....\Bruce\Local Settings\Temp"

0
 
LVL 12

Expert Comment

by:jazzIIIlove
Comment Utility
Hi there;

You got privilege on the machine? Check for that...

It's better to see under \apache\logs...

Best regards...
0
 
LVL 34

Expert Comment

by:Beverley Portlock
Comment Utility
Did a bit more digging and found this

http://blogs.iis.net/bills/archive/2006/10/18/loadUserProfile-and-IIS7-_2D00_-understanding-temporary-directory-failures.aspx

It seems IIS 6 used \windows\temp, but IIS7 uses a temp directory in a Local directory for each user. By default that directory is not writeable by IIS7
0
 

Author Comment

by:brucegust
Comment Utility
Sorry, guys, if this sounds like a really stupid question, but I'm looking for that "temp" directory and can't find it. Where would I look?
0
 
LVL 3

Assisted Solution

by:wktang83
wktang83 earned 200 total points
Comment Utility
0
 

Author Comment

by:brucegust
Comment Utility
wktang83, I di d what you suggested and the temp contents came up fine. The URL is C:\Documents and Settings\Bruce\Local Settings\Temp. Thing is, when I go out to C:\Documents and Settings\Bruce there is no "Local Settings" folder.

I'm assuming that's because it's a hidden folder. How do I "un-hide" it or am I barking up the wrong tree?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 3

Assisted Solution

by:wktang83
wktang83 earned 200 total points
Comment Utility
0
 

Author Comment

by:brucegust
Comment Utility
OK, I was able to find it by clicking on the "Local Settings" menu option that was listed to the left.

Once there, I clicked on "Properties" on the Temp directory and I have available to me: General, Sharing, Security, Web Sharing and Customize.

Where do I go from here?
0
 
LVL 3

Expert Comment

by:wktang83
Comment Utility
0
 

Author Comment

by:brucegust
Comment Utility
No, sorry..

I'm using Windows XP
0
 

Author Comment

by:brucegust
Comment Utility
OK, I've got the hidden files displayed and I'm back to the comment I made just before your last entry...
0
 

Author Comment

by:brucegust
Comment Utility
I got it!

I rerouted the temp directory to C:\Windows\Temp using the php.ini file.

Thanks for your help!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now