ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=11)
-   -   FastCGI & CGI - Not working (http://forum.ispsystem.com//showthread.php?t=1523)

szluga 09-20-2011 01:51 AM

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?

vian 09-20-2011 08:49 AM

Please describe the problem in detail.

szluga 09-20-2011 10:14 AM

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

vian 09-21-2011 04:53 AM

Well, you problem is that you cannot activate CGI or FastCGI for a domain in ISPmanager. Am I correct?

szluga 09-21-2011 11:12 AM

Quote:

Originally Posted by vian (Post 5506)
Well, you problem is that you cannot activate CGI or FastCGI for a domain in ISPmanager. Am I correct?

Yes, that is my problem.

vian 09-21-2011 11:40 AM

please show a part of ispmgr.log when you try to create a domain.

szluga 09-21-2011 02:41 PM

There is no log. (/usr/local/ispmgr/var/ispmgr.log) The last file is ispmgr.log.gz on 2011.08.07 3:12.

szluga 09-21-2011 05:17 PM

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

vian 09-22-2011 05:38 PM

This's a not right part of the log file. Can you give an access to your server?

szluga 09-22-2011 08:45 PM

Is access to the server is required? As for safety reasons I would not share the root account.


All times are GMT +2. The time now is 01:28 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.