Probably did the person who previously managed server. Is way to restore restore / generate new, clean templates?
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
[proxy_fcgi:error] [pid 32125:tid 47739653056256] [client 89.69.222.214:40024] AH01071: Got error 'Primary script unknown\n'
root@server:/usr/local/directadmin/custombuild# ./build suphp
File already exists: suphp-0.7.1.tar.gz
MD5 Checksum on suphp-0.7.1.tar.gz passed.
File already exists: patches/suphp_calling_user.patch
MD5 Checksum on patches/suphp_calling_user.patch passed.
File already exists: patches/suphp_script_name.patch
MD5 Checksum on patches/suphp_script_name.patch passed.
File already exists: patches/suphp_attachment.patch
MD5 Checksum on patches/suphp_attachment.patch passed.
Found /usr/local/directadmin/custombuild/suphp-0.7.1.tar.gz
Extracting ...
Done.
./build: line 3992: cd: suphp-0.7.1: No such file or directory
./build: line 3998: ../patches/suphp_calling_user.patch: No such file or directory
./build: line 3999: ../patches/suphp_script_name.patch: No such file or directory
./build: line 4001: ../patches/suphp_attachment.patch: No such file or directory
Can't do inplace edit: ./configure is not a regular file.
Configuring suphp-0.7.1...
/usr/local/directadmin/custombuild/configure/suphp/configure.suphp: line 3: ./configure: is a directory
*** There was an error while trying to configure suPHP. Check the configure/suphp/configure.suphp file
./build: line 3992: cd: suphp-0.7.1: No such file or directory
It's not patch related, it just doesn't extract suphp-0.7.1 directory from the tarball.
Problems:
Although it calls pam_open_session, I haven't found way to call
pam_close_session.
Though I've met the patch, I haven't tried it myself yet. I should had inform you about that.
I've checked, and I see the patch is created for suphp-0.6.1.
How did you apply the patch?
root@server:/usr/local/directadmin/custombuild# cd suphp-0.7.1/
root@server:/usr/local/directadmin/custombuild/suphp-0.7.1# wget http://mkwm.zielonki.info/suphp_patch.diff -O-|patch -p1
patching file src/API.hpp
patching file src/API_Linux.cpp
patching file src/API_Linux.hpp
patching file src/Application.cpp
Hunk #1 succeeded at 379 (offset -5 lines).
patching file src/Configuration.cpp
patching file src/Configuration.hpp
patching file src/Makefile.in
auth sufficient pam_permit.so
session required pam_limits.so conf=/usr/local/suphp/etc/security/limits.conf
session required pam_permit.so
* soft nproc 2
* hard nproc 2
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
RLimitNPROC 5
</FilesMatch>
Well, maybe I am doing anything wrong... but the patch does not seem to be working for me. I need to check it out.
But this (not related to the patch) seems to be working
Code:<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$"> RLimitNPROC 5 </FilesMatch>
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
RLimitNPROC 5
</FilesMatch>
<?php
for ($i=0; $i<100; $i)
{
print "$i<br>\n";
sleep(100);
}
?>
This applies to processes forked off from Apache children servicing requests, not the Apache children themselves. This includes CGI scripts and SSI exec commands, but not any processes forked off from the Apache parent such as piped logs.
Process limits control the number of processes per user.
Note
If CGI processes are not running under user ids other than the web server user id, this directive will limit the number of processes that the server itself can create. Evidence of this situation will be indicated by cannot fork messages in the error_log.