Elxis CMS Forum
Support => Administration => Topic started by: rentasite on October 27, 2008, 17:23:33
-
Hi, in the Admin area and through System / View System Information i get the error you can also see in the attachment.
I must say that yesterday i migrated to a new server (with php5, mysql5).
* I didn't change any permissions on those folders after the migration. On the old environment everything worked ok.
Any idea why i get this ?
[attachment deleted by admin]
-
Did your last server use suphp ?
-
Don't remember !! ::) What should i do now?
-
It seems that your current server has different configuration than the last , the best way is to change the permissions to the defaults and enable FTP ...
-
It seems that your current server has different configuration than the last
I guess so....
-
GOD!!! >:(
Why is this happening! I must go back 2 years to see what i set up then !?!?!?!
-
Set all your folders to 755 and all files to 644 ... Then Enable FTP in Global Configuration ... Nothing else
-
The only directories that must be writeable are the tmpr/ and cache/ folders.
Pay attention to the following:
If you moved a site from one server to an other and you jsut copy-paste files then the files that belonged to the local ftp user in your old server now belong to a user that it does not exist in the new server. You should chown all the files/dirs to the current user/group.
CD to your Elxis root folder and execute the following command:
chown -R username:group *
where username/group your current username/group.
Now make everything un-writeable by everybody except the files/dirs owner:
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;
Now make writeable the files/dirs you want to be writeable:
chmod 777 cache/
chmod 777 tmpr/
chmod 777 administrator/tools/defender/logs/
chmod 666 administrator/tools/defender/config.php
chmod 777 administrator/tools/floodblocker/logs/
chmod 666 administrator/tools/floodblocker/config.php
cd administrator/tools/defender/logs/
chmod 666 *
cd ../../floodblocker/logs/
chmod 666 *
make writable any other files/dirs you wish
Proper Elxis installation guide:
https://www.elxis.org/guides/general-guides/proper-elxis-installation.html (https://www.elxis.org/guides/general-guides/proper-elxis-installation.html)
Basic security rule: First we deny everything (make everything un-writeable), then we give access (make specific files/dirs writeable). Never the opposite!
Elxis with FTP enabled can write to un-writeable files/folders and work normally. it is only required to make writeable by everyone some dirs/files that are used before elxis gets loaded (tmpr, cache and security tools).
You can add the commands above in a shell script and execute them at once in any site you wish.
-
where username/group your current username/group.
Ok got it, thanks! But when we say group ??? Super Administrator ?
-
I am talking about the linux user and the linux group.
Each file in linux belongs to a user and a group. This user is the site's basic account (usually the one you use to login to your site ftp).
The group varies depending on the linux distribution and/or control panel.
in CPanel the group is the same as the user. So if your username is "supernet" you should type:
chown -R supernet:supernet *
In ISPConfig is the word "web" followed by the internal ISPConfig's web site number (i.e. web42):
chown -R supernet:web42 *
To find out the username/group cd to your site root folder and type:
ls -la
-
Another easy solution,If you haven't access to the shell :
If you want to reset your files to the default permissions , You can also make a .zip file from all your existing files and folders ...
Download the compressed file , Then extract the .zip file in a windows operating system (like Windows XP) , By this way , all files and folders leave their current permissions ...
Now compress all files and folders again using the Send to -> Compressed (zipped) Folder ...
Delete your current files and folders from your host (Note that it is better to ensure that you have a good backup from your current files and folders)
Upload the .zip file and extract it in the file manager of your hosting panel (Cpanel can do this)
Now you can set the permissions of /tmp and /cache or what ever you want to the proper permissions ;)
-
Farhad's solution is not working. I did what u said but no. Ill try John's. Maybe its not a permissions issue. I have checked and doubled checked the permissions.
Maybe something regarding my PHP settings on my server brings up that error.
Edit: LOL see tha screenshot
[attachment deleted by admin]
-
What's wrong ? ???
-
What's wrong ? ???
For all Elxis functions and features to work, ALL of the following directories should be writeable:
...see any directory unwritable? ::)
-
So I said what is wrong ? you changed all folders to writable permission ! Is there any problem now ? Do you want to change their permissions to unwritable ? What did you do that this change occured ?
-
So I said what is wrong ? you changed all folders to writable permission ! Is there any problem now ? Do you want to change their permissions to unwritable ? What did you do that this change occured ?
Ooops u forgot my 1st sentence on my 1st post.
Hi, in the Admin area and through System / View System Information i get the error you can also see in the attachment.
-
You mean that you haven't the tabs ? By clicking on view system information you don't see these tabs?:System Info , PHP Information , Permissions ?
You see just permissions tab?
I don't see any error there ? ???
[attachment deleted by admin]
-
You mean that you haven't the tabs ? By clicking on view system information you don't see these tabs?:System Info , PHP Information , Permissions ?
You see just permissions tab?
Correct!!! I see... what i attached before! :o And not...as tab. A bit messed up.
I don't see any error there ? ???
Its your installation. That's why.....
Thanks
-
You mentioned your problem a little bad , An error is something that show you a message that is related to a problem , In your attached screen there isn't any error message ...
When I saw your screen shot , I though that your problem is a permission related , You could mention it like me :
You mean that you haven't the tabs ? By clicking on view system information you don't see these tabs?:System Info , PHP Information , Permissions ?
You see just permissions tab?
ok , No problem ...
What is the version of Elxis you are using in this site?
It may be is for disabling some functions in php.ini of your server , like phpinfo , ...
-
Version : Elxis 2008.0 updated to 2008.1
* and to catch up, after the update was done everything worked correct.
Where can i find what functions should be set in php.ini ?
-
If the phpinfo is disabled you can't find it your self , You should contact your hosting provider to see the php configuration ...
Ask them about disabled functions ? disable_functions = phpinfo , ...
-
On your current server :
display_errors is On , change it to off
allow_url_fopen is On , change it to off
change output_buffering to off
post_max_size is 8M , increase the value to 16MB or 24MB
-
Hi,
should register_long_arrays be ON or OFF ???
-
I quit!
I will live without System Information :)
-
My note from my provider
The value register_globals which helped you to get information on server and resources is turned off on the current server. This is for security reason as there are more exploits happening using the same. If you still wish to have this enabled, then please have a file named php.ini uploaded on to the webspace with values:
register_globals = On
::) ::) ::)
-
register globals should be off , Your notes means that your server is enabled phpsuexec and suphp ... So you can write on all files and folders without changing the permissions ...