Forums / Install & configuration / Install troubles

Install troubles

Author Message

Zotov Vladimir

Saturday 08 March 2008 12:03:27 am

When I try to install Ez to a server, I have this finetune message:

System check

There are some important issues that have to be resolved. A list of issues / problems is presented below. Each section contains a description and a suggested / recommended solution.

Once the problems / issues are fixed, you may click the Next button to continue. The system check will be run again. If everything is okay, the setup will go to the next stage. If there are problems, the system check page will reappear.

Some issues may be ignored by checking the Ignore this test checkbox(es); however, this is not recommended.

It is also possible to do some finetuning of your system, click Finetune instead Next if you want to see the finetuning hints.
Issues1. Insufficient directory permissions
Insufficient directory permissions

eZ Publish cannot write to some important directories, without this the setup cannot finish and parts of eZ Publish will fail.
The affected directories are: design extension settings settings/override settings/siteaccess settings/siteaccess/admin var var/cache var/cache/codepages var/cache/content var/cache/ini var/cache/override var/cache/template var/cache/template/process var/cache/template/tree var/cache/texttoimage var/cache/translation var/log var/storage var/storage/original var/storage/reference var/storage/variations

eZ Publish could not detect the user and group of the web server. If you know the user and group of the web server it is recommended to change the ownership of the files to match this user and group. To do this you need to change the chown commands under Alternative shell commands.
Shell commands

These shell commands will give proper permission to the web server.
cd /usr/local/www/vhosts/geo.ru/subdomains/test98u15/httpdocs
chmod -R a+rwx design extension settings settings/override settings/siteaccess settings/siteaccess/admin var var/cache var/cache/codepages var/cache/content var/cache/ini var/cache/override var/cache/template var/cache/template/process var/cache/template/tree var/cache/texttoimage var/cache/translation var/log var/storage var/storage/original var/storage/reference var/storage/variations
Alternative shell commands

These commands will setup the permission more correctly, but require knowledge about the running web server.
chmod -R og+rwx design extension settings settings/override settings/siteaccess settings/siteaccess/admin var var/cache var/cache/codepages var/cache/content var/cache/ini var/cache/override var/cache/template var/cache/template/process var/cache/template/tree var/cache/texttoimage var/cache/translation var/log var/storage var/storage/original var/storage/reference var/storage/variations
chown -R nouser:nouser design extension settings settings/override settings/siteaccess settings/siteaccess/admin var var/cache var/cache/codepages var/cache/content var/cache/ini var/cache/override var/cache/template var/cache/template/process var/cache/template/tree var/cache/texttoimage var/cache/translation var/log var/storage var/storage/original var/storage/reference var/storage/variations

How can a I fix it?

Michael Hall

Saturday 08 March 2008 12:29:56 am

The web server does not have permission to write to the directories listed.

You need to change the permissions on those directories so that the web server can write to them.

The message gives you examples of commands you could run to fix this problem.
They need to be run on the command line of the server, which requires SSH access at least.

If you don't have command line access, you could try changing these permissions using an FTP program (big job unfortunately).

Zotov Vladimir

Saturday 08 March 2008 12:35:36 am

Yes, I've don it yet. I've changed rigths to all those directories access. But settings/siteaccess/admin directory make this mistake again, even after I've changed rules.

These shell commands will give proper permission to the web server.
cd /usr/local/www/vhosts/geo.ru/subdomains/test98u15/httpdocs
chmod -R a+rwx design extension settings settings/siteaccess/admin var
Alternative shell commands

These commands will setup the permission more correctly, but require knowledge about the running web server.
chmod -R og+rwx design extension settings settings/siteaccess/admin var
chown -R nouser:nouser design extension settings settings/siteaccess/admin var

P.S. Please, discribe in details how can I run this commands wiht SSH.

Michael Hall

Saturday 08 March 2008 1:53:55 am

Is this your own server, or are you using shared web hosting?

SSH is just a way of accessing the server. If it's your own server, you probably don't need SSH. If you've already changed the permissions, then again you don't need SSH.

If it's shared hosting, sometimes web servers are set up with unusual requirements for directory and file permissions, usually for security reasons. Perhaps you should contact the web host and find out what their file permissions policy is.

Zotov Vladimir

Sunday 09 March 2008 7:34:58 am

Thank you very much!
Now I've got another problem. I've got a test subdomain of my domain on the public hosting server. I try to install Ez.In the step Site details installer said:

Warning
The database [test] cannot be used, the setup wizard wants to create the site in [utf-8] but the database has been created using character set [koi8-r]. You will have to choose a database having support for [utf-8] or modify [test] .

So, when I try to fix it by changing character set, I login into admin panel (Plesk) and see that my database has character set utf-8 yet. I suppose that it may be because I've created a data base in domain (not subdomain in which I try to install Ez). I did it because I can't create it in the subdomain. Please, help me: I didn't have such problems installing Ez at home.