cacti 0.8.7g on ubuntu with nginx error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
yamingd
Posts: 2
Joined: Thu Jul 21, 2011 6:47 am

cacti 0.8.7g on ubuntu with nginx error

Post by yamingd »

cacti 0.8.7g on ubuntu with nginx error: Invalid PHP_SELF Path

Code: Select all

Array
(
    [USER] => daemon
    [HOME] => /usr/sbin
    [FCGI_ROLE] => RESPONDER
    [SCRIPT_FILENAME] => /var/www/cacti/index.php
    [PATH_INFO] => /index.php
    [QUERY_STRING] => 
    [REQUEST_METHOD] => GET
    [CONTENT_TYPE] => 
    [CONTENT_LENGTH] => 
    [SCRIPT_NAME] => /index.php
    [REQUEST_URI] => /
    [DOCUMENT_URI] => /index.php
    [DOCUMENT_ROOT] => /var/www/cacti
    [SERVER_PROTOCOL] => HTTP/1.1
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_SOFTWARE] => nginx/1.0.0
    [REMOTE_ADDR] => 192.168.0.104
    [REMOTE_PORT] => 3840
    [SERVER_ADDR] => 192.168.0.100
    [SERVER_PORT] => 80
    [SERVER_NAME] => cacti.52hola.com
    [REDIRECT_STATUS] => 200
    [HTTP_HOST] => cacti.52hola.com
    [HTTP_CONNECTION] => keep-alive
    [HTTP_CACHE_CONTROL] => max-age=0
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.32 (KHTML, like Gecko) Chrome/13.0.751.0 Safari/534.32
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_ACCEPT_ENCODING] => gzip,deflate,sdch
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.8
    [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.3
    [PHP_SELF] => /index.php/index.php
    [REQUEST_TIME] => 1311248496
    [argv] => Array
        (
        )

    [argc] => 0
)
nginx conf

Code: Select all

  root         /var/www/cacti;

 location ~ \.php$ {
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME /var/www/cacti$fastcgi_script_name;
                include        fastcgi_params;
        }

noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: cacti 0.8.7g on ubuntu with nginx error

Post by noname »

yamingd
Posts: 2
Joined: Thu Jul 21, 2011 6:47 am

Re: cacti 0.8.7g on ubuntu with nginx error

Post by yamingd »

thank you. but my global.php looks exactly like this

Code: Select all

if ((!in_array(basename($_SERVER["PHP_SELF"]), $no_http_header_files, true)) && ($_SERVER["PHP_SELF"] != "")) {

	/* Sanity Check on "Corrupt" PHP_SELF */
	if ($_SERVER["SCRIPT_NAME"] != $_SERVER["PHP_SELF"]) {
		echo "\nInvalid PHP_SELF Path \n";
		exit;
	}
and the PHP_SELF is :

[PHP_SELF] => /index.php/index.php
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest