Elxis CMS Forum
Support => General => Topic started by: ROUBOS on January 30, 2012, 15:29:14
-
Hi,
I have to install elxis for a new website on a server with PHP safe mode ON.
I asked them to change the setting as I do not have access to php.ini.
They did but it looks like its OFF when PHP is running in Apache mode. Shouldn't I have php running as Fast CGI applicaiton? When I change to FastCGI the PHP safe mode is back on.
EDIT>>: All the folders are writable when I change to FastCGI, and unwritable when on Apache mode
EDIT>>: Sorry, what do we prefer for Elxis, Apache mode or CGI & FastCGI ???
EDIT>>: In apache mode, through FTP I change the folder permission to 755, and it still shows up as unwritable. Do I make it 777 for install and then change it back to 755?
-
also the session save path is unwritable: Session save path / var/ lib/ php5 (Unwritable)
Do I change it to something like session_save_path("/var/www/vhosts/domain.gr/httpdocs/tmp"); in the confiduration.php ???
-
OK,
I changed all folder and file permissions to 777 (I will change back to 755 after install) and I made these additions to the .htaccess file:
php_flag allow_url_fopen Off
php_flag short_open_tag Off
php_flag register_globals Off
php_flag display_errors Off
php_flag magic_quotes_gpc Off
php_value date.timezone "Europe/Athens"
php_value session.save_path "/var/www/vhosts/domain.gr/httpdocs/tmp"
php_value disable_functions "system, exec, passthru, shell_exec, suexec, dbmopen, popen, proc_open, disk_free_space, diskfreespace, set_time_limit, leak"
The only thing I cannot get to work is the url_fopen for some reason
-
The PHP safe mode of your server must be set as OFF.
As you have quoted at your last post here is the recommended php settings of Elxis. Analytically... (http://wiki.elxis.org/wiki/PHP_settings)
The only 2 folders that must be writable are the cache and tmpr one.
-
Safe mode is OFF. But all the folders during install where unwritable with permissions 755 (checked them through ftp)
I changed the permissions to 777, made them writable in order to install elxis.
Now I hope things will work when I change them back to 755
-
When running php with mod_php 755 folders and 644 files are writeable only to the folder/file owners (apache if uploaded via elxis or the ftp user if uploaded via ftp). So you might need to chmod them to 777/666 to write on them depending on the owner and user that tries to access them.
When running php with suphp or suexec 755 folders and 644 files are writeable to everyone because the web server runs(apache) as the "ftp user".
In your case you run php with mod_php (php runs as an apache module).
-
so I need to have folders 777 and files 666 ???
-
Only the ones that needs to be writeable (tmpr/ and cache/ must ALWAYS be writeable). For instance if you want to install a component make the components/ and administrator/components/ folders writeable. After install you can turn them back to unwriteable.
Note that this is not an elxis issue, it is a matter of php/server setup. Elxis has FTP support exactly for this purpose, to bypass mod_php restrictions. Also Elxis has also a chmod tool that allows you to chmod files/folders that are owned by the web server and you can not touch via ftp. So, you have all the tools to work with any server setup.
-
got confused here.
I changed all the folders to 755 and files to 644 apart from cache/ and tmpr/ which are 777. I did this trough ftp (filezilla)
Something is playing up with the templates. For example I make Ks-Eros Default and assign it to all nav items, and the home page still displays okto
What could be causing this? Is it the file and folder permissions?
I even uploaded my own template, and when I made it the default, I was getting different templates showing up from different links
I empty the Temporary and Clear the Cache from Admin tools with no luck
where is the CHMOD tool in admin?
-
The think I have fixed the problem with the templates. I think it was the enabled static cache
-
OK...
-
Newbie here.I install elxis for the first time. I read wiki about elxis 2009 installation.
I read that configuration.php should be writable, in pre installation check shows me that is writable. I see permissions of it is 644
What is better leave it as it is or change it to 777?
Also for folders cache/tmpr, pre installation check shows them writable. Their permissions are 755 .
Is it better leave them as it is or change them to 777?
The same with all other folders that are suggested to be writable. Pre installation show them writable. Their permissions are 755
What is better for elxis installation 755 or 777
thank you
-
What is better for elxis installation 755 or 777
This depends on your server config. If it has PHP installed as mod_apache, then you are executing scripts as "nobody". In such case, you must use 777 mod. If PHP is installed as (fast)cgi then you should leave folders in 755 mode, as PHP is executing as user. In addition, giving folders permissions like 777 would raise an error 500. Hope this clears things up.
PS
You can see info on you server by going to administrator->System->System Information