APC web interface problem


#1

I have installed APC and it is working but I have some trouble with its web interface which seem to come from nginx. You can see it live here: http://pacura.ru/apc.php

i.e .click on any link and the link will look like i.e. this: http://pacura.ru/apc.php/apc.php?SCOPE=A&SORT1=H&SORT2=D&COUNT=20&OB=2

Notice the double apc.php? I guess it is somewhere in this location where this happens:

        location ~ \.php$ {     
        try_files $uri =404;  
        include /etc/nginx/fastcgi_params;  
        fastcgi_pass unix:/var/lib/php5-fpm/web1.sock;  
        fastcgi_index index.php;  
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;  
        fastcgi_param PATH_INFO $fastcgi_script_name;  
        fastcgi_intercept_errors on;  
    }  

    location / {  
    try_files $uri $uri/ /index.php?q=$uri&$args;  

}


#2

@ovidiu

Can you post your complete nginx-config?

Is apc.php only URL for which you are facing this issue? If there is any other URL like this, please let me know.


#3

wel, since this is a new server I am setting up, for testing purposes I moved one WP installation and so far the back end as well as the front end are just fine without problems.

the APC web panel is the only other thing except WP itself that I have tested.

See attachment for my complete nginx config and the vhost conf.

P.S. I hope I didn't make any mistakes with the files as I copy/pasted them.


#4

.conf and .vhost not permitted? Its text only. what shall I do?


#5

next try:

Attachment Link(s):

http://rtcamp.com/wp-content/uploads/rtMedia/topics/24447/2013/01/100-pacura.ru_.pdf

http://rtcamp.com/wp-content/uploads/rtMedia/topics/24447/2013/01/nginx.pdf


#6

In 100-pacura.ru_pdf, please change following block:

  location ~ \.php$ {  
        try_files $uri =404;  
        include /etc/nginx/fastcgi_params;  
        fastcgi_pass unix:/var/lib/php5-fpm/web1.sock;  
        fastcgi_index index.php;              
        fastcgi_param SCRIPT_FILENAME $document_root $fastcgi_script_name;  
        fastcgi_param PATH_INFO $fastcgi_script_name;  
        fastcgi_intercept_errors on;  
    }  

To:

  location ~ \.php$ {  
        try_files $uri =404;  
        include /etc/nginx/fastcgi_params;  
        fastcgi_pass unix:/var/lib/php5-fpm/web1.sock;  
    }  

Reload nginx config and please let me know if that solves your issue.


#7

:-) Thanks! Works perfectly but those lines were generated automatically by the default ISPCFG3+ngixn installation :-(

Now I must go find the ISPCFG template files and edit them.


#8

I have to re-open this thread as my problems re-appeared and I have no idea why. I have implemented above advice to remove those lines from my config file and the problem appeared again.

Meanwhile I found out how to change the ISPCFONFIG3 templates and where to put my own customized ones. Here is the thread explaining it: http://www.howtoforge.com/forums/showthread.php?t=60188

So I'll attach my customized template, the resulting vhost config and nginx.conf maybe someone can spot the problem?

Attachment Link(s):

http://rtcamp.com/wp-content/uploads/rtMedia/topics/24447/2013/01/100-pacura.ru_.vhost_.pdf

http://rtcamp.com/wp-content/uploads/rtMedia/topics/24447/2013/01/nginx.conf_.pdf

http://rtcamp.com/wp-content/uploads/rtMedia/topics/24447/2013/01/nginx_vhost.conf_.master.pdf


#9

@ovidiu

I am really sorry to say but I won't be able to debug your config. I will need to have a working ISPconfig setup to test and it may take many hours to figure out what is going wrong... :|


#10

I do understand, this is a free support forum after all. Would you be interested in a paid job? I need the 3 issues I posted in this forum solved, the problem being that I am migrating from an old server with apache2 to this new one with nginx and I am currently paying for both this month so I'd rather pay you for the job then keep paying for two servers until I manage to fix the problem on my own.

If you are interested/able/keen to help please contact me via email.


#11

@ovidiu

Main concern is not free v/s paid. In paid service also we do not offer debugging service. Its really hard to debug existing ISPConfig setup.

What are all things for which you need ISPConfig?

If your only goal is to create new domains to host wordpress sites, under same linux-user, then you try https://github.com/rtCamp/easyengine/blob/master/php/ (we are using it on our demo server where we need to create/delete wordpress-sites from time-to-time).


#12

Well, I've been using ISPCFG3 for years but with apache2. I have now switched to a new server offer and would like to go with NGINX instead. I'm not overly concerned about ISPCFG3 the only open problems I am still having is:

a) getting caching with fastcgi working (I prefer this solution to a plugin based one)

I've managed to fix everything else.

remaining problem => https://rtcamp.com/support/topic/cant-get-fastcgi_cache-to-work/


#13

Fine. I will try to go through https://rtcamp.com/support/topic/cant-get-fastcgi_cache-to-work/ again.


#14

Just to confirm - your APC problem is also fixed.

Only fastcgi_cache issues is remaining. Right?


#15

YES. APC problem is fixed by commenting this line:

#fastcgi_param PATH_INFO $fastcgi_script_name;  

#16

Glad to know your problem is fixed! :-)


#17