zamrg Posted November 15, 2010 Share Posted November 15, 2010 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? 0 Quote Link to comment Share on other sites More sharing options...
zamrg Posted November 15, 2010 Author Share Posted November 15, 2010 I've managed to solve it using the guide here -> http://kbeezie.com/view/php-self-path-nginx/ It was a matter of path_info and php_self being set incorrectly. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.