cd /usr/local/directadmin/data/admin
echo -n “” > tickets.list
or the following for a User:
cd /usr/local/directadmin/data/users/username
echo -n “” > tickets.list
cd /usr/local/directadmin/data/admin
echo -n “” > tickets.list
or the following for a User:
cd /usr/local/directadmin/data/users/username
echo -n “” > tickets.list
In your php.ini file set file_uploads=Off. This will disable all file uploads through HTTP.
grep -h 'search term' multiple files
read -p ‘Script: ‘ S && C=$S.crypt H=’eval “$((dd if=$0 bs=1 skip=//|gpg -d)2>/dev/null)”; exit;’ && gpg -c<$S|cat >$C <(echo $H|sed s://:$(echo "$H"|wc -c):) - <(chmod +x $C)
yum –disableexcludes=all update
yum –disableexcludes=main install php
yum –disableexcludes=repoid install php httpd
all : Disable all excludes
main : Disable excludes defined in [main] in yum.conf
repoid : Disable excludes defined for given repo id
yum –exclude Command Line Option
0400 Allows the owner to read
0200 Allows the owner to write
0100 Allows the owner to execute files and search in the directory
0040 Allows group members to read
0020 Allows group members to write
0010 Allows group members to execute files and search in the directory
0004 Allows everyone or the world to read
0002 Allows everyone or the world to write
0001 Allows everyone or the world to execute files and search in the directory
1000 Sets the sticky bit
2000 Sets the setgid bit
4000 Sets the setuid bit
4 = r (Read)
2 = w (Write)
1 = x (eXecute)
To represent rwx triplet use 4+2+1=7
To represent rw- triplet use 4+2+0=6
To represent r– triplet use 4+0+0=4
To represent r-x triplet use 4+0+1=5
0 – Use set setuid, setgid, or sticky bit
7 – Full permission for owner (rwx = 4+2+1=7)
0 – Remove group permission (— = 0+0+0=0)
0 – Remove world permission (— = 0+0+0=0)
yum –disableexcludes=all install httpd-tools
AuthName “Htaccess”
AuthUserFile /var/www/html/.htpasswd
AuthType Basic
Satisfy Any
Order Deny,Allow
Deny from all
Allow from 192.168.2.100
Require valid-user
You are missing some munin tun time data in /var/lib/munin/
you need reinstall munin
munin-check
kill -9 `ps -aux | grep user_name | awk ‘{print $2}’`
gawk {‘print $1’} /var/log/httpd/access_log | sort -n | uniq -d -c | sort -n
vi .htaccess
RemoveHandler .html .htm
AddType application/x-httpd-php5 .html .htm
pure-pw mkdb
or
pure-pw passwd ftp_user -m
php –ini
vi /opt/atomic/atomic-php52/root/etc/php.ini
fix path:
session.save_path = “/var/lib/php/session”
to “/tmp”
vi ~/.bashrc
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi