Elxis CMS Forum

Support => Administration => Topic started by: rentasite on March 30, 2008, 23:08:36

Title: Elxis 2008 - Configuration.php problem!
Post by: rentasite on March 30, 2008, 23:08:36
Hi, i was in the administration area and was changing some features through "Global Configuration". Before i proceed with saving the changes, i selected "to make configuration.php non writable". I must say that it was the 1st time i was using this feature through the admin panel, even since Elxis 2006.4. !!!

The problem: After Saving, i got the errors i paste below. I checked through FTP my configuration.php file and it's CHMOD permissions were set to 204 !!!  :o ::) I fixed it, but........

Any idea why i got these errors?
Thanks

==================================================

Warning: file(/home/mysite/public_html/configuration.php): failed to open stream: Permission denied in /home/mysite/public_html/globals.php on line 19

Warning: implode(): Bad arguments. in /home/mysite/public_html/globals.php on line 19

Warning: main(configuration.php): failed to open stream: Permission denied in /home/mysite/public_html/index.php on line 26

Fatal error: main(): Failed opening required 'configuration.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/index.php on line 26

Title: Re: Elxis 2008 - Configuration.php problem!
Post by: Farhad Sakhaei on March 30, 2008, 23:39:36
did you use Change mode tool before this ?
Are you using SUexec?
Title: Re: Elxis 2008 - Configuration.php problem!
Post by: rentasite on March 30, 2008, 23:42:34

No! I did exactly what i wrote above.

What do you mean by saying "Change mode tool" ?
Title: Re: Elxis 2008 - Configuration.php problem!
Post by: Farhad Sakhaei on March 30, 2008, 23:46:19
Change mode in Elxis Tools !
Also File Creation and Directory Creation in Global Configuration -> Server tab !
You didn't use them ?
Title: Re: Elxis 2008 - Configuration.php problem!
Post by: rentasite on March 30, 2008, 23:51:28

NOPE!!!! Nothing from those mentioned, Farhad  ???

From Global Configuration i changed only the Metadata. Nothing else. And as i said, i selected "to make configuration.php non writable". And faced the problems i wrote.

Mystery ha?
Title: Re: Elxis 2008 - Configuration.php problem!
Post by: Farhad Sakhaei on March 31, 2008, 00:08:59
I think this is not a Elxis issue , it is probably a server problem
Title: Re: Elxis 2008 - Configuration.php problem!
Post by: rentasite on March 31, 2008, 00:22:05

Lets hear an opinion from someone else also.  :)
Title: Re: Elxis 2008 - Configuration.php problem!
Post by: Ivan Trebješanin on March 31, 2008, 01:39:56
Very strange... ??? what version of Elxis were you using?
Title: Re: Elxis 2008 - Configuration.php problem!
Post by: datahell on March 31, 2008, 07:57:10
Chmod is a well known issue. Normally it works fine but under some circumstances it might give you wrong permissions. The usage of the "Change mode" tool is absolutely safe, I personally use it continuously, but if you want to be sure, never touch in global configuration the option to make everything writable or unwritable. The problem is in the nature of the function chmod, some times it takes the permissions input as a string and others as an octal number. We have applied a fix in file manager for Elxis 2008.0 but not all Elxis files have been updated. It also has to do with site environment.

Conclusion: If you want to chmod a file/folder use the chmod tool (test it if works fine on your site), nothing else.
Title: Re: Elxis 2008 - Configuration.php problem!
Post by: rentasite on March 31, 2008, 09:01:51
Very strange... ??? what version of Elxis were you using?

2008 Ivan.

Well thanks guys! It was the 1st (and last) time i used the function to make configuration.php unwritable through admin panel.  :D

P.S:  I wasnt talking about "Change mode" tool for the rest of the files. Only configuration.php
Title: Re: Elxis 2008 - Configuration.php problem!
Post by: Ivan Trebješanin on March 31, 2008, 13:51:44
Actually, datahell has written all I wanted to tell you, so read his post.  :)
Title: Re: Elxis 2008 - Configuration.php problem!
Post by: rentasite on March 31, 2008, 13:59:09

I did thank you.

Repeat: im not talking about "Change mode" tab.