Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-13-2008, 07:42 PM   #1
Registered: Feb 2007
Distribution: Kubuntu, it's obese barely-usable sibling, Ubuntu
Posts: 142

Rep: Reputation: 15
Some Joomla administration links give "Component not found" with nginx


I am trying to host a Joomla! site using nginx and FastCGI. It works, for the most part, except for one thing (which is actually more of an annoyance): when in the administrator section of the site, whenever editing a component that you have to click Save or Cancel or any other buttons of finalization (e.g. copying a menu, saving an article, etc.), the action takes effect, but instead of being redirected back to the list of items (or whatever), I get a "Component not found" error. The problem, upon observation of the URL, is obvious: the "administrator/" part of the URL had been dropped. In other words, what was supposed to be "" is now "". Below is the nginx config for my site.

server {
    listen 80;
    client_max_body_size 50M;
    server_name localhost;
    root /var/www/cmstest/joomla;
    access_log  /var/log/nginx/cmstest.access.log;
    error_log /var/log/nginx/cmstest.error.log;
    location / {
      index  index.html index.php;
      expires  max;
    location ~ \.php$ {
      fastcgi_index  index.php;
      fastcgi_param  SCRIPT_FILENAME  /var/www/cmstest/joomla$fastcgi_script_name;
      include        /etc/nginx/fastcgi.conf;
      expires  max;
    error_page  500 502 503 504  /50x.html;
    location =  /500.html { root  /var/www/cmstest; }
The fastcgi.conf file referenced is:

fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;
Is this a rewrite issue? I've tried playing around with some stuff (if ($request_uri ~* administrator/.*\.php$) { fastcgi_param SCRIPT_NAME /path/to/root/administrator$fastcgi_script_name; }), but to no avail (and, in fact, more problems). If you need more information, let me know!

Old 09-22-2009, 02:43 AM   #2
Registered: Sep 2009
Posts: 30

Rep: Reputation: 15

do you have a solution for this..

i am having the same kind of problem right?

Old 10-29-2009, 04:36 PM   #3
LQ Newbie
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Just for the record if anyone has the same issue.

I had the same problem, Joomla uses $_SERVER['PHP_SELF'] and $_SERVER['SCRIPT_NAME'] to retrieve the path to files. If you commented out the following line in /etc/nginx/fastcgi_params then you have to uncomment it:

fastcgi_param SCRIPT_NAME $fastcgi_script_name;
When uncommented everything worked fine on my server.
Old 10-29-2009, 04:37 PM   #4
LQ Newbie
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
For info it's the same problem I have discussed on the nginx forums:,10324


joomla, nginx, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone give me the definition of "Kernel Symbol" and "EXPORT_SYMBOL" ?? Raynus Programming 2 08-30-2008 07:19 PM
LFS6.3 - Ch5.4.1 "/bin/sh sort not found" error at "make bootstrap" ubyt3m3 Linux From Scratch 2 06-23-2008 12:09 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
"Essential System Administration" or "UNIX System Administration Handbook"? TGWDNGHN Linux - Newbie 3 07-03-2005 08:27 PM
some component missed after using "mandrake update" ??? kix_vn Mandriva 3 01-15-2004 09:06 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration