Discussion:
PHP Error on phpmyadmin
(too old to reply)
moonstar2005
2008-01-30 07:20:13 UTC
Permalink
Hi everyone, I got a weird error. I didn't change anyone over the last few
weeks, and suddenly when I tried to go into my phpmyadmin to backup the
database I got the following error

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

when I go to Phpinfo {}, every seems to output correctly, but when I go to my
php.ini my configuration looked a bit weird. Instead of # in front of every
line I have : in front of every line. I wonder if my configuration is
corrupted? Attached I copied some examples. Any help is appreciated.

Also, I can't seem to back my mysql from the "command Line". can I get a step
by step instructions somewhere?

;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP's behavior. In order for PHP to
; read it, it must be named 'php.ini'. PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory. The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple. Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an
expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
; foo = ; sets foo to an empty string
; foo = none ; sets foo to an empty string
; foo = "none" ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
;
;
;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; This is the recommended, PHP 5-style version of the php.ini-dist file. It
; sets some non standard settings, that make PHP more efficient, more secure,
; and encourage cleaner coding.
;
; The price is that with these settings, PHP may be incompatible with some
; applications, and sometimes, more difficult to develop with. Using this
; file is warmly recommended for production sites. As all of the changes from
; the standard settings are thoroughly documented, you can go over each one,
; and decide whether you want to use it or not.
;
; For general information about the php.ini file, please consult the
php.ini-dist
; file, included in your PHP distribution.
;
; This file is different from the php.ini-dist file in the fact that it
features
; different values for several directives, in order to improve performance,
while
; possibly breaking compatibility with the standard out-of-the-box behavior of
; PHP. Please make sure you read what's different, and modify your scripts
; accordingly, if you decide to use this file instead.
;
; - register_long_arrays = Off [Performance]
David Powers
2008-01-30 11:56:16 UTC
Permalink
Post by moonstar2005
Hi everyone, I got a weird error. I didn't change anyone over the last few
weeks, and suddenly when I tried to go into my phpmyadmin to backup the
database I got the following error
phpMyAdmin - Error
Cannot start session without errors, please check errors given in your PHP
and/or webserver log file and configure your PHP installation properly.
It means that the folder designated in session.save_path either doesn't
exist, or isn't writable. Check the location of session.save_path with
phpinfo(), and create a folder there.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
moonstar2005
2008-01-30 23:08:41 UTC
Permalink
Thanks David. Sorry I never done this menually. am I naming the folder "session.save_path "
David Powers
2008-01-31 00:02:42 UTC
Permalink
Post by moonstar2005
am I naming the folder "session.save_path "
No. Run phpinfo(). Check the value of session.save_path. Create a folder
at the location indicated.

If session.save_path is C:\xyz\php\session\temp, create a folder called
temp at C:\xyz\php\session\.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
moonstar2005
2008-01-31 04:59:02 UTC
Permalink
Hi David, thanks for the reply. sorry, I forgot you don't see the edited
message.

I did what you said, for some reason it didn't work.

my session path states this in phpin():

session.save_path C:\DOCUME~1\owner\LOCALS~1\Temp\php\session


so I went into c:document and setting\owner\ I noticed I didn't have a Locals
file so I created 4 folders/

LOCALS\php\session\temp folders but it didnt work. weird because it was
working a few weeks ago. Thanks.
moonstar2005
2008-01-31 05:02:07 UTC
Permalink
BTW, I noticed the session.save_path is C:/docume~1

so I got to php configuration and spill the whole path out? like C:/document and setting\owner\Locals\Tem\session
ronin701
2008-01-31 09:34:37 UTC
Permalink
Post by moonstar2005
BTW, I noticed the session.save_path is C:/docume~1
so I got to php configuration and spill the whole path out? like C:/document and setting\owner\Locals\Tem\session
I've had intermittent problems with the default session path for
Windows in PHP 5, so what I normally do is go to my root directory and
create a session folder and then put that location in php.ini, ie.
create a folder named tmpSession in the root of the C drive and put
this in my php.ini file for the session path C:\tmpSession, I also set
this as the temp upload folder.

-Frank
http://www.roninwerks.com
David Powers
2008-01-31 16:02:19 UTC
Permalink
Post by moonstar2005
BTW, I noticed the session.save_path is C:/docume~1
so I got to php configuration and spill the whole path out?
If you're happy making changes in php.ini, the best solution is to
change the value of session.save_path to C:\WINDOWS\Temp. Save php.ini,
and restart Apache.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Loading...