| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		svankamon -
 
  Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
  | 
		
			
				 Posted: Sat May 24, 2008 9:03 pm    Post subject: PHP errors. | 
				      | 
			 
			
				
  | 
			 
			
				Hi, im having a problem with php.? Im not using the preconfigured version. The version is 5.2.6 
 
 
Im trying to get a script to install phpmyadmin for me/automatically. The errors are marked below. Hope you can help. cheers. 
 
 
Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(C:\WINDOWS\TEMP\) is not within the allowed path(s): (c:\USERSITES\reseller\sjh\MYDOMAIN.COM) in C:\USERSITES\reseller\sjh\MYDOMAIN.COM\special\phpMyAdmin\libraries\session.inc.php on line 86 
 
 
Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in C:\USERSITES\reseller\sjh\MYDOMAIN.COM\special\phpMyAdmin\libraries\session.inc.php on line 86 
 
 
I dont know the ins and outs of this as its server on an IIS system. any help apreciated very much. good luck etc | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		Moxxnixx -
 
  Joined: 21 Jun 2003 Posts: 1226 Location: Florida
  | 
		
			
				 Posted: Sat May 24, 2008 10:36 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				| Sounds like a session_save_path problem. What do have this set at in your php.ini? | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		svankamon -
 
  Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
  | 
		
			
				 Posted: Sat May 24, 2008 10:42 pm    Post subject: Path | 
				      | 
			 
			
				
  | 
			 
			
				Hi, cheers for the responce. I cant access my system at present as im working on it. However if memory servers me right its the default which is:
 
 
C:\tmp | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		svankamon -
 
  Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
  | 
		
			
				 Posted: Sat May 24, 2008 10:47 pm    Post subject: Correction | 
				      | 
			 
			
				
  | 
			 
			
				Hi sorry i just accessed it. The path is:
 
 
session.save_path="C:\WINDOWS\Temp"
 
 
If im correct i belive that the folder: Temp needs sub directories within it as php wont create them and apparently it needs the subfolders.? I dont even understand that as no folder names are indicated.?
 
 
Thanks again. | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		roganty -
 
  Joined: 08 Jun 2004 Posts: 357 Location: Bristol, UK
  | 
		
			
				 Posted: Sat May 24, 2008 11:03 pm    Post subject: Re: PHP errors. | 
				      | 
			 
			
				
  | 
			 
			
				 	  | svankamon wrote: | 	 		  Hi, im having a problem with php.? Im not using the preconfigured version. The version is 5.2.6 
 
 
Im trying to get a script to install phpmyadmin for me/automatically. The errors are marked below. Hope you can help. cheers. 
 
 
Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(C:\WINDOWS\TEMP\) is not within the allowed path(s): (c:\USERSITES\reseller\sjh\MYDOMAIN.COM) in C:\USERSITES\reseller\sjh\MYDOMAIN.COM\special\phpMyAdmin\libraries\session.inc.php on line 86 
 
 
Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in C:\USERSITES\reseller\sjh\MYDOMAIN.COM\special\phpMyAdmin\libraries\session.inc.php on line 86 
 
 
I dont know the ins and outs of this as its server on an IIS system. any help apreciated very much. good luck etc | 	  
 
 
It seems more like you might have safe mode turned on
 
 
According to that same page the open_basedir setting may be set
 
 
 	  | php.net wrote: | 	 		   Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.
 
 
When a script tries to open a file with, for example, fopen() or gzopen(), the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it's not possible to avoid this restriction with a symlink. If the file doesn't exist then the symlink couldn't be resolved and the filename is compared to (a resolved) open_basedir . | 	 
  _________________ Anthony R
 
 
 
Roganty | Links-Links.co.uk | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		svankamon -
 
  Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
  | 
		
			
				 Posted: Sat May 24, 2008 11:50 pm    Post subject: PHP session settings. | 
				      | 
			 
			
				
  | 
			 
			
				Hi, these are my php session settings. Hope someone can point to a solution. However the errors previously mentioned arent showing now. Now i get a 403 forbidden page
 
 
