Jump to content

Duplicate post urls in admin interface


zamrg

Recommended Posts

I've just installed a copy of WHMCS with a trial license.

 

The server is running nginx 0.8.53, php-fpm 5.3.2, mysql 5.1.41 and whmcs 4.3.

 

I can log in to the admin portal but when I try save a settings page, the settings get posted to a url such as:

action="/custom_admin_dir/configgeneral.php/custom_admin_dir/configgeneral.php?action=save" instead of:

action="/custom_admin_dir/configgeneral.php?action=save"

 

This is a copy of my configuration.php

<?php
$license = "Trial-xxxxxxx";
$db_host = "localhost";
$db_username = "whmcs";
$db_password = "xxxxxx";
$db_name = "whmcs";
$cc_encryption_hash = "xxxxxx";
$templates_compiledir = "/home/username/subdomains/client.domain.com/templates_c/";
$attachments_dir = "/home/username/subdomains/client.domain.com/attachments/";
$downloads_dir = "/home/username/subdomains/client.domain.com/downloads/";
$customadminpath = "custom_admin_dir";
?>

 

and this is my vhost configuration in nginx.

 

server {
   listen *:80;
   server_name client.domain.com;

   access_log /var/log/nginx/client.domain.access.log main;
   error_log /var/log/nginx/client.domain.com.error.log;

   location / {
       root /home/username/subdomains/client.domain.com/public_html;
       index index.php index.html index.htm;
   }

   error_page 500 502 503 504  /50x.html;
   location = /50x.html {
       root /usr/local/nginx/html;
   }

   location ~ /\.ht {
       deny  all;
   }

   location ~ \.php$ {
           fastcgi_split_path_info ^(.+\.php)(/.+)$;
           include /usr/local/nginx/conf/fastcgi_params;
           fastcgi_index index.php;
           fastcgi_param SCRIPT_FILENAME /home/username/subdomains/client.domain.com/public_html$fastcgi_script_name;
           fastcgi_pass 127.0.0.1:9000;
   }
}

 

Anyone have any suggestions?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated