Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Did you know that
Elxis 5.x
uses HTML5, CSS3 and pure javascript without external libraries such as jQuery?
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
[solved] Configuration.php
« previous
next »
Print
Pages: [
1
]
Author
Topic: [solved] Configuration.php (Read 10178 times)
Dreamlander
Newbie
Posts: 14
[solved] Configuration.php
«
on:
January 17, 2007, 17:48:44 »
First of all let me congradulate you for the excellent work you have done.
It was about time to move to a decent CMS.
Now, i have a problem regarding the configuration.php file. Although i have changed the rights to 777 and when i go to global configuration it indicates the the file is writable i get the following error:
Could not create/write to file /var/www/vhosts/mysite.com/httpdocs/configuration.php
Any help would be more than appreciated as i look forward to use Elxis.
Thank you in advance.
«
Last Edit: January 18, 2007, 12:55:35 by eliasan
»
Logged
eliasan
Hero Member
Posts: 897
Re: Configuration.php
«
Reply #1 on:
January 17, 2007, 18:07:53 »
Hi dreamlander,
Welcome to Elxis. We hope that it will meet your needs.
The good news is that this is normal behaviour under some circuimstances.
The bad news is that you are not allowed to save changes, because the configuration.php file does not belongs to you. It belongs to user "nobody".
You have to contact your hosting company and ask them to change the user and group the file belongs, back to you. It is very simple for them. Just a simple 'chown' command.
OR
Try to change configuration.php attributes, using the "Change mode" tool from.... Tools menu.
Specify the path to configuration.php file, and Chmod-it to 666.
Please remember to set it back to 644, after you have done modifying Global Settings. Otherwhise you will leave a security hole open.
But, in order to avoid this kind of problems in the future, I recommend to enable FTP access for Elxis, following the procedure described bellow.
How to enable the FTP access from Global Settings
1) Go to Site -> General Settings and click the FTP tab
2) Fill the "FTP Host" field with the proper address, e.g. ftp.yoursite.com
3) Fill the "FTP Username" field with the username you use to access your site's FTP account
4) Fill the "FTP Password" field with the FTP account password
5) Leave "FTP Port" field value to "21", as this is the most common port
6) Type the right path in "FTP Root Path" field. Tip: If when connecting to your FTP account using an FTP application, you have to move to public_html directory in order to view the published files, then the right value is "/public_html".
7) Set "Enable FTP" to Yes and save changes.
8 ) Now you can modify, install, edit, without any owner-generated problems
Hope that helps.
«
Last Edit: January 17, 2007, 18:11:42 by eliasan
»
Logged
Dreamlander
Newbie
Posts: 14
Re: Configuration.php
«
Reply #2 on:
January 18, 2007, 12:12:25 »
Elia thank you for the quick responce.
Actualy i am currently hosting the site so i run the chown command for the owner which it was already the correct one.
Who should be the owner of the group cause currenlty is the server.
I am still having the same problem as you have noticed.
Thank you once again
Logged
eliasan
Hero Member
Posts: 897
Re: Configuration.php
«
Reply #3 on:
January 18, 2007, 12:25:53 »
Hi,
Since you own the server, please check the rest of your files. The should have the correct user and group set.
Then chown configuration.php based on them.
This scenario is valid, only if you have uploaded Elxis files using FTP. Only then, the user and group of files will be set to the correct one.
If you fail to do so, you can always manually edit configuration.php and enable the FTP access for Elxis.
Look the code bellow:
$mosConfig_ftp = '1'; /* 1: Enable FTP, 0: Disable FTP */
$mosConfig_ftp_host = ''; /* FTP host URL, for example ftp.elx20064.tst */
$mosConfig_ftp_user = ''; /* FTP username */
$mosConfig_ftp_pass = ''; /* FTP password */
$mosConfig_ftp_port = '21'; /* FTP port */
$mosConfig_ftp_root = ''; /* Path to Elxis from the FTP root */
«
Last Edit: January 18, 2007, 12:54:19 by eliasan
»
Logged
Dreamlander
Newbie
Posts: 14
Re: Configuration.php
«
Reply #4 on:
January 18, 2007, 12:38:40 »
Elia you are the man!!!
It was this line that had the fault
$mosConfig_ftp_root = ''; /* Path to Elxis from the FTP root */
Thank you so much
Consider the case closed.
Logged
eliasan
Hero Member
Posts: 897
Re: [solved] Configuration.php
«
Reply #5 on:
January 18, 2007, 12:55:50 »
Good to know that the problem is solved.
I will mark topic as [solved].
Happy Elxing!
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
[solved] Configuration.php