mod_ruid2 kullanarak suphp cgi modundaki kasilmanin onune gecmek arzusundayim.

yum -y install libcap-devel
wget http://downloads.sourceforge.net/project/mod-ruid/mod_ruid2/mod_ruid2-0.9.4.tar.bz2?r=&ts=1302083730&use_mirror=mesh
tar xjfv mod_ruid2-0.9.4.tar.bz2
cd mod_ruid2-0.9.4
apxs -a -i -l cap -c mod_ruid2.c

Now, if you didn't get any errors mod_ruid2 should be installed and added to the '/etc/httpd/conf/httpd.conf'.
Lets confirm mod_ruid2 is added
Quote:
grep 'mod_ruid2' /etc/httpd/conf/httpd.conf
If you get any response like below its installed
Quote:
LoadModule ruid2_module /usr/lib/apache/mod_ruid2.so
Now we need to modify the DA httpd.conf templates a little bit to enable mod_ruid2 for the users

Now copy the template files to custom
Quote:
cd /usr/local/directadmin/data/templates/
cp virtual_host2* custom/
chown -R diradmin:diradmin custom/
Now you have copied the original templates to the 'custom' directory, so they won't be overwritten.

Now follow the steps below for each virtual_host2 file you've copied
Quote:
nano -w virtual_host2.conf
## replace line: SuexecUserGroup |USER| |GROUP|
## replace with: #SuexecUserGroup |USER| |GROUP|
## Add the lines below under the just replaced line
RMode config
RUidGid |USER| |GROUP|
RGroups apache
Save the files and lets rewrite the HTTPd config files
Quote:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
If you want you can start the rewrite of the HTTPd config files manually, just paste the line below and wait when its done
Quote:
/usr/local/directadmin/dataskq d800
After the rewrite is complete you can restart HTTPd with the command below
Quote:
/etc/init.d/httpd restart
Now mod_ruid2 should be installed and you don't need to chmod anymore like 'chmod 666 config.php' or 'chmod 777 uploads'.

To be sure the webmail clients etc still works we need to change the owner permissions
Quote:
chown -R webapps:webapps /var/www/html

1. get the file with this command:

wget http://download.utorrent.com/linux/utorrent-server-3.0-25053.tar.gz

(link might be different)
2. make sure you got it
ls
3. if you got it, extract it
tar zxvf utorrent-server-3.0-21701.tar.gz
(as i said name might be different)
4. go into the folder created
ls
cd utorrent-server-3.0-21701
5. run the program
./utserver
6. Should read: Open your web browser and enter http://localhost:8080/gui into the address bar
7. Enter admin for the user name and leave paswword empty, and the server should start.

Customer may be a king as the company serves him, but he is certainly not a king in the meaning that he can do what he please, including insulting the service provider.

You need two for the tango, and the same way the provider wants your money, you want his services. It’s a fair exchange of money for services, and both parties are on the same level. Just because you are on the money side on the barter doesn’t give yiu any extra privileges.

Example of the dwalters is a valid one – just because you are paying money for food doesn’t give you the right to insult the waitress, or even the restaurant owner. Do that and you will be asked out, and chances are never served again.

Steps:

1.

1
2
[server1.domain.com:/root]# cat /etc/exim.conf | grep ^system_filter
system_filter = /etc/system_filter.exim

then

2.

1
[server1.domain.com:/root]# nano system_filter = /etc/system_filter.exim

and find the line with following content

1
2
3
if not first_delivery
then finish
endif

3. After the above line add following

1
2
3
4
if $header_from: contains "@domain.com"
then
unseen deliver "monitor@domain.com"
endif

4. Restart exim service

1
[server1.domain.com:/root]# service exim restart

The above filter rule sends a copy of every message from domain.com to monitor@domain.com [unless the message already has that recipient – Exim never does duplicate deliveries].

 

———————————————————

USTTEKI CALISIYORDU ANCAK GELEN TUM MAILLERINDE HARICI BIR MAILE GITMESI GEREKIYORDU

BU DURUMDA USTTEKINI SALLADIK YERINE BUNU KOYDUK

GAYET ACIK KONU

 


nano /etc/system_filter.exim

#Incoming/Outgoing Email Archiving
if ("$h_to:, $h_cc:, $h_bcc" contains "YOURDOMAIN.com")
then
unseen deliver "incoming@YOURDOMAIN.com"
endif

if $sender_address_domain is YOURDOMAIN.com
then
unseen deliver "outgoing@YOURDOMAIN.com"
endif

1- https://launchpad.net/mysql-tuning-primer
2- https://github.com/rackerhacker/MySQLTuner-perl

directadmin httpd hata verdi: the first has precedence, perhaps you need a NameVirtualHost directive

nedeni:

/etc/httpd/conf/ips.conf dosyasi ucmus

.lock dosyasi varsa ayni dizinde sil

dosyayi yeniden olusturmak icin

echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue

/usr/local/directadmin/dataskq d

nosuid,noexec to tmp
sym link from /var/tmp to /tmp
php_cli with mod_ruid2 (check the forum there is an easy how-to)
suhosin patch for php (always in this forum, search update.script)
nobodycheck (same in update.script)
clamav (as before)
proftpd with clamav mod (same update.script)

And kiss or csf firewall (i use csf but you can choose what you want/prefer).

https://ssltest12.bbtest.net/

Root: GeoTrust Global CA

—–BEGIN CERTIFICATE—–
MIIDVDCCAjygAwIBAgIDAjRWMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVT
MRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9i
YWwgQ0EwHhcNMDIwNTIxMDQwMDAwWhcNMjIwNTIxMDQwMDAwWjBCMQswCQYDVQQG
EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEbMBkGA1UEAxMSR2VvVHJ1c3Qg
R2xvYmFsIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2swYYzD9
9BcjGlZ+W988bDjkcbd4kdS8odhM+KhDtgPpTSEHCIjaWC9mOSm9BXiLnTjoBbdq
fnGk5sRgprDvgOSJKA+eJdbtg/OtppHHmMlCGDUUna2YRpIuT8rxh0PBFpVXLVDv
iS2Aelet8u5fa9IAjbkU+BQVNdnARqN7csiRv8lVK83Qlz6cJmTM386DGXHKTubU
1XupGc1V3sjs0l44U+VcT4wt/lAjNvxm5suOpDkZALeVAjmRCw7+OC7RHQWa9k0+
bw8HHa8sHo9gOeL6NlMTOdReJivbPagUvTLrGAMoUgRx5aszPeE4uwc2hGKceeoW
MPRfwCvocWvk+QIDAQABo1MwUTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTA
ephojYn7qwVkDBF9qn1luMrMTjAfBgNVHSMEGDAWgBTAephojYn7qwVkDBF9qn1l
uMrMTjANBgkqhkiG9w0BAQUFAAOCAQEANeMpauUvXVSOKVCUn5kaFOSPeCpilKIn
Z57QzxpeR+nBsqTP3UEaBU6bS+5Kb1VSsyShNw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