Current time: 11-16-2024, 03:25 PM Hello There, Guest! (LoginRegister)


Post Reply 
Problem with fast-cgi (ERROR 500)
Author Message
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #11
RE: Problem with fast-cgi (ERROR 500)
Ok, i fixed it and now it doesnt give me the Error 500 page by modifying fastcgi's path in the config below.

Code:
<VirtualHost 216.208.38.144:80>
    <IfModule suexec_module>
           SuexecUserGroup vu2055 vu2055
    </IfModule>

    ServerAdmin     root@lwp.ca
    DocumentRoot    /var/www/virtual/lwp.ca/htdocs
    
    ServerName      lwp.ca
    ServerAlias     www.lwp.ca lwp.ca *.lwp.ca
    
    ErrorLog        /var/log/apache2/users/lwp.ca-error.log
    TransferLog     /var/log/apache2/users/lwp.ca-access.log
    
    CustomLog       /var/log/apache2/lwp.ca-traf.log traff
    CustomLog       /var/log/apache2/lwp.ca-combined.log combined
    
    Alias /errors   /var/www/virtual/lwp.ca/errors/

    ErrorDocument 401 /errors/401/index.php
    ErrorDocument 403 /errors/403/index.php
    ErrorDocument 404 /errors/404/index.php
    ErrorDocument 500 /errors/500/index.php
    
    Alias /pma      /var/www/ispcp/gui/tools/pma/
    Alias /webmail  /var/www/ispcp/gui/tools/webmail/
    Alias /ftp      /var/www/ispcp/gui/tools/filemanager/

    <Directory /var/www/ispcp/gui>
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_fastcgi.c>
        ScriptAlias /php4/ /var/www/fcgi/lwp.ca/
        ScriptAlias /php5/ /var/www/fcgi/lwp.ca/
        <Directory "/var/www/fcgi/lwp.ca">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    <IfModule mod_php4.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
            php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>
    <IfModule mod_php5.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
            php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>
    php_admin_value open_basedir "/var/www/virtual/lwp.ca/htdocs/:/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
            
    <Directory /var/www/virtual/lwp.ca/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    
</VirtualHost>

However when i put two websites in the same config, no matter which site i go to, one always shows up, even if i enter in a different domain. How do you differentiate between domains?

