Elxis CMS Forum

Support => General => Topic started by: ahmet on June 06, 2011, 14:30:49

Title: CHMOD in suPHP (SOLVED)
Post by: ahmet on June 06, 2011, 14:30:49
hello all,
my host started to use suphp...
and says tehere no 777???? is it true??
what should be the chmod for tmpr , cache and others,
any help appreciated..
thnaks..
Title: Re: CHMOD in suPHP
Post by: ks-net on June 06, 2011, 15:09:49
Recursively in all folders 755 and 644 in all files... absolutely this and nothing else
even cache and tmp should follow this rule..

Additionally
the php environment configuration  is now more flexible..  i suggest you to read here:
http://wiki.elxis.org/wiki/PHP_settings

 
Title: Re: CHMOD in suPHP
Post by: ahmet on June 06, 2011, 15:20:19
thanks..
i still get this error.. i thought it was because permissions??

PHP Hata [Warning]
URI: index.php
Path:
Line: 0
Unknown: open(/public_html/session/sess_b8f6fc52090a26c60e6744b84502c53b, O_RDWR) failed: No such file or directory (2)
Title: Re: CHMOD in suPHP
Post by: ahmet on June 06, 2011, 15:23:46
thanks..
i still get this error.. i thought it was because permissions??  www.globalpanorama.net/404404

PHP Hata [Warning]
URI: index.php
Path:
Line: 0
Unknown: open(/public_html/session/sess_b8f6fc52090a26c60e6744b84502c53b, O_RDWR) failed: No such file or directory (2)

Title: Re: CHMOD in suPHP
Post by: ks-net on June 06, 2011, 16:02:24
1st make sure that you have

session.save_path = "/absolute/path/to/folder/one_level_up_of/public_html"

directions here =>  http://wiki.elxis.org/wiki/PHP_settings

make sure  that folder exists
Title: Re: CHMOD in suPHP
Post by: ahmet on June 06, 2011, 17:36:15
thanks , ichecked
i made a new file named session put in php ini
but still get
URI: index.php
Path:
Line: 0
Unknown: open(/session/public_html/sess_7b4b525cdc832d907d10642b74fdbcf7, O_RDWR) failed: No such file or directory (2)
PHP Hata [Warning]
URI: index.php
Path:
Line: 0
Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/session/public_html)
Title: Re: CHMOD in suPHP
Post by: ks-net on June 06, 2011, 20:24:40
check your phpinfo and see what the session.save_path values are... both local and default

look at pic below

[attachment deleted by admin]
Title: Re: CHMOD in suPHP
Post by: ahmet on June 08, 2011, 21:25:21
session.save_path   /public_html/session   /public_html/session
Title: Re: CHMOD in suPHP
Post by: ks-net on June 09, 2011, 12:01:34
session.save_path = "/absolute/path/to/folder/one_level_up_of/public_html"
Title: Re: CHMOD in suPHP
Post by: ahmet on June 09, 2011, 18:04:43
i have tried this also.. i have already one ready..
Title: Re: CHMOD in suPHP
Post by: ks-net on June 09, 2011, 22:13:33
seems that you don't understand


 /public_html/session <= looks like a relative path

an absolute path in most cases will look like =>  eg.   /var/www/httpdocs/public_html 

make a folder tmp  one dir up from pubic_html ... do not store sensitive data like sessions in public accessible dirs 
then your session.save_path will look like this  :
session.save_path = "/var/www/httpdocs/tmp"

if still get errors about sessions then chmod   tmp folder to 666 or 777
Title: Re: CHMOD in suPHP
Post by: ahmet on June 11, 2011, 12:38:33
thanks a lot... i really appreciate..... if u want u can use my photos and virtual tours.. u r welcome..
absolute path is the key...