US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Troubleshooting


Reply
 
Thread Tools
Old 09-20-2011, 01:51 AM   #1
Junior Member
 
Join Date: Sep 2011
Posts: 18
szluga is on a distinguished road
Default FastCGI & CGI - Not working

Recently I decided to install the latest php5 from the repository "dotdeb.org". At many sites as a result of this was wrong and does not work. So I turned around change the default installed from Debian repository Squeeze. Now everything works, but only as "apache handler" despite the fact that in the administration panel and apache2 configuration files, everything is set. Where can be the cause of action is not FastCGI or CGI?
szluga is offline   Reply With Quote
Old 09-20-2011, 08:49 AM   #2
ISPsystem team
 
Join Date: Oct 2009
Posts: 118
vian is on a distinguished road
Default

Please describe the problem in detail.
vian is offline   Reply With Quote
Old 09-20-2011, 10:14 AM   #3
Junior Member
 
Join Date: Sep 2011
Posts: 18
szluga is on a distinguished road
Default

Write all the points:
1. I added the repository dotdeb.org
2. I updated php5 and mysql-server (I noticed a problem with the web pages)
3. I turned off updates and installed the original packages from debian repository
4. everything works, but as an Apache handler (you can not turn on FastCGI and CGI for web pages)

P.S Although properly installed php5 and php5-cgi and set in the admin panel (and apache2.conf), site work as Apache Handler.

P.S2 apache2.conf
Quote:
<VirtualHost 178.63.xx.xxx:8080>
ServerName test.test.pl
DocumentRoot /var/www/user/data/www/test.test.pl
SuexecUserGroup user user
CustomLog /var/www/httpd-logs/test.test.pl.access.log combined
ErrorLog /var/www/httpd-logs/test.test.pl.error.log
ServerAlias www.test.test.pl
ServerAdmin biuro@test.pl
AddDefaultCharset UTF-8
ScriptAlias /php-bin/ /var/www/user/data/php-bin/
ScriptAlias /cgi-bin/ /var/www/user/data/www/test.test.pl/cgi-bin/
AddHandler php-cgi .php .php3 .php4 .php5 .phtml
</VirtualHost>
The results displayed in phpinfo:
Quote:
Server API: Apache 2.0 Handler

Last edited by szluga; 09-21-2011 at 03:52 PM.
szluga is offline   Reply With Quote
Old 09-21-2011, 04:53 AM   #4
ISPsystem team
 
Join Date: Oct 2009
Posts: 118
vian is on a distinguished road
Default

Well, you problem is that you cannot activate CGI or FastCGI for a domain in ISPmanager. Am I correct?
vian is offline   Reply With Quote
Old 09-21-2011, 11:12 AM   #5
Junior Member
 
Join Date: Sep 2011
Posts: 18
szluga is on a distinguished road
Default

Quote:
Originally Posted by vian View Post
Well, you problem is that you cannot activate CGI or FastCGI for a domain in ISPmanager. Am I correct?
Yes, that is my problem.
szluga is offline   Reply With Quote
Old 09-21-2011, 11:40 AM   #6
ISPsystem team
 
Join Date: Oct 2009
Posts: 118
vian is on a distinguished road
Default

please show a part of ispmgr.log when you try to create a domain.
vian is offline   Reply With Quote
Old 09-21-2011, 02:41 PM   #7
Junior Member
 
Join Date: Sep 2011
Posts: 18
szluga is on a distinguished road
Default

There is no log. (/usr/local/ispmgr/var/ispmgr.log) The last file is ispmgr.log.gz on 2011.08.07 3:12.
szluga is offline   Reply With Quote
Old 09-21-2011, 05:17 PM   #8
Junior Member
 
Join Date: Sep 2011
Posts: 18
szluga is on a distinguished road
Default

I find a log:
Quote:
Sep 21 16:12:17 [10108:30] INFO Request [77.45.x.x][root] 'func=wwwdomain.edit&plid=&operafake=735'
Sep 21 16:12:32 [10108:31] INFO Request [77.45.x.x][root] 'domain=test.test.pl&alias=www.test.test.pl&alias_ list=&docroot=auto&owner=test&ip=178.63.xx.xxx&ip6 =none&admin=biuro%40test.pl&charset=UTF-8&index=&index_list=&autosubdomain=asdnone&php=php cgi&cgi=on&ssiext=&sslport=443&func=wwwdomain.edit &elid=&sok=ok'
Sep 21 16:12:32 [10108:31] EXTINFO Load config '/etc/bind/test.pl'
Sep 21 16:12:32 [10108:31] EXTINFO Execute (/usr/sbin/named-checkzone test.pl /etc/bind/test.pl) return=0 exited
Sep 21 16:12:32 [10108:31] EXTINFO Load config '/etc/bind/test.pl'
Sep 21 16:12:32 [10108:31] EXTINFO Execute (/usr/sbin/named-checkzone test.pl /etc/bind/test.pl) return=0 exited
Sep 21 16:12:32 [10108:31] EXTINFO Execute (/bin/cp -Rp /usr/local/ispmgr/etc/www.skel /var/www/test/data/www/test.test.pl) return=0 exited
Sep 21 16:12:32 [10108:31] EXTINFO Execute (/etc/init.d/nginx reload) return=0 exited
Sep 21 16:12:32 [10108:31] EXTINFO Nginx `/etc/init.d/nginx reload` complete successful
Sep 21 16:12:32 [10108:31] EXTINFO Load config '/var/www/test/data/www/test.test.pl/webstat/.htaccess'
Sep 21 16:12:32 [10108:31] EXTINFO Load config '/var/www/test/data/etc/test.test.pl.stat.passwd'
Sep 21 16:12:32 [10108:31] WARNING You has record in httpd.conf for host 'test.test.pl' but haven't record in nginx.conf. Adding new record
Sep 21 16:12:32 [10108:31] EXTINFO Execute (/etc/init.d/nginx reload) return=0 exited
Sep 21 16:12:32 [10108:31] EXTINFO Nginx `/etc/init.d/nginx reload` complete successful
Sep 21 16:12:32 [10108:31] EXTINFO Execute (/etc/init.d/nginx reload) return=0 exited
Sep 21 16:12:32 [10108:31] EXTINFO Nginx `/etc/init.d/nginx reload` complete successful
Sep 21 16:12:32 [10108:31] EXTINFO Execute (/etc/init.d/nginx reload) return=0 exited
Sep 21 16:12:32 [10108:31] EXTINFO Nginx `/etc/init.d/nginx reload` complete successful
Sep 21 16:12:32 [10108:31] EXTINFO Execute (/usr/sbin/rndc reload test.pl) return=0 exited
szluga is offline   Reply With Quote
Old 09-22-2011, 05:38 PM   #9
ISPsystem team
 
Join Date: Oct 2009
Posts: 118
vian is on a distinguished road
Default

This's a not right part of the log file. Can you give an access to your server?
vian is offline   Reply With Quote
Old 09-22-2011, 08:45 PM   #10
Junior Member
 
Join Date: Sep 2011
Posts: 18
szluga is on a distinguished road
Default

Is access to the server is required? As for safety reasons I would not share the root account.
szluga is offline   Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:59 PM.