debian - Getting random errors when setting up Joomla with nginx instead of apache -


i'm trying set joomla 3 instance on server using nginx owncloud blogging platform ghost.

my first attempt quite successful , failed in last installation step (creating configuration files). though due wrong permissions, file couldn't created. wrote short test script verify if php5-fpm had write permissions in folder, , worked.

after several failed retries , no log files decided delete directory , download joomla again. since than, nothing works. after every time unpack zip (freshly downloaded or same) following arbitrary error scenarios:

  • i redirected installation/installation/index.php instead of installation/index.php
  • i had errors missing php files
  • i had errors missing php classes:
    • japplicationbase
    • japplicationwebclient
    • some view class
    • ...

after every unzip , re-download error changes though don't change on nginx or php5-fpm config.

after downloading , extracting files use following command set joomla-directory properly:

  • sudo chown -r joomla_user .
    • optional, if downloaded , extracted zip user - see tried every possible combination
  • sudo chgrp -r www-data .
    • nginx runs www-data joomla_user isn't in www-data group.
    • the files , folders readable nginx, not writable. thought isn't problem since writes done php anyway
  • sudo chmod -r g+s .
    • to make sure future uploaded files readable nginx

my nginx config in sites-available (and sites-enabled) looks this:

server {     listen 80;     server_name joomla.server_url;      root /home/joomla_user/www/joomla3;     index index.php index.html index.htm default.html default.htm;     # support clean (aka search engine friendly) urls     location / {             try_files $uri $uri/ /index.php?$args;     }      # deny running scripts inside writable directories     location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {             return 403;             error_page 403 /403_error.html;     }      location ~ \.php$ {         fastcgi_pass unix:/var/run/php5-fpm-joomla_user.sock;          fastcgi_index index.php;         include fastcgi_params;         fastcgi_param script_filename $document_root$fastcgi_script_name;     }      # caching of files      location ~* \.(ico|pdf|flv)$ {             expires 1y;     }      location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {             expires 14d;     }  } 

the php5-fpm pool-config copy paste of default config changed socket name , name.

in summary again - php5 execution works, permissions allow creating , writing of files (at least in directories checked), after installation didn't finish in beginning, getting random error messages after every time unzip joomla3 zip file, when download id fresh (and directly server via wget) website (http://www.joomla.org/download.html).

does have experience using joomla on top of nginx? idea how rid of errors , make run?

update:

my php version 5.4.4:

php 5.4.4-14+deb7u8 (cli) (built: feb 17 2014 09:18:47)  copyright (c) 1997-2012 php group zend engine v2.4.0, copyright (c) 1998-2012 zend technologies 

also yesterday talking joomla developer problem, suggested directory permission problems, ist still exists after executing chmod -r u+rw . in joomla directory.

i didn't manage rid of errors, got suggestion use tuxlite-script. running ./domain.sh add joomla joomla_server_url created new config necessary directories. nginx-config adds ssl section referenced in case wrong certificate files. after fixing that, joomla again , running.

i still had first problem - joomla did't finish installation. due short fastcgi_read_timeout (the default 60 seconds). changing few more minutes made work.

the last configuration changed in joomla's nginx configuration:

location / {         try_files $uri $uri/ /index.php?$args; } 

was changed to

location / {         try_files $uri $uri/ /index.php?q=$request_uri; } 

as described in joomla documentation nginx.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -