php artisan make:model Todo -mcr
Category Archives: Hosting
ispconfig autoinstall
debian:
cd /tmp; wget –no-check-certificate -O installer.tgz “https://github.com/servisys/ispconfig_setup/tarball/master”; tar zxvf installer.tgz; cd *ispconfig*; bash install.sh
centos:
cd /tmp; wget –no-check-certificate -O installer.tgz “https://github.com/servisys/ispconfig_setup/tarball/master”; tar zxvf installer.tgz; cd *ispconfig*; bash install.sh
Configuration of pmadb… not OK
cd /to/phpmyadmin/dir
find . -name create_tables.sql
mysql < ./sql/create_tables.sql
CREATE USER 'pma'@'localhost' IDENTIFIED BY 'pmapass';
GRANT ALL PRIVILEGES ON `phpmyadmin`.* TO 'pma'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
/* User used to manipulate with storage */
$cfg['Servers'][$i]['controlhost'] = 'localhost';
// $cfg['Servers'][$i]['controlport'] = '';
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* Storage database and tables */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
ansible count virtualhosts
ansible Inventory_file -i inv -m shell -a "httpd -S 2>/dev/null| grep 'port 80' | wc -l" | grep -v SUC | awk '{ SUM += $1} END { print SUM }'
protect memcached
vi /etc/sysconfig/memcached
OPTIONS="-l 127.0.0.1"
service memcached restart
grep log and block
cat somelog.log |grep POST|awk '{print $1}'|sort |uniq -c|sort -rn|awk '{if ($1>1000) system("iptables -I INPUT -s "$2" -j DROP")}'
yum 28, ‘Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds’
You should try test network speed:
wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip
expat.h ubuntu compilation error
apt-get install libexpat1-dev
exim remove huge queue
exim -bp|grep “<"|awk {'print $3'}|xargs exim -Mrm
ispconfig not working
AH00106: piped log program ‘ /usr/local/ispconfig/server/scripts/vlogger -s access.log -t “%Y%m%d-access.log” /var/log/ispconfig/httpd’ failed unexpectedly
Can’t locate Date/Format.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/local/ispconfig/server/scripts/vlogger line 148.
BEGIN failed–compilation aborted at /usr/local/ispconfig/server/scripts/vlogger line 148.
AH00106: piped log program ‘ /usr/local/ispconfig/server/scripts/vlogger -s access.log -t “%Y%m%d-access.log” /var/log/ispconfig/httpd’ failed unexpectedly
Can’t locate Date/Format.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/local/ispconfig/server/scripts/vlogger line 148.
BEGIN failed–compilation aborted at /usr/local/ispconfig/server/scripts/vlogger line 148.
AH00106: piped log program ‘ /usr/local/ispconfig/server/scripts/vlogger -s access.log -t “%Y%m%d-access.log” /var/log/ispconfig/httpd’ failed unexpectedly
Can’t locate Date/Format.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/local/ispconfig/server/scripts/vlogger line 148.
BEGIN failed–compilation aborted at /usr/local/ispconfig/server/scripts/vlogger line 148.
AH00106: piped log program ‘ /usr/local/ispconfig/server/scripts/vlogger -s access.log -t “%Y%m%d-access.log” /var/log/ispconfig/httpd’ failed unexpectedly
yum install perl-TimeDate
Port was replaced with Listen in Apache 2.0
cd /usr/local/directadmin
killall -9 directadmin
./directadmin d
cd custombuild
./build rewrite_confs
httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/mod_ruid2.so into server
./build mod_ruid2
Brute-Force Attack detected disable notifications
echo “hide_brute_force_notifications=1” >> /usr/local/directadmin/conf/directadmin.conf
cPanel Server Error: UID SORT: Internal error occurred. Refer to server log for more information
ls -la /home/user/mail/domain.com/info/cur/
chow -R user.user /home/user/mail/domain.com/info/cur/
nginx cors policy woff
location ~* \.(eot|otf|ttf|woff|woff2)$ {
add_header Access-Control-Allow-Origin *;
}