Tuesday, December 30, 2008
Wednesday, December 24, 2008
Using suphp To Secure A Shared Server
http://blog.stuartherbert.com/php/2008/01/18/using-suphp-to-secure-a-shared-server/
Thursday, December 18, 2008
How do I set up mail forwarding for individual email addresses on a domain through Plesk?
To set up mail forwarding for individual email addresses on a domain through Plesk:
- Log in to Plesk as "admin"
- Under General, select Domains.
- Select the domain you want to forward mail for.
- Under Services, select the Mail icon.
- Under the Mail tab, select New Address. The Create mail name window displays.
- Enter the name of the email address you want to forward to.
- Deselect the Mailbox checkbox.
- Click OK.
To set up forwarder for an individual email like roshith@example.com
Fisrt we need the root access. After login in the shell edit following file
vi /var/qmail/mailnames/example.com/roshith/.qmail
Insert the following line in the .qmail
|/usr/bin/php -q /home/supportpro/public_html/folder/parser/parser.php
For more details refer
http://octeth.com/kb/oempro3/mailing-list-management/bounce-tracking-module-%E2%80%93-piping-installation-instructions/
http://octeth.com/data/downloads/manuals/oemPro_Piping_Setup.pdf
After setting restart qmail
How do I create a cronjob in Plesk?
- Open a web browser and connect to your Plesk Control Panel located at https://ip address:8443.
- Login as the Administrator using the information sent to you in your setup email.
- Click Server from the System menu.
- Click Crontab under the Services section.
- Click Add New Task under the Tools section.
- Click Enable / Disable.
- Enter the appropriate information:
Note: * indicates leaving the field empty- Minute: 0 - 59 or *
- Hour: 0 - 23 or *
- Day of the Month: 1 - 31 or *
- Month: 1 - 12 or *
- Day of the Week: 0 - 6 (0 is Sunday) or *
- Command: enter the command that is to be executed
- Click Ok.
Wednesday, October 22, 2008
Wednesday, October 15, 2008
cronjobs of user roshith
After login to the server to get the cronjobs of user roshith
vi /var/spool/cron/roshith
or
crontab -e -u roshith
To get cron log
---------------
tail -f /var/log/cron
cat /var/log/cron | grep iscripts
To list the last run cron jobs
----------------------------
vi /var/log/cron
vi /var/spool/cron/roshith
or
crontab -e -u roshith
To get cron log
---------------
tail -f /var/log/cron
cat /var/log/cron | grep iscripts
To list the last run cron jobs
----------------------------
vi /var/log/cron
Thursday, September 25, 2008
Repair mysql table
root@servername [/var/lib/mysql/databasename]# myisamchk -r -S *.MYI
mysql> use;
mysql> REPAIR TABLE `table1`,`table2`;
mysql> use
mysql> REPAIR TABLE `table1`,`table2`;
Monday, September 22, 2008
Change system date in Linux
set new date to 22 Sept 2008 18:00:00, type the following command as root user:
# date -s "2 OCT 2006 18:00:00"
Saturday, September 6, 2008
Tuesday, August 12, 2008
Monday, July 28, 2008
MySQL - Restoring a Single Table from a Huge mysqldump File
http://blog.tsheets.com/2008/tips-tricks/mysql-restoring-a-single-table-from-a-huge-mysqldump-file.html
Restoring a single table in Mysql
Take a backup of the table which your looking to restore using mysqldump.
mysqldump -u -p >
ex:mysqldump -usridhar -pthajes testdb usermas > /home/sridhar/mysqldump/tablebackup.txt
where we get only usermas table backup.
for restoring to another db. use
mysql < /home/sridhar/mysqldump/tablebackup.txt
ex: mysql restDB < /home/sridhar/mysqldump/tablebackup.txt .
Note: If restDB has already usermas table, pls drop before restoring.
mysqldump -u
ex:mysqldump -usridhar -pthajes testdb usermas > /home/sridhar/mysqldump/tablebackup.txt
where we get only usermas table backup.
for restoring to another db. use
mysql
ex: mysql restDB < /home/sridhar/mysqldump/tablebackup.txt .
Note: If restDB has already usermas table, pls drop before restoring.
Saturday, July 12, 2008
Subscribe to:
Posts (Atom)