Payments not working...

Discussion in 'Troubleshooting' started by regis, Aug 31, 2012.

  1. regis

    regis aMember Pro Customer

    Joined:
    Aug 29, 2006
    Messages:
    40
    I've just moved the site to a new centos / nginx server and everything is working great except for the cc module, people are not able to signup and make payments. Looks like the cc module is broken, when a user gets to the payment screen it just goes blank... which looks like maybe a 500 server error?

    Support emailed me and asked if my config is correct. Below is an example of my nginx config located in /etc/nginx/sites-available/www.example.com:

    server {
    server_name .example.com;
    access_log /var/www/vhosts/example.com/logs/example.access.log main;
    error_log /var/www/vhosts/example.com/logs/example.error.log;

    root /var/www/vhosts/example.com/httpdocs/;
    index index.php index.html;

    client_max_body_size 50M;
    client_body_buffer_size 128k;

    location ~* ^/member/.*\.(js|ico|gif|jpg|png|css|swf|csv)$ {}
    location ~* ^/member/setup/index.php$ { try_files not-existing-file @php; }
    location ~* ^/member/js.php { try_files not-exiting-file @php; }
    location ~* ^/member/index.php$ { try_files not-existing-file @php; }
    location ~* ^/member/public.php$ { try_files not-existing-file @php; }

    location ~* ^/member/public { rewrite ^.*$ /member/public.php; }
    location ~* ^/member/setup { rewrite ^.*$ /member/setup/index.php; }
    location ~* ^/member { rewrite ^.*$ /member/index.php; }

    # this prevents hidden files (beginning with a period) from being served
    #location ~ /\. { access_log off; log_not_found off; deny all; }

    location ~ \.php$ {
    try_files not-existing-file @php;
    }

    location @php {

    fastcgi_pass 127.0.0.1:9000;
    include /etc/nginx/fastcgi_params;
    fastcgi_param SCRIPT_FILENAME /var/www/vhosts/example.com/httpdocs/$fastcgi_script_name;
    }
    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
    deny all;
    }
    }


    If anyone has gone through this or might know what's going on please let me know!

    Thanks,

    Sean

Share This Page