Re: newbie mess
matt [EMAIL PROTECTED] writes: but that is half-ass. from what i read i have to compile suexec appropiately. but i am not sure about that either. man suexec: /usr/man/man8/suexec.8 /usr/local/src/apache_perl/apache_1.3.14/src/support/suexec.8 Read the INSTALL options for what to do on build... Cheers, Dave -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Apache, mod_perl, MySQL, Sybase hired gun for, well, hire -
newbie mess
--- i am sorry if this is not the appropiate list -- i, apparently foolishly, ran httpd (on linux 7.0) as User alias Group qmail. this didn't work like i wanted it to, and when i went back to running as mrogers(i rigged it this way to try and get ezmlm-web.cgi to work), i noticed a problem when i: (the first thing i am showing you is how it used to look before i screwed it up) [root@panda conf]# ps auxww | grep httpd root 838 0.1 0.7 3328 1516 ?S12:52 0:00 httpd mrogers839 0.0 0.8 3528 1620 ?S12:52 0:00 httpd mrogers840 0.0 0.8 3528 1620 ?S12:52 0:00 httpd mrogers841 0.0 0.8 3528 1620 ?S12:52 0:00 httpd mrogers842 0.0 0.8 3528 1620 ?S12:52 0:00 httpd mrogers843 0.0 0.8 3528 1620 ?S12:52 0:00 httpd mrogers844 0.0 0.8 3528 1620 ?S12:52 0:00 httpd mrogers845 0.0 0.8 3528 1620 ?S12:52 0:00 httpd mrogers846 0.0 0.8 3528 1620 ?S12:52 0:00 httpd root 848 0.0 0.3 1516 580 pts/0R12:52 0:00 grep httpd [root@panda conf]# NOW , when i do the ps i get: mrogers697 0.0 2.3 6728 4464 ?S18:43 0:00 /usr/sbin/httpd - D HAVE_PERL -D HAVE_PROXY -D HAVE_SSL -D HAVE_ACCESS -D HAVE_ACTIONS -D HAVE_ALI AS -D HAVE_ASIS -D HAVE_AUTH -D HAVE_AUTH_ANON -D HAVE_AUTH_DB -D HAVE_AUTOINDEX -D HAVE_BANDWIDTH -D HAVE_CERN_META -D HAVE_CGI -D HAVE_DEFINE -D HAVE_DIGEST - D HAVE_DIR -D HAVE_ENV -D HAVE_EXAMPLE -D HAVE_EXPIRES -D HAVE_HEADERS -D HAVE_I MAP -D HAVE_INCLUDE -D HAVE_INFO -D HAVE_LOG_AGENT -D HAVE_LOG_CONFIG -D HAVE_LO G_REFERER -D HAVE_MIME -D HAVE_MIME_MAGIC -D HAVE_MMAP_STATIC -D HAVE_NEGOTIATIO N -D HAVE_PUT -D HAVE_REWRITE -D HAVE_SETENVIF -D HAVE_SPELING -D HAVE_STATUS -D HAVE_THROTTLE -D HAVE_UNIQUE_ID -D HAVE_USERDIR -D HAVE_USERTRACK -D HAVE_VHOST _ALIAS mrogers698 0.0 2.3 6728 4464 ?S18:43 0:00 /usr/sbin/httpd - D HAVE_PERL -D HAVE_PROXY -D HAVE_SSL -D HAVE_ACCESS -D HAVE_ACTIONS -D HAVE_ALI AS -D HAVE_ASIS -D HAVE_AUTH -D HAVE_AUTH_ANON -D HAVE_AUTH_DB -D HAVE_AUTOINDEX -D HAVE_BANDWIDTH -D HAVE_CERN_META -D HAVE_CGI -D HAVE_DEFINE -D HAVE_DIGEST - D HAVE_DIR -D HAVE_ENV -D HAVE_EXAMPLE -D HAVE_EXPIRES -D HAVE_HEADERS -D HAVE_I MAP -D HAVE_INCLUDE -D HAVE_INFO -D HAVE_LOG_AGENT -D HAVE_LOG_CONFIG -D HAVE_LO G_REFERER -D HAVE_MIME -D HAVE_MIME_MAGIC -D HAVE_MMAP_STATIC -D HAVE_NEGOTIATIO N -D HAVE_PUT -D HAVE_REWRITE -D HAVE_SETENVIF -D HAVE_SPELING -D HAVE_STATUS -D HAVE_THROTTLE -D HAVE_UNIQUE_ID -D HAVE_USERDIR -D HAVE_USERTRACK -D HAVE_VHOST _ALIAS mrogers826 0.0 0.3 1520 604 pts/0S18:56 0:00 grep httpd [mrogers@panda httpd]$ whoa! what is going on? how can restore this? any ideas would be appreciated!!! thanks, matt
Re: newbie mess
Hi there, On Fri, 16 Feb 2001, matt wrote: --- i am sorry if this is not the appropiate list -- Are you running mod_perl? How did you start Apache? 73, Ged.
Re: newbie mess
Are you running mod_perl? hehheh... i think so [mrogers@panda i386-linux]$ ls Apache SHA.pm mod_perl_hooks.pm Apache.pm auto mod_perl_hooks.pm.PL Bundle cgi_to_mod_perl.pod mod_perl_method_handlers.pod Digest mod_perl.pm mod_perl_traps.pod Digest.pm mod_perl.pod mod_perl_tuning.pod MD5.pm mod_perl_cvs.pod [mrogers@panda i386-linux]$ pwd /usr/lib/perl5/site_perl/5.6.0/i386-linux from /etc/httpd/conf/httpd.conf : # If the perl module is installed, this will be enabled. IfModule mod_perl.c Alias /perl/ /var/www/perl/ Location /perl SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI /Location /IfModule IfDefine HAVE_PERL AddModule mod_perl.c /IfDefine How did you start Apache? well... i have httpd on automatic running in linuxconf thoughts? thanks for the quick response... matt 73, Ged.
Re: newbie mess
Well if you kill all the existing Apache processes (find the parent pid using 'ps axfw | grep httpd' and 'kill -15 ' where is the parent process id) then repeat the command I gave without the '-t' switch your Apache should run OK. ok [root@panda sbin]# ps axfw | grep httpd 901 pts/0S 0:00 \_ grep httpd 676 ?S 0:00 /usr/sbin/httpd -D HAVE_PERL -D HAVE_PROXY -D HAVE_SS [root@panda sbin]# kill -15 676 [root@panda sbin]# ./httpd -t -f/etc/httpd/conf/httpd.conf Syntax OK [root@panda sbin]# [root@panda sbin]# ps auxww | grep httpd root 910 0.1 0.7 3328 1516 ?S17:06 0:00 httpd apache 911 0.0 0.8 3528 1620 ?S17:06 0:00 httpd apache 912 0.0 0.8 3528 1620 ?S17:06 0:00 httpd apache 913 0.0 0.8 3528 1620 ?S17:06 0:00 httpd apache 914 0.0 0.8 3528 1620 ?S17:06 0:00 httpd apache 915 0.0 0.8 3528 1620 ?S17:06 0:00 httpd apache 916 0.0 0.8 3528 1620 ?S17:06 0:00 httpd apache 917 0.0 0.8 3528 1620 ?S17:06 0:00 httpd apache 918 0.0 0.8 3528 1620 ?S17:06 0:00 httpd root 922 0.0 0.3 1516 580 pts/0R17:06 0:00 grep httpd [root@panda sbin]# whoa! Ged thanks so much! wow. You looked at the Guide lately? pardon my ignorancewhat? a little background: i am a html/dhtml/javascript/flash guy who had a little linux experience. my boss found this out and told me to setup two servers with linux 7.0 and get qmail and ezmlm and going. and then get ezmlm-web.cgi going. i got lucky with the first two, but the last one opened up a whole nasty suid issue. apparently linux doesn't like suid scripts by default without some major tweaking. so i have been tweaking the hell out of httpd to try and get get a workaround. the only way i got it to work was by having httpd run as the same user as the cgi file. but that is half-ass. from what i read i have to compile suexec appropiately. but i am not sure about that either. thanks again, matt 73, Ged.