[Session]
 
; Handler used to store/retrieve data.
 
session.save_handler = files
 
 
; Argument passed to save_handler.  In the case of files, this is the path
 
; where data files are stored. Note: Windows users have to change this
 
; variable in order to use PHP's session functions.
 
;
 
; As of PHP 4.0.1, you can define the path as:
 
;
 
;     session.save_path = ";/path"
 
;
 
; where N is an integer.  Instead of storing all the session files in
 
; /path, what this will do is use subdirectories N-levels deep, and
 
; store the session data in those directories.  This is useful if you
 
; or your OS have problems with lots of files in one directory, and is
 
; a more efficient layout for servers that handle lots of sessions.
 
;
 
; NOTE 1: PHP will not create this directory structure automatically.
 
;         You can use the script in the ext/session dir for that purpose.
 
; NOTE 2: See the section on garbage collection below if you choose to
 
;         use subdirectories for session storage
 
;
 
; The file storage module creates files using mode 600 by default.
 
; You can change that by using
 
;
 
;     session.save_path = "N;MODE;/path"
 
;
 
; where MODE is the octal representation of the mode. Note that this
 
; does not overwrite the process's umask.
 
;session.save_path = "C;MODE;/temp"
 
 
; Whether to use cookies.
 
session.use_cookies = 1
 
 
;session.cookie_secure =
 
 
; This option enables administrators to make their users invulnerable to
 
; attacks which involve passing session ids in URLs; defaults to 0.
 
; session.use_only_cookies = 1
 
 
; Name of the session (used as cookie name).
 
session.name = PHPSESSID
 
 
; Initialize session on request startup.
 
session.auto_start = 0
 
 
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
 
session.cookie_lifetime = 0
 
 
; The path for which the cookie is valid.
 
session.cookie_path = /
 
 
; The domain for which the cookie is valid.
 
session.cookie_domain =
 
 
; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages 
 
 
such as JavaScript.
 
session.cookie_httponly = 
 
 
; Handler used to serialize data.  php is the standard serializer of PHP.
 
session.serialize_handler = php
 
 
; Define the probability that the 'garbage collection' process is started
 
; on every session initialization.
 
; The probability is calculated by using gc_probability/gc_divisor,
 
; e.g. 1/100 means there is a 1% chance that the GC process starts
 
; on each request.
 
 
session.gc_probability = 1
 
session.gc_divisor     = 1000
 
 
; After this number of seconds, stored data will be seen as 'garbage' and
 
; cleaned up by the garbage collection process.
 
session.gc_maxlifetime = 1440
 
 
; NOTE: If you are using the subdirectory option for storing session files
 
;       (see session.save_path above), then garbage collection does *not*
 
;       happen automatically.  You will need to do your own garbage
 
;       collection through a shell script, cron entry, or some other method.
 
;       For example, the following script would is the equivalent of
 
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
 
;          cd /path/to/sessions; find -cmin +24 | xargs rm
 
 
; PHP 4.2 and less have an undocumented feature/bug that allows you to
 
; to initialize a session variable in the global scope, albeit register_globals
 
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
 
; You can disable the feature and the warning separately. At this time,
 
; the warning is only displayed, if bug_compat_42 is enabled.
 
 
session.bug_compat_42 = 0
 
session.bug_compat_warn = 1
 
 
; Check HTTP Referer to invalidate externally stored URLs containing ids.
 
; HTTP_REFERER has to contain this substring for the session to be
 
; considered as valid.
 
session.referer_check =
 
 
; How many bytes to read from the file.
 
session.entropy_length = 0
 
 
; Specified here to create the session id.
 
session.entropy_file =
 
 
;session.entropy_length = 16
 
 
;session.entropy_file = /dev/urandom
 
 
; Set to {nocache,private,public,} to determine HTTP caching aspects
 
; or leave this empty to avoid sending anti-caching headers.
 
session.cache_limiter = nocache
 
 
; Document expires after n minutes.
 
session.cache_expire = 180
 
 
; trans sid support is disabled by default.
 
; Use of trans sid may risk your users security.
 
; Use this option with caution.
 
; - User may send URL contains active session ID
 
;   to other person via. email/irc/etc.
 
; - URL that contains active session ID may be stored
 
;   in publically accessible computer.
 
; - User may access your site with the same session ID
 
;   always using URL stored in browser's history or bookmarks.
 
session.use_trans_sid = 0
 
 
; Select a hash function
 
; 0: MD5   (128 bits)
 
; 1: SHA-1 (160 bits)
 
session.hash_function = 0
 
 
; Define how many bits are stored in each character when converting
 
; the binary hash data to something readable.
 
;
 
; 4 bits: 0-9, a-f
 
; 5 bits: 0-9, a-v
 
; 6 bits: 0-9, a-z, A-Z, "-", ","
 
session.hash_bits_per_character = 5
 
 
; The URL rewriter will look for URLs in a defined set of HTML tags.
 
; form/fieldset are special; if you include them here, the rewriter will
 
; add a hidden <input> field with the info which is otherwise appended
 
; to URLs.  If you want XHTML conformity, remove the form entry.
 
; Note that all valid entries require a "=", even if no value follows.
 
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		svankamon -
 
  Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
  | 
		
			
				 Posted: Sun May 25, 2008 12:03 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				I no longer get the errors mentioned in my first post.? who knew it?
 
 
I now get the following error white IIS page when i try to open a php test/info page in my root folder.
 
 
http://mydomain.com/test.php
 
 
HTTP Error 404 - File or directory not found.
 
Internet Information Services (IIS)
 
 
 
And when i try to open phpmyadmin which the script im using installed on my server i get the following page error:
 
 
403 forbidden.
 
 
PHPmyadmin is in a subfolder to my root, and the test.php is in the root folder.
 
 
I must admit i didnt understand the php.net instructions above in previous post. actaully i understood it but dont have a clue as to how.
 
 
Thanks again. | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		aprelium -
 
  Joined: 22 Mar 2002 Posts: 6800
 
  | 
		
			
				 Posted: Tue May 27, 2008 4:24 pm    Post subject: Re: PHP errors. | 
				      | 
			 
			
				
  | 
			 
			
				 	  | svankamon wrote: | 	 		  | Im trying to get a script to install phpmyadmin for me/automatically. The errors are marked below. Hope you can help. cheers. | 	  
 
 
The script could have problems when running on Windows. By the way, isn't it easier to install PhpMyAdmin manually (it's just a matter of uncompressing the Zip and updating a configuration file in any text editor). _________________ Support Team
 
Aprelium - http://www.aprelium.com | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		svankamon -
 
  Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
  | 
		
			
				 Posted: Tue May 27, 2008 4:42 pm    Post subject: Script | 
				      | 
			 
			
				
  | 
			 
			
				| Hi, thanks, the script im talking about here is HC7. Sure you know that. Cheers. | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		NuccatheWarrior -
 
  Joined: 18 Oct 2007 Posts: 82
 
  | 
		
			
				 Posted: Tue May 27, 2008 6:08 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				phpmyadmin is a bit difficult to install on a web server.  Just gotta have an sql server to have it running correctly.  I had problems with it just getting it to work with the server, thanks to Abyss underground for helping me out :D _________________ Site Administrator of Nucca The Warrior's Website
 
 
http://nuccathewarrior.kicks-ass.org | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		svankamon -
 
  Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
  | 
		
			
				 Posted: Tue May 27, 2008 6:13 pm    Post subject: Re phpmyadmin | 
				      | 
			 
			
				
  | 
			 
			
				| Hi and thanks for info, which server were you using, im talking about server 2003 ans hosting controler. It all needs a little configuring but with the help of aprelium and abyss underground i know il get it running. Il make a note and add the note to the site to recommend mssql. thanks | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		 |