?
avatar samanmohamadi
samanmohamadi
6 Jan 2016

Hi, I use nginx with php-fpm in server .This condition " strpos(php_sapi_name(), 'cgi') !== false " here cause $script_name to come from $_SERVER['PHP_SELF'] (which is empty) instead of $_SERVER['SCRIPT_NAME]. so it makes baseurl empty and other problem.
I remove this condition temporarily to fix this issue.
should I change nginx config to fix it ?

avatar samanmohamadi samanmohamadi - open - 6 Jan 2016
avatar adamasantares
adamasantares - comment - 10 Jan 2016

Hi,
I'm not sure, but I think, you need to update php5-fpm config (host's pool). I think you can define the PHP_SELF manually...

avatar brianteeman brianteeman - change - 13 Jan 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 27 Jan 2016
Status New Information Required
avatar brianteeman brianteeman - change - 27 Jan 2016
Title
nginx, wrong base['path']
nginx, wrong base['path']
avatar brianteeman
brianteeman - comment - 27 Jan 2016

Did you resolve this - it sounds like a server config issue and not a real joomla issue as many people use nginx for their joomla sites.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8849.

avatar samanmohamadi
samanmohamadi - comment - 27 Jan 2016

Resolved, The issue was from bad php and nginx configuration.
working setup :

nginx :

    location ~ \.php(.*)$ {
        include fastcgi_params;
        fastcgi_split_path_info       ^(.+\.php)(.*)$;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param  PATH_INFO          $fastcgi_path_info;
        fastcgi_param  PATH_TRANSLATED    $document_root$fastcgi_path_info;


        fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
        fastcgi_index index.php;
    }

php.ini :

  cgi.fix_pathinfo=1
avatar samanmohamadi samanmohamadi - change - 27 Jan 2016
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2016-01-27 14:16:07
Closed_By samanmohamadi
avatar samanmohamadi samanmohamadi - close - 27 Jan 2016

Add a Comment

Login with GitHub to post a comment