-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRushi.txt
3133 lines (2094 loc) · 83.4 KB
/
Rushi.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Incremental rsync backup/sync over SSH without password guide centos and debian:
=========
http://blog.solidshellsecurity.com/2013/05/11/incremental-rsync-backupsync-ssh-password-guide-centos-debian/#
=========
www.iwebtool.com/speed_test
www.linkvendor.com › Website Speed Test
ini_set('memory_limit','512M');-----in the config.php for joomla error
+===============================================+
du -sch * | sort -n----for auditing of account
+===================+
siteground.com
DKMIcore.org
+===========+
php.ini
==========================
safe_mode = Off
disable_functions =
memory_limit = 128M
upload_max_filesize = 20M
post_max_size = 20M
session.gc_maxlifetime = 1440 (Set a higher value for session.gc_maxlifetime in your php.ini file.)
max_execution_time = 300
session.save_path = /home/alveston/public_html/tmp
+===============================+
To block country IP
======================
go to configure firewall >> seach for cc_deny and put country code there and update
http://webstore.lexi.com/s.nl/ctype.KB/it.I/id.378/KB.3234/.f
+===================+
for mod_security error 406 or can' edit any thing in website .htaccess
======================================================
+===========+
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
+===========+
tail -f error_logs
To check IP blacklisated on Direct admin go to following:
+====================+
cd /usr/local/directadmin/data/admin/
vi ip_blacklist
+=====================+
How to make Wordpress a Multisite CMS-refer following links
=================================
http://www.youtube.com/watch?v=3gu3MPCynfw
http://codex.wordpress.org/Create_A_Network
===================================
corvette tuner wp clone install
==========================
https://www.youtube.com/watch?v=5c5dUiApETE
QUESTION
———
We own/lease a Linux server from anySiteHosting.com and would like to enable the feature to allow
users to visit their site via a temp url like http://cp.OURDOMAIN/~CPANELUSERNAME
=====================================================
ANSWER:
———
Access the following menu path: WHM: Main >> Security Center >> Apache mod_userdir Tweak
Tick the check-box labeled Enable mod_userdir Protection
Untick all check-boxes under the column heading Exclude Protection
Locate the virtual host that you wish to use from the list under column heading Host.
Input the desired cPanel account username, or usernames as a space-separated list, under the column
heading Additional Users.
Click Save, at the bottom of the page, to submit and finalize changes.
+===============================================+
How to install RVsitebuilder with cpanel on linux server?
===========================================
=> SSH into the server :
cd /usr/local/cpanel/whostmgr/docroot/cgi/
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/
rm -f rvsitebuilderinstaller.tar
wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar
tar -xvf rvsitebuilderinstaller.tar
chmod 755 addon_rvsitebuilder.cgi
rm -f rvsitebuilderinstaller.tar
=========
Note : If CGI directory is not present you can create it.
Then access login into WHM >>Plugins>>RVSiteBuilder Installer >>click next>>enter license key and
proceed further.
***Put this code in .htaccess to redirect your any page to 404 page
========================================
Options -Indexes
ErrorDocument 404 /404.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#RewriteCond %{REMOTE_ADDR} !^68\.112\.67\.230$
RewriteRule ^wp\-admin\/$ "http\:\/\/www\.freeguardian\.com\/404\.php" [R=301,L]
RewriteRule ^wp\-login\.php$ "http\:\/\/www\.freeguardian\.com\/404\.php" [R=301,L]
RewriteRule ^wp\-admin\/$ - [L,R=404]
RewriteRule ^(.*)wp-(.*)$ - [L,R=404]
RewriteRule ^(.*)feed(.*)$ - [L,R=404]
RewriteRule ^(.*)feed\/(.*)$ - [L,R=404]
RewriteRule ^(.*)[0-9]{4}\/[0-9]{2}(.*)$ - [L,R=404]
RewriteRule ^(.*)\.htaccess(.*)$ - [L,R=404]
RewriteRule ^(.*)xmlrpc\.php(.*)$ - [L,R=404]
RewriteRule ^(.*)style\.css(.*)$ - [L,R=404]
RewriteRule ^(.*)license\.txt(.*)$ - [L,R=404]
RewriteRule ^(.*)readme\.html(.*)$ - [L,R=404]
</IfModule>
RewriteCond %{HTTP_HOST} ^freeguardian\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.freeguardian\.com$
+==========================================+
make 404.php in root directory( public_html)
Imagick
==============
http://www.webcs.com/webcsdocs/docs5/imagick.html
Go to WHM -> Software -> Module Installers -> PHP Pecl (manage). On the box below “Install a PHP Pecl”
enter “imagick” and click “Install Now” button – that’s all. Restart Apache.
==============
+==================+
cat > phpinfo.php
<?
phpinfo();
?>
chown username:username phpinfo.php
grep username /etc/userdomains --- to check domain name of user
cpmove-username.tar
+==================+
What is a 301 redirect?
==================
A 301 redirect is the preferred method to preserve your current search engine rankings when
redirecting web pages or a web site. The code "301" means that the page has "moved permanently".
How to set up the 301 Redirect?
To create a .htaccess file: open notepad, name and save the file as .htaccess. (be careful not to
save the file as txt)
If you already have a .htaccess file on your server, download it to your desktop for editing.
Copy this code into your .htaccess file:
redirect 301 old.htm http://www.domain.tld/new.htm
If the .htaccess file already has lines of code in it, skip a line first
Save the .htaccess file
Upload this file to the root folder of your server.
To test it, simply try to load the old site or page in your browser. You should be redirected
immediately
outlook settings
+========================+
Incoming Mail Server: mail.domainname.com
Outgoing Mail Server: mail.domainname.com
Incoming Port: 110 (pop) 143 (imap)
Outgoing Port: 587
+=========================+
Rvsitebuilder tutorials
=========================
http://support.rvsitebuilder.com/index.php?x=&mod_id=2&root=2
http://support.rvsitebuilder.com/index.php?x=&mod_id=2&root=89
=========================
For this error:
Fatal error: Class 'PDO' not found in /home/alohakea/public_html/includes/database/database.inc on
line 184
put following in php.ini file:
+=================+
extension="pdo.so"
extension="pdo_mysql.so"
+===================+
If php files are getting downloaded instead of executing then put following code in .htaccess file
PHP files are downloading instead of executing
+==================+
AddHandler application/x-httpd-php5 .php
Apache handler
+==================+
Default apache handler
============
DirectoryIndex index.php
===============
To get regular html pages to handle php code, you need to add this line to your htaccess file.
====================
AddHandler application/x-httpd-php5 .html .htm
=====================
To check default handler set on the server
=====================
grep DirectoryIndex /etc/httpd/conf/httpd.conf
=====================
Default wordpress code in .htaccess
============================
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
+=========================+
=================
cd /backup/mysqlbackup/daily1
ls -l Username_database name.sql
mysql Username_database name < Username_database name.sql (less than sign is for importing the
database)
mysqldump paragon_wrdp1 > paragon_wrdp1.sql
=================
To install different components on the server
=====================
http://www.crucialp.com/resources/tutorials/server-administration/how-to-install-zend-optimizer-
optimiser-cpanel-whm.php
=====================
cloudlinux documentation
==============
Read this 4 times
http://docs.cloudlinux.com/index.html?cagefs.html
==============
To correct the files/directory permissions inside public_html directory
======================
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
======================
To install Zend Optimizer:
============================
1. Login to your server via SSH
2. Run: /scripts/installzendopt
==============================
http://rbls.org
Set www redirection in htaccess
=========================
RewriteEngine On
RewriteCond %{HTTP_HOST} ^access-alpinespace.eu
RewriteRule (.*) http://www.access-alpinespace.eu/$1 [R=301,L]
=====================================
To change the site URL from wp-admin backend
==============
For wp sites >> go wp-admin >> setting >> general >> site URL
==============
.htaccess code to give authorisation particular directory, create .htaccess file in that directory
with below code.
============
AuthType Basic
AuthName "admin"
AuthUserFile "/home/username/.htpasswds/public_html/admin/passwd"
require valid-user
===========
For Mambo error: Fatal error: Call to undefined method mosMenu::mosDBTable() in
/home/username/public_html/includes/core.classes.php
or
Fatal error: Call to undefined method mosSession::mosDBTable() in
/home/username/public_html/includes/core.classes.php on line
Rerfer this post ( https://www.greycell.co.za/support/index.php?
_m=knowledgebase&_a=viewarticle&kbarticleid=128)
+============================+
To correct this
in the file /public_html/includes/database.php
Find the class:
class mosDBTable extends mosDBAbstractRow {
After the line
var $_db = null;
Put in the following:
function mosDBTable($table='', $keyname='id', $db='') {
$this->mosDBAbstractRow ($table, $keyname, $db);
}
And your problem will be solved.
+===========================+
To apply changes recursively of php.ini fil, put below code in .htaccess file
==========================
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/cozcomul/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
===========================
SPF record format:
===========================================================
http://www.royhochstenbach.com/projects/spfgenerator/
http://www.openspf.org/SPF_Record_Syntax
=============
Domain name. IN TXT "v=spf1 a mx ptr ~all"
(v=spf1 +a +mx +ip4:209.59.146.231 ?all)
e.g. v=spf1 a mx include:emailsrvr.com ~all
=============
How to disable magic_quotes_gpc in php.ini
===================
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
extension=pdo.so
extension=pdo_mysql.so
===================
or in .htaccess
=============
php_flag magic_quotes_gpc Off
============
http://postimage.org
===========
Running `/usr/local/cpanel/scripts/updatenow --upcp --
log=/var/cpanel/updatelogs/update.1364314802.log` failed, exited with code 65280
===========
============================================
How to Protect Your WordPress wp-config.php File and Your .htaccess File
============================================
1) To protect wp-config.php file, put below code in .htaccess file providing both this files are
placed in the same directory.
<Files wp-config.php>
order allow,deny
deny from all
</Files>
2)To protect .htaccess file, put below code in .htaccess file:
<Files .htaccess>
order allow,deny
deny from all
</Files>
==========================================
Display the PHP errors when developing and hide them when live
=================
php_flag display_errors off---------.htaccess
=================
To hide mysql error warning from the site, add below lines in php.ini
=============
log_errors = On
display_errors = Off
=============
To apply all changes made in php.ini file to all public_html directory, add below code in the
.htaccess file.
==================================
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/username/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
==================================
How to reset admincp password in Vbulletin
================
http://blog.webhostingdiscussion.net/scripts/how-to-reset-vbulletin-administrator-password.htm
==============
=================
zip -r newfilename.zip /home/username/public_html-----------entire public_html will be get zipped at
pwd
zip -r public_html public_html/
tail -f /usr/local/apache/logs/error_log | grep IP
exigrep email id /var/log/exim_mainlogs
tail -f email id /var/log/exim_mainlogs | grep (anyword from the email id)
ps -aufx | grep username --------------to check the processes of the particular user on the server
ssh [email protected] -----to connect to another server from one server.
( rsync -avz --rsh='ssh -p22' [email protected]:/backup/cpbackup/daily/* . ) ---this is wil copy
entire backup files from the daily directory to destination folder which we have created on the
receiver server.
http://www.michianawireless.com/mail-errors.htm ----to check all the mail issues.
cd /etc/hosts.deny --list of all deny hosts
IMP commands to regarding emails
============
(http://www.simplehelp.net/2008/12/01/how-to-send-email-from-the-linux-command-line/)
============
To restore multiple backups
=================
http://forums.cpanel.net/f5/restore-backup-via-ssh-multiple-accounts-135029.html
http://forums.cpanel.net/f5/how-can-i-restore-multiple-accounts-cpanel-backups-195351.html
http://hiox.org/444-backup-and.php
https://forums.hostdime.com/showthread.php?5599-Restoring-Cpanel-Backups-via-SSH
http://www.webhostingtalk.com/showthread.php?t=897649
=================
Dig command
===========
http://library.linode.com/linux-tools/common-commands/dig
===========
Userful commands
==============
http://centoshelp.org/resources/commands/linux-system-commands/
==============
CSS file templates/template_name/themes/theme_name/template.css
==================
Request exceeded the limit of 10 internal redirects Error
==================================
in .htaccess file insert below codeand insert the below wordpress default code :-
—————————-
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
================================
Also, refer this URL: http://www.bestdesigns.co.in/blog/request-exceeded-the-limit-of-10-internal-
redirects
===============
+===============+
POP3 is encrypted via SSL on port 995 (unencrypted POP3 uses port 110).
IMAP is encrypted via SSL on port 993 (unencrypted IMAP uses port 143)
SMTP is encrypted via SSL on port 465 (unencrypted SMTP uses port 25 or 26)
+===============+
=========
To create a tar.gz archive from a given folder you can use the following command
tar -zcvf tar-archive-name.tar.gz source-folder-name
tar -xvf homedir.tar-----------to untar in SSH
tar -tvf file.tar -------to view the files in tar.gz
( refer: http://www.cyberciti.biz/faq/list-the-contents-of-a-tar-or-targz-file/
http://www.cyberciti.biz/faq/tar-extract-linux/)
=========
==============
Edit wp_option --to change the site URL for the wordpress from phpmyadmin
==============
==========
usr/local/cpanel/logs/ ------------to check cPanel logs
/usr/local/apache/htdocs-------- we can put any file here and give client to download link as:
serverIP/filename
==========
=================
http://www.htpasswdgenerator.net/ -------- to create new .htpasswd as well as .htaccess
http://www.rapidtables.com/web/tools/redirect-generator.htm------------site redirect code generator.
=================
===============
/usr/local/apache/domlogs -----to check all the domain logs
top -d2c ----- to check all the current processes in the detail.
===============
http://www.servertechs.net/domain-shows-cpanelwhm-default-page.html
===============
cat /var/named/domainname.com.db -----------to edit dns zone from shell
/scripts/rebuildhttpdconf ------------ after doing the changes to rebuild httpdconf
dig domainname ---- to view current DNS zone of the domain
===============
==============
Issue: "Could not write to counter file: /var/cpanel/Counters/filename.dat" while we set a counter for
a domain
=> Login to your server >> cd /var/cpanel/Counters >> chown username.username to filename.dat >> save
and quit
Refresh your browser and clear their caches.......
==============
FireFox issue: Keeps asking for login.
===================
refer this URL: http://wordpress.org/support/topic/firefox-issue-keeps-asking-for-login
===================
How to install SSL on the addon domain?
================
http://forums.cpanel.net/f5/ssl-addon-domain-309312.html
================
=================
To config new IP address on the server
+===============+
cd /etc/sysconfig/network-scripts/
5 ll
6 vi ifcfg-eth0-range1
7 ll
8 ifc
9 ifconfig
10 /etc/init.d/network restart
11 ifconfig
12 vi ifcfg-eth0-range2
13 vi ifcfg-eth0-range3
14 vi ifcfg-eth0-range3
15 ll
16 /etc/init.d/network restart
+===============+
Drupal Error:
==============
PDOException: SQLSTATE[42000] [1044] Access denied for user 'vfp'@'67.205.0.0/255.255.192.0' to
database 'vfpvmembers' in lock_may_be_available() (line 167 of
/home/bryancasler/vfpmembers.org/includes/lock.inc).
===============
=> check for the settings.php file for correct database name, username, password and also give all
privileges while adding user to database
==============
http://live.iplstream.com/2012/10/channel-1.html
wp-admin redirection issue fixed
=====================
http://stackoverflow.com/questions/8456360/wordpress-wp-admin-redirects-me-to-a-different-domain
=====================
to redirect to suspend page---out below in the .htaccess of the account.
+==============+
RedirectMatch .* /cgi-sys/suspendedpage.cgi
+===============+
To scan server
===============
clamscan -ir /home/* > /root/scanreport.txt
No need to use this--| cat /root/scanreport.txt echo ""| mailx -s "Scanreport B for 107.6.39.205"
===============
Changing main mail server ip
======================
1) If you are using Exim, Main >> Service Configuration >> Exim Configuration Editor >> Domains and
IPs , enable option: "Send outgoing mail from the ip that matches the domain name in /etc/mailips"
2) pico to /etc/mailips >> *: mail server IP >> save.
(refer this post: http://forums.cpanel.net/f43/changing-main-mail-server-ip-153445.html)
3) /etc/init.d/exim restart
4) Refer this URL: http://forums.eukhost.com/f38/changing-email-server-ip-address-cpanel-server-
6781/#.UY1FfbVTBSU
also (http://blog.my-helper.com/cpanel/change-email-server-ip-on-cpanel/)
also (http://www.webhostingtalk.com/showthread.php?t=953917)
======================
To change site URL in magento do below:
===========================
Go to respective database in phpmy admin >> find table "core_config_data" >> edit below fields:
======
web/unsecure/base_url ------------- put current domain name infront of this
web/secure/base_url ----------------put current domain name infront of this
======
============================
/var/cpanel/packages ----- to check all the pacakges
/var/cpanel/users ----- entries of the all the pacakges here (grep -rl crystalv_seotuch *)
/scripts/chpass username new password ---- to change the password of the cPanel from shell
to install Install cloudfare module and plugin on cpanel
========================
http://linuxworldweb.blogspot.in/2012/03/install-cloudfare-on-cpanel.html
========================
How to edit cPanel theme:
==================
http://www.kvchost.com/hosting-tutorial/800/how-to-change-cpanels-branding-using-whm.html
http://my.kualo.com/knowledgebase/946-how-to-change-cpanels-branding-using-whm.html
Go to: /var/cpanel/userhomes/cpanel/cpanelbranding
==================
Backup file formats
=============
a) cpmove-user6.tar.gz [got by using no options]
b) backup-10.8.2011_18-28-46_user6.tar.gz [got by using --userbackup option]
=============
Private Nameservers
=================
http://hostnit.com/billing/knowledgebase.php?action=displayarticle&id=71
=================
changing Joomla footer
================
http://www.templatemonster.com/help/files/Joomla/Joomla2.5_copyright_information_changing.htm
================
Installing MediaWiki manually
================
http://www.inmotionhosting.com/support/edu/mediawiki/getting-started-mediawiki/install-mediawiki-
manually
===============
Script to check spamming on the server - fire below command on shell as root
+=========================+
exim -bpr | grep "<*@*>" | awk '{print $4}'|grep -v "<>" |awk -F "@" '{ print $2}' | sort | uniq -c | sort -n
grep "cwd=" /var/log/exim_mainlog|awk '{for(i=1;i<=10;i++){print $i}}'|sort|uniq -c|grep cwd|sort -n | tail
grep "<= " /var/log/exim_mainlog|grep -v "<= <>"|awk '{print $5}'|sort|uniq -c|sort -n|tail
grep "<= " /var/log/exim_mainlog|grep -v "<= <>"|awk '{print $5,$7}'|cut -d":" -f1|sort|uniq -c|sort -n|tail
grep cwd /var/log/exim_mainlog|grep -v /var/spool|awk -F"cwd=" '{print $2}'|awk '{print $1}' | sort | uniq -c | sort -n
+=========================+
$mysqladmin process
PHP MAIL SCRIPT
==============
http://www.apache.com/resources/simple-php-mail-script-that-works/
http://php.net/manual/en/function.mail.php
==============
To increase webiste speed
====================
http://www.socialmediaexaminer.com/improve-the-speed-of-your-wordpress-site/
http://www.sparringmind.com/speed-up-wordpress/
====================
Install VNC on server
================
http://www.supportfacility.com/blog/install/install-vncserver-on-linux-remote-desktop-linux/
================
How add new dedicated IP address on centos
==============================
http://tutorials.vservercenter.com/articles/add-secondary-ip-address-static-to-centos-server/
==============================
Buzix
===========
Connection refused by host
=================
Also check for IP block on both server.
/etc/init.d/xinetd restart --- on nagios/server on which getting this warning
/etc/init.d/nagios restart --- on nagios
=================
===============
http://linuxreviews.org/beginner/#toc18
===============
To create daily backup of all the account in cpback/daily. ( 1st rename the daily directory to do this
and make new daily directory
===============
/scripts/cpbackup --force
rsync -avz /backup/cpbackup/daily/ [email protected]:/backup/ --- to copy backup to another server.
===============
To change SSH port
===============
pico /etc/ssh/sshd_config
===============
http://www.htaccessredirect.net/
chattr
================
http://tournasdimitrios1.wordpress.com/2011/01/22/protecting-filesdirectories-even-from-the-root-
user-with-chattr/
================
+===========+
lsattr ---- to check list of currently locked directoires.
chattr +ir public_html ----- to chattr public_html directory
chattr -ir public_html ----- to remove chattr from public_html directory
+===========+
If Webmail.domainname.TLD is showing default page then do following:
====================
Go to WHM >> Main >> Server Configuration >> Tweak Settings >> serach for "proxy subdomains" >> ON
this option.
====================
http://www.mkyong.com/blog/mod_security-blocking-my-ip-when-editing-post-in-wordpress/
How to troubleshoot “111 Can’t open SMTP stream” issue in SquirrelMail
========================
/etc/init.d/iptables restart
/etc/init.d/iptables stop
/etc/init.d/iptables start
or
The other easy step to resolve this issue is editing /etc/exim.conf where it says
#daemon_smtp_ports = 25 : 587
daemon_smtp_ports = 25
Change it to:
daemon_smtp_ports = 25 : 587
#daemon_smtp_ports = 25
========================
How to install uploadprogress extension php (Prefer to do this from WHM)
========================================
http://forums.cpanel.net/f5/installing-acp-uploadprogress-tutorial-107265.html
http://www.cpanelblog.in/install-uploadprogress-php-extension-linux-machine
========================================
Short Guide to Running Python Scripts with cPanel
============
http://forums.cpanel.net/f5/short-guide-running-python-scripts-cpanel-244361.html
============
How to Configure MailScanner in cPanel
=====================
http://www.granitewebdesign.com/whmcs/knowledgebase/99999131/How-to-Configure-MailScanner-in-
cPanel.html
=====================
IP blacklist check URL:
===============
http://www.blacklistalert.org/
http://whatismyipaddress.com/blacklist-check
http://www.mxtoolbox.com/blacklists.aspx
===============
Some Userful scripts
===============
http://forums.cpanel.net/f5/useful-script-sys-admin-56995.html
http://www.inmotionhosting.com/support/website/server-usage/create-server-load-monitoring-bash-script
===============
load-tackling-in-cpanel-servers
====================
http://www.linux.com/learn/tutorials/269481:load-tackling-in-cpanel-servers
=====================
How to manually install SMF ( simple machine forums)
================
http://www.inmotionhosting.com/support/edu/smf/getting-started-smf/smf-manual-install
================
Magento Error - "503 Service Temporarily Unavailable"
============================
delete the following file from your /magento/ installation
maintenance.flag
e.g. rm ./magento/maintenance.flag
============================
to scan any particular directory
========================
maldet -a /home/askypcom/public_html/ ---------------
clamscan -ri /home/askypcom/public_html/ ------------
========================
To search for any string in files/directoires
====================
grep "string" * -lr
====================
To check no. of accounts present on the server.
============
wc -l /etc/trueuserdomains
============
Help full exim commands
================
exiqgrep -i -r [email protected] | xargs exim -Mrm -------------to remove all the emails of
[email protected] from mail queue
exiqgrep -i -r [email protected] ---------------to search email sent from this email id.
exiqgrep -i | xargs exim -Mrm ................To empty entrie mail queue
================