I am trying to install Elgg 2.3.2 on Centos 7 running nginx but cannot get any of the nginx.conf code I have found to work. Any help would be greatly appreciated. If you have a nginx.conf that works ( I can input my own ip and domain name obviously) please let me know or if there is anything else needs to be done, instructions on how would be wonderful.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
I tried to set up a different user other than root admin but it still is a no go
It's the webserver process account that needs to be able to read/write the public_html folder and everything in it. So, either chown to the correct user or set at least appropriate permissions for "others" (as group permissions will most likely not be sufficient either).
I have tried a different nginx.conf and now the install form shows and the second page says all PHP requirements are met but the rewqrite test comes back with a 404 error.
server {
listen myip:80;
server_name yoursite.com www.yoursite.com;
# Server root, replace it with your elgg installation location
root /home/admin/web/yoursite.com/public_html;
index index.php index.html index.htm;
# Server logs, replace it with your project names
access_log /var/log/nginx/domains/yoursite.com.log combined;
access_log /var/log/nginx/domains/yoursite.com.bytes bytes;
error_log /var/log/nginx/domains/yoursite.com.error.log error;
# Max post size
client_max_body_size 20M;
client_body_buffer_size 256K;
ssi on;
gzip on;
gzip_types
# text/html is always compressed by HttpGzipModule
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
font/truetype
font/opentype
application/vnd.ms-fontobject
image/svg+xml;
location ~ (^\.|/\.) {
return 403;
}
location = /rewrite.php {
rewrite ^(.*)$ /install.php;
}
location / {
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /etc/nginx/conf.d/webmail.inc*;
try_files $uri $uri/ @elgg;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
# Pay attention to update your pastcgi_pass parameter to your socket path, or to your listenng port.
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass /etc/php.ini;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
location @elgg {
fastcgi_pass 127.0.0.1:9001;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param SCRIPT_NAME /index.php;
fastcgi_param QUERY_STRING __elgg_uri=$uri&$args;
}
error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html;
location /error/ {
alias /home/admin/web/yoursite.com/document_errors/;
}
}
}
Found it was may darn server ..I reinstalled it and installed elgg on a spare domain and it worked fine including the data dir...so now i just need to wait til my dns is propgated and I can install it on the real domain..sorry for the trouble
- Previous
- 1
- 2
- Next
You must log in to post replies.