wget -m --user=username --password=password ftp://servername/*
WORLD OF LINUX
Monday, 11 March 2019
Thursday, 10 May 2018
Finding “Other Usage” from cPanels Disk Space Usage
If you are trying to track down where your disk space is used up, and you see a lot used by “Other Usage” you can find this by using the following command.
find / -user $USER > /root/list_of_files.txt
find / -user $USER > /root/list_of_files.txt
Change $USER with the username of the account you are trying to find the files for. This will search the entire server for all files owned by that username, and dump them into a file in /root called list_of_files.txt
Thursday, 5 April 2018
Commands to check The HP raid array configuration utility
hpacucli controller slot=0 ld all show
Sample output :
Smart Array P420i in Slot 0 (Embedded)
array A
logicaldrive 1 (4.6 TB, RAID 5, OK)
hpacucli controller slot=0 show config
Sample output :
Smart Array P420i in Slot 0 (Embedded) (sn: 5001438025C6B000)
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (4.6 TB, RAID 5, Interim Recovery Mode)
physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS, 200 GB, OK)
physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS, 200 GB, OK)
physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS, 600 GB, OK)
physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS, 600 GB, OK)
unassigned
physicaldrive 2I:2:5 (port 2I:box 2:bay 5, SAS, 700 GB, OK)
Sample output :
Smart Array P420i in Slot 0 (Embedded)
array A
logicaldrive 1 (4.6 TB, RAID 5, OK)
hpacucli controller slot=0 show config
Sample output :
Smart Array P420i in Slot 0 (Embedded) (sn: 5001438025C6B000)
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (4.6 TB, RAID 5, Interim Recovery Mode)
physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS, 200 GB, OK)
physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS, 200 GB, OK)
physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS, 600 GB, OK)
physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS, 600 GB, OK)
unassigned
physicaldrive 2I:2:5 (port 2I:box 2:bay 5, SAS, 700 GB, OK)
Monday, 8 January 2018
Open Cart password reset
To reset the open cart admin area password we can use the script mentioned in the link https://github.com/rmak78/ocreset
Thursday, 9 November 2017
Default email account showing incorrect disk usage in cpanel
I came across an issue in which the disk space usage on some email accounts, especially the default email account is not updated in cpanel. I have checked the user mailbox of the default email account via Webmail and noticed nothing there. I have done the followings steps to sort out this issue.
1. Log in to the server via SSH
2. Execute the following script :
/scripts/generate_maildirsize --confirm --allaccounts --verbose cpanelusername
If it doesn't solve the issue then use the following steps
1. Log in to the server via SSH
2. Locate the files email_accounts.yaml and email_accounts.cache under .cpanel directory of the user and rename it to a different name.
Friday, 13 January 2017
Wordpress site restoration using backupbuddy plugin
Backupbuddy is a wordpress plugin used for backup and restoring wordpress sites. To do a WP site restoration process via backupbuddy plugin we needs the following details
1. backup file generated by the plugin in zip format
2. importbuddy.php file
3. Password provided at the time of the backup generation.
Upload the importbuddy.php file and backup file to the document root of your account on path /home/user/public_html/. Then take the importbuddy.php file on your web browser as follows
http://www.domain.com/importbuddy.php
ImportBuddy will now ask for the password that you created when you downloaded ImportBuddy. On entering the password it will display the bacckup file you uploaded. ImportBuddy will unzip your backup file and show you a success message when it has extracted the files. On the next screen it will ask for the site URL and database details. You can enter the new DB details (DB username, DB name & password) here. After the restoration process click on the “Clean up and remove temporary files” button.
1. backup file generated by the plugin in zip format
2. importbuddy.php file
3. Password provided at the time of the backup generation.
Upload the importbuddy.php file and backup file to the document root of your account on path /home/user/public_html/. Then take the importbuddy.php file on your web browser as follows
http://www.domain.com/importbuddy.php
ImportBuddy will now ask for the password that you created when you downloaded ImportBuddy. On entering the password it will display the bacckup file you uploaded. ImportBuddy will unzip your backup file and show you a success message when it has extracted the files. On the next screen it will ask for the site URL and database details. You can enter the new DB details (DB username, DB name & password) here. After the restoration process click on the “Clean up and remove temporary files” button.
Thursday, 14 July 2016
Awstats not working in Cpanel
If you are getting “There are no domains which have awstats stats to display” while checking the Awstats from your cPanel >> logs >> Awstats. You can refer the following steps to resolve this issue
Please check the following files :
/usr/local/cpanel/3rdparty/bin/awstats.pl
/usr/local/cpanel/base/awstats.pl
The first file, /usr/local/cpanel/3rdparty/bin/awstats.pl, should be 755 file permissions. The second file, /usr/local/cpanel/base/awstats.pl, should be a symlink to /usr/local/cpanel/3rdparty/bin/awstats.pl
If the permissions are correct we have to run the following script to solve this issue
/scripts/runweblogs cPanel_username
Subscribe to:
Posts (Atom)