some problem with mod_fcgid

xlinux

Verified User
Joined
May 4, 2012
Messages
72
afte i read some topic. i think should install mod_fcgid instead cgi

i find introducei think good

link here:

http://www.wingfoss.com/content/install-mod-fcgid-on-direct-admin

but i have some problem with it. i don't understand, anyone can help me

mkdir /fcgi

why it create it , after you create it . dir fcgi under dir root(/)

but in this tut. i don't see used this dir

in this line

SocketPath /var/lib/httpd/fcgid/sock

in this step

Edit /etc/httpd/conf/extra/httpd-suphp.conf by add these lines

i don't see create this dir : /var/lib/httpd/fcgid/sock in this tut.
so i have to create it or not create this dir ?

thanks
 
I did not find your line, but I see what the directory is used for:

Code:
#!/bin/sh
mkdir -p /fcgi/${username}/public_html
cp /usr/local/directadmin/scripts/custom/fcgid.sh /fcgi/${username}/public_html/fcgid.sh && chmod 0700 /fcgi/${username}/public_html/fcgid.sh
cp /usr/local/directadmin/scripts/custom/php.ini /fcgi/${username}/public_html/php.ini
perl -pi -w -e "s/PHPCFG_BASEDIR/\/home\/${username}\//g;" /fcgi/${username}/public_html/php.ini
chown -R ${username}:${username} /fcgi/${username}
echo "`date`  ${domain} created  " >> /var/log/directadmin/domain_create.log
 
I did not find your line, but I see what the directory is used for:

Code:
#!/bin/sh
mkdir -p /fcgi/${username}/public_html
cp /usr/local/directadmin/scripts/custom/fcgid.sh /fcgi/${username}/public_html/fcgid.sh && chmod 0700 /fcgi/${username}/public_html/fcgid.sh
cp /usr/local/directadmin/scripts/custom/php.ini /fcgi/${username}/public_html/php.ini
perl -pi -w -e "s/PHPCFG_BASEDIR/\/home\/${username}\//g;" /fcgi/${username}/public_html/php.ini
chown -R ${username}:${username} /fcgi/${username}
echo "`date`  ${domain} created  " >> /var/log/directadmin/domain_create.log
i can't understand your answer. what line you can't find ?. all link and command i show is clear. i ask about 2 comand. please read it again .thanks
 
I've already posted code from the guide, which shows what you need the directory for. What troubles you then?
I guess if you know what you want you can change it's location to whatever you need.

If you have no enough experience and knowledges, just follow the guide or hire somebody from us here.
 
I've already posted code from the guide, which shows what you need the directory for. What troubles you then?
I guess if you know what you want you can change it's location to whatever you need.


#!/bin/sh
mkdir -p /fcgi/${username}/public_html
cp /usr/local/directadmin/scripts/custom/fcgid.sh /fcgi/${username}/public_html/fcgid.sh && chmod 0700 /fcgi/${username}/public_html/fcgid.sh
cp /usr/local/directadmin/scripts/custom/php.ini /fcgi/${username}/public_html/php.ini
perl -pi -w -e "s/PHPCFG_BASEDIR/\/home\/${username}\//g;" /fcgi/${username}/public_html/php.ini
chown -R ${username}:${username} /fcgi/${username}
echo "`date` ${domain} created " >> /var/log/directadmin/domain_create.log
this is your guide for me ? i see it. i don't see anything relate this command mkdir /fcgi.
If you have no enough experience and knowledges, just follow the guide or hire somebody from us here.

i know experience and knowledges not good. i need help form all people. if i have any error. please talk for me.thanks
 
i am see this problem with /fcgid directory
but i still one problem please help me
in this line

SocketPath /var/lib/httpd/fcgid/sock
in this step

Edit /etc/httpd/conf/extra/httpd-suphp.conf by add these lines
i don't see create this dir : /var/lib/httpd/fcgid/sock in this tut.
so i have to create it or not create this dir ?
 
I think I understand what he means, by default the dir /var/lib/httpd/fcgid/ doesn't exits, and in the tutorial it doesn't say anywhere that dir should be created. And without the dir the socket cant't be created in it.

So: yes create the dir. Or configure another path.

Code:
mkdir -p /var/lib/httpd/fcgid/
 
Back
Top