hydra22uk Posted July 17, 2003 Share Posted July 17, 2003 Hi all, Have just set up OSC again but am getting some strange errors! PLease help! Warning: session_start(): open(/tmpsess_1b31b1b506e4ddff33e0326624edc5c5, O_RDWR) failed: No such file or directory (2) in C:Program FilesApache GroupApache2htdocsEcom_2-001acatalogincludesfunctionssessions.php on line 67 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:Program FilesApache GroupApache2htdocsEcom_2-001acatalogincludesfunctionssessions.php:67) in C:Program FilesApache GroupApache2htdocsEcom_2-001acatalogincludesfunctionssessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:Program FilesApache GroupApache2htdocsEcom_2-001acatalogincludesfunctionssessions.php:67) in C:Program FilesApache GroupApache2htdocsEcom_2-001acatalogincludesfunctionssessions.php on line 67 Warning: I am able to write to the configuration file: C:/Program Files/Apache Group/Apache2/htdocs/Ecom_2-001a/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created. Warning: Unknown(): open(/tmpsess_1b31b1b506e4ddff33e0326624edc5c5, O_RDWR) failed: No such file or directory (2) 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 (/tmp) in Unknown on line 0 What do they mean? What have I broken?How do I fix them? PLEASE HELP!! thanks, Thanks, Mr. B. Brush Ha ha ha... boom boom... ha ha! Link to comment Share on other sites More sharing options...
Guest Posted July 17, 2003 Share Posted July 17, 2003 In both your configure.php files set: define('STORE_SESSIONS', 'mysql'); Link to comment Share on other sites More sharing options...
hydra22uk Posted July 17, 2003 Author Share Posted July 17, 2003 Marvelous, Now I am getting: Warning: I am able to write to the configuration file: C:/Program Files/Apache Group/Apache2/htdocs/Ecom_2-001a/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. I have no SSL set-up and dont want one (this is only a local testing site) so how do I get rid of the above? Thanks for your help! Thanks, Mr. B. Brush Ha ha ha... boom boom... ha ha! Link to comment Share on other sites More sharing options...
Guest Posted July 17, 2003 Share Posted July 17, 2003 I take it you are developing on Windows.... if so, right click the file>properties>set as 'read only' Link to comment Share on other sites More sharing options...
hydra22uk Posted July 17, 2003 Author Share Posted July 17, 2003 Already done, same error! Thanks for your patience on this I am such a newbie!! Thanks, Mr. B. Brush Ha ha ha... boom boom... ha ha! Link to comment Share on other sites More sharing options...
Guest Posted July 17, 2003 Share Posted July 17, 2003 You sure you set the correct file? - you can turn off the warning...its at the bottom of application_top.php define('WARN_CONFIG_WRITEABLE', 'false'); Link to comment Share on other sites More sharing options...
Austin519 Posted July 27, 2003 Share Posted July 27, 2003 This worked fine for me under Win2kSP4. Johnson: Got a Q...okay so I've set configure.php to read only as you suggested, and thanks ;) My question now (and this is the very first time I've run Apache so I'm a bit of a newbie with all this) is for security...what is the suggested way to set it up? I have everything in my /www/ denied by default, my root denied, and no AllowOverride None. So in httpd.conf I have done the following: <Directory "C:/FoxServ/www/catalog/"> AllowOverride None Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all Allow from localhost </LimitExcept> </Directory> <Directory "C:/FoxServ/www/catalog/admin/"> AllowOverride None Order deny,allow Deny from all Allow from localhost </Directory> I am trying to allow everyone to use the catalog (obviously) as necessary but nothing else, and only allow myself on the serving machine to access everything (including admin). I guess technically the /admin/ specification wouldn't be needed...can you tell me if this is correct? Sorry again for being a newbie. Austin519 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.