Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetSimple error on Nginx (XooFoo 1.7 miniserver on USB Key)
#1
Hi,

as I can not use Xampp (on a USB Key) at my office I tried the really great XooFoo 1.7 (NGINX web miniserver).
I think to definitively use this mini portable web server because I need to use it for kmotion program.
http://sourceforge.net/projects/xoofoo/f...e/download

But as I tried to use GetSimple on this mini web server I got an error when I tried to see the index page of my getsimple website or when I try to access the website admin page :
Fatal error: Cannot override final method SimpleXMLElement::__construct() in Z:\www\WEBDomotique\admin\inc\basic.php on line 197

I did not find how to solve this generated error because when I saved this created getsimple website I made to my host it works great online but not locally on the USB.

Here is the nginx.conf that must may be modified to remove this specific GetSimple error.

If somebody could test it it could be great if you find the way to disabling this error and finally get the GetSimple website and administrator page.

Have a nice day,

Miguipda ;-)

#user nobody;
worker_processes 1;

pid /usr/local/nginx/logs/nginx.pid;
#error_log logs/error.log;
#error_log logs/errorlog notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
timer_resolution 500ms;

events { worker_connections 1024;}

http {
include mime.types;
default_type application/octet-stream;

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log logs/access.log main;

upstream php {
server localhost:9000;
server localhost:9001;
server localhost:9002;
server localhost:9003;
server localhost:9004;
}

# General Options
ignore_invalid_headers on;
recursive_error_pages on;
sendfile on;
server_name_in_redirect off;
server_tokens off;
tcp_nodelay on;
tcp_nopush on;


index index.html index.htm index.php;
error_page 403 404 tools/40x.html;
error_page 500 502 503 504 tools/50x.html;

# Size Limits
client_body_buffer_size 64k;
client_header_buffer_size 4k;
client_max_body_size 8M;

# Timeouts
client_body_timeout 60;
client_header_timeout 20;
keepalive_timeout 65;
send_timeout 60;

# Compression
gzip on;
gzip_comp_level 6;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/gif;
gzip_vary on;

# Misc
fastcgi_connect_timeout 60;
fastcgi_send_timeout 120;
fastcgi_read_timeout 120;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 128k;

# Temporaries folders
client_body_temp_path /tmp/nginx/client_body_temp;
fastcgi_temp_path /tmp/nginx/fastcgi_temp;
proxy_temp_path /tmp/nginx/proxy_temp;
uwsgi_temp_path /tmp/nginx/wsgi_temp;
scgi_temp_path /tmp/nginx/scgi_temp;

# Server
server {
listen 8102 default;
server_name 127.0.0.1 localhost;
root /www;

location / {
index index.html index.htm index.php;
}
# tools alias (mini server administration)
location ~ /tools(.*)\.php($|/) {
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/www/tools$1.php;
}
location ~ /tools(.*) {
autoindex on;
alias /home/www/tools$1;
}

location = /favicon.ico {
log_not_found off;
access_log off;
}

location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}

location ~* \.flv$ {
flv;
}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ .*\.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}

# add expire headers
location ~* ^.+.(gif|ico|jpg|jpeg|png|flv|swf|pdf|mp3|mp4|xml|txt|js|css)$ {
expires 30d;
}

# only allow these request methods
if ($request_method !~ ^(GET|HEAD|POST)$ ){ return 405; }

# deny access to .htaccess files
location ~ /\.ht { deny all; }
}


# HTTPS server
#
#server {
# listen 443;
# server_name localhost;

# ssl on;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;

# ssl_session_timeout 5m;

# ssl_protocols SSLv2 SSLv3 TLSv1;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;

# location / {
# root ssl;
# index index.html index.htm index.php;
# }
#}
}
Reply


Messages In This Thread
GetSimple error on Nginx (XooFoo 1.7 miniserver on USB Key) - by miguipda - 2012-03-29, 17:40:16



Users browsing this thread: 1 Guest(s)