Thanks,
Hope im not hijacking this thread!!
(This post was last modified: 11-25-2008 01:13 AM by jemmrich.)
11-25-2008 01:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #12
RE: Problem with fast-cgi (ERROR 500)
Why do you have ispcp gui`s folder in one domain config file? If you are sure about it modify SuexecUserGroup vu2055 vu2055 in SuexecUserGroup vu2000 vu2000 and set /var/www/fcgi/lwp.ca/ according new owner. But I do not undersatnd why you mess with this?
(This post was last modified: 11-25-2008 01:20 AM by sci2tech.)
11-25-2008 01:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #13
RE: Problem with fast-cgi (ERROR 500)
Well it seems my old vhcs config wasn't converted during the install process so i am trying to figure out what the correct config is.

Im starting small, just trying to get 2 websites running before i convert all the other domains over.

Is there a way to have ispcp create these apache configs for me?
11-25-2008 01:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #14
RE: Problem with fast-cgi (ERROR 500)
http://www.isp-control.net/documentation...ate_config
11-25-2008 01:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #15
RE: Problem with fast-cgi (ERROR 500)
When i try to recreate the configs i get these errors in the database for domain status:

get_tag() | ERROR: '# httpd Data BEGIN.
' ne '# httpd Data END.
', '# httpd Data BEGIN.
' or '# httpd Data END.
' missing in src !

and when i have ispcp in debug, set changes in database, the and run /var/www/ispcp/engine/ispcp-rqst-mngr


Code:
DEBUG: push_el() sub_name: mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: lock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which touch` /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: lock_system(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: processing 2, village.walton.on.ca, change.
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/var/www/ispcp/engine/ispcp-dmn-mngr 2 1>/var/log/ispcp/ispcp-dmn-mngr.stdout 2>/var/log/ispcp/ispcp-dmn-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: processing 3, saratogasawmill.ca, change.
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/var/www/ispcp/engine/ispcp-dmn-mngr 3 1>/var/log/ispcp/ispcp-dmn-mngr.stdout 2>/var/log/ispcp/ispcp-dmn-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: processing 4, waltontranscan.ca, change.
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/var/www/ispcp/engine/ispcp-dmn-mngr 4 1>/var/log/ispcp/ispcp-dmn-mngr.stdout 2>/var/log/ispcp/ispcp-dmn-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: processing 6, motocrosscanada.ca, change.
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/var/www/ispcp/engine/ispcp-dmn-mngr 6 1>/var/log/ispcp/ispcp-dmn-mngr.stdout 2>/var/log/ispcp/ispcp-dmn-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: processing 7, blythinn.ca, change.
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/var/www/ispcp/engine/ispcp-dmn-mngr 7 1>/var/log/ispcp/ispcp-dmn-mngr.stdout 2>/var/log/ispcp/ispcp-dmn-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: processing 8, huronstewardship.on.ca, change.
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: mngr_engine(), msg: processing 68, zb-d.com, change.
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/var/www/ispcp/engine/ispcp-dmn-mngr 68 1>/var/log/ispcp/ispcp-dmn-mngr.stdout 2>/var/log/ispcp/ispcp-dmn-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/var/www/ispcp/engine/ispcp-serv-mngr 45 58 2 0 1>/var/log/ispcp/ispcp-serv-mngr.stdout 2>/var/log/ispcp/ispcp-serv-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: unlock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which rm` -rf /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: unlock_system(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Ending...
11-25-2008 02:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #16
RE: Problem with fast-cgi (ERROR 500)
First you need to know witch version you have and download code for your version in (just an example) /path_to_rc . Using some snippets from nightly update (!!!must run this as root!!! modify PATH_TO_RC and ROOTSQLPASSWORD!!! If you do not use Debian also modify "Set for debian" section):
Code:
#!/bin/bash

#MODIFY THIS
PATH_TO_RC="/path_to_rc"
ROOTSQLPASSWORD="YOURROOTSQLPASSWORD";

#Set for debian
INST_PREF="/tmp/ispcp"
CONF_DIR="/etc/ispcp"
ROOT_DIR="/var/www/ispcp"
CMD_ISPCPD="/etc/init.d/ispcp_daemon"
CMD_HTTPD="/usr/sbin/apache2ctl"
CMD_NAMED="/etc/init.d/bind9"
CMD_MTA="/etc/init.d/postfix"

#CODE START HERE
cd $PATH_TO_RC

make clean
make install

${CMD_ISPCPD} stop

bla=`find ${INST_PREF}/etc/ispcp -type d -name 'parts'`;
for x in $bla;
do
    bla2=`echo ${x} | awk -F"${INST_PREF}|/parts" '{print $2}'`
    cp -R $x $bla2
done
cp ${INST_PREF}${CONF_DIR}/apache/httpd.conf ${CONF_DIR}/apache/httpd.conf
cp ${INST_PREF}${CONF_DIR}/apache/working/ispcp.conf ${CONF_DIR}/apache/working/ispcp.conf

cat <<EOF | mysql -uroot -p${ROOTSQLPASSWORD} ispcp
UPDATE mail_users SET status='toadd' where status='ok';
UPDATE domain SET domain_status = 'change' WHERE domain_status = 'ok';
UPDATE domain_aliasses SET alias_status = 'change' WHERE alias_status = 'ok';
UPDATE subdomain SET subdomain_status = 'change' WHERE subdomain_status = 'ok';
TRUNCATE TABLE login;
EOF
${ROOT_DIR}/engine/ispcp-rqst-mngr
${CMD_ISPCPD} start

cd $PATH_TO_RC
make clean

${CMD_HTTPD} restart
${CMD_NAMED} restart
${CMD_MTA} restart
11-25-2008 04:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #17
RE: Problem with fast-cgi (ERROR 500)
Hi, what path should /path_to_rc be? would this be /etc/ispcp/ or /var/www/iscp/

Also, my config file: /etc/apache2/sites-available/ispcp.conf is emtpy
and /etc/ispcp/apache/working/ispcp.conf is partial. with one domain ending mid sentence and incomplete.

However restarting apache doesnt seem to fire off a config error.

Here is the version info from /etc/ispcp/ispcp.conf
BuildDate = 20080806
Version = 1.0.0 RC6 OMEGA
11-25-2008 04:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #18
RE: Problem with fast-cgi (ERROR 500)
(11-25-2008 04:31 AM)jemmrich Wrote:  Hi, what path should /path_to_rc be?
Path where you have ispcp code (if you do not have, download and unpack from http://sourceforge.net/project/showfiles..._id=222121 ). As I say you must use same R(elease)C(andidate) as one you have installed.
(This post was last modified: 11-25-2008 04:38 AM by sci2tech.)
11-25-2008 04:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #19
RE: Problem with fast-cgi (ERROR 500)
Hi sci2tech, just want to say thanks for all your help so far!

I modified the code you gave me and ran it. Looks its fixed up some of the files however i am still showing the same domain status messages.

Code:
...
...
DEBUG: push_el() sub_name: unlock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which rm` -rf /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: unlock_system(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Ending...
Starting ispCP GUI-Backend communication Daemon: ispcp_daemon.
cd ./tools/daemon && make clean
make[1]: Entering directory `/root/ispcp-omega-1.0.0/tools/daemon'
rm -rf *~
rm -rf *.o
rm -rf ispcp_daemon
make[1]: Leaving directory `/root/ispcp-omega-1.0.0/tools/daemon'
rm -rf /tmp/ispcp
Stopping domain name service...: bind.
Starting domain name service...: bind.
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
walton:~/ispcp-omega-1.0.0#

This is the last few lines that were executed, looks like it was successful. I restarted apache as i didnt see it get restarted from the script.
11-25-2008 05:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #20
RE: Problem with fast-cgi (ERROR 500)
Try this code instead:
Code:
#!/bin/bash

#MODIFY THIS
PATH_TO_RC="/_backup/ispcp"
ROOTSQLPASSWORD="@Totalitarism1";

#Set for debian
INST_PREF="/tmp/ispcp"
CONF_DIR="/etc/ispcp"
APACHE_CONF_DIR="/etc/apache2"
ROOT_DIR="/var/www/ispcp"
CMD_ISPCPD="/etc/init.d/ispcp_daemon"

CMD_HTTPD="/usr/sbin/apache2ctl"
CMD_NAMED="/etc/init.d/bind9"
CMD_MTA="/etc/init.d/postfix"

#CODE START HERE
cd $PATH_TO_RC

make clean
make install

${CMD_ISPCPD} stop

bla=`find ${INST_PREF}/etc/ispcp -type d -name 'parts'`;
for x in $bla;
do
    bla2=`echo ${x} | awk -F"${INST_PREF}|/parts" '{print $2}'`
    cp -fvR $x $bla2
done
cp -fv ${INST_PREF}${CONF_DIR}/apache/httpd.conf ${APACHE_CONF_DIR}/sites-available/ispcp.conf
cp -fv ${INST_PREF}${CONF_DIR}/apache/httpd.conf ${CONF_DIR}/apache/httpd.conf
cp -fv ${INST_PREF}${CONF_DIR}/apache/working/ispcp.conf ${CONF_DIR}/apache/working/ispcp.conf

cat <<EOF | mysql -uroot -p${ROOTSQLPASSWORD} ispcp
UPDATE domain SET domain_status = 'change';
UPDATE domain_aliasses SET alias_status = 'change';
UPDATE subdomain SET subdomain_status = 'change';
TRUNCATE TABLE login;
EOF
${ROOT_DIR}/engine/ispcp-rqst-mngr
${CMD_ISPCPD} start

cd $PATH_TO_RC
make clean

${CMD_HTTPD} restart
${CMD_NAMED} restart
${CMD_MTA} restart
(This post was last modified: 11-25-2008 06:18 AM by sci2tech.)
11-25-2008 06:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)