Total Pageviews
Friday, October 15, 2010
FORM MAIl SCRIPS
http://www.scriptarchive.com/readme/formmail.html
http://allwebco-templates.com/support/S_contact_form_quick.htm
http://manual.amstechdns.com/formmail/
http://allwebco-templates.com/support/S_contact_form_quick.htm
http://manual.amstechdns.com/formmail/
Thursday, October 14, 2010
ftp help
HOW TO DISPLAY FTP FILES IN CPANEL????HOW TO LOGIN??
http://www.lazyscripter.com/2010/06/how-to-see-more-than-2000-files-in-ftp-on-a-cpanel-server/
login in back end: ftp ip portnum
front end aano ariyathe?
http://www.lazyscripter.com/2010/06/how-to-see-more-than-2000-files-in-ftp-on-a-cpanel-server/
login in back end: ftp ip portnum
front end aano ariyathe?
ftp help---answrd
how to display the files using ftp in cpanel?????how to login using ftp???
http://www.lazyscripter.com/2010/06/how-to-see-more-than-2000-files-in-ftp-on-a-cpanel-server/
login in back end: ftp ip portnum
front end aano ariyathe?
http://www.lazyscripter.com/2010/06/how-to-see-more-than-2000-files-in-ftp-on-a-cpanel-server/
login in back end: ftp ip portnum
front end aano ariyathe?
changing domain specific values for phpinfo() page
example:to change the value of register_globals on for a particular domain and to keep the same off serverwide----
Add the following in the cofiguration file of apache(usr/local/apache/conf/httpd.conf)
<Directory.....
php_values global_register=On(If this doesnt work, In the place of ON try 1)
</ Directory>
save and restart apache.then take the ip in browser again.
Add the following in the cofiguration file of apache(usr/local/apache/conf/httpd.conf)
<Directory.....
php_values global_register=On(If this doesnt work, In the place of ON try 1)
</ Directory>
save and restart apache.then take the ip in browser again.
how to login in plesk--------- answed
wat is login ? password? url?
https://IP:8443
login: admin
password in /etc/.psa/.shadow
https://IP:8443
login: admin
password in /etc/.psa/.shadow
FTP FILE DISPLAY
http://www.lazyscripter.com/2010/06/how-to-see-more-than-2000-files-in-ftp-on-a-cpanel-server/
unnikuttan1
resold domain not listed in WHM ---> change reseller account privileges (enable the list accounts option)
---------------------------------------------------------------------------------
restoring account from backup file ---> place the file in the home folder and use the option (Restore a Full Backup/cpmove file) under the backup option
---------------------------------------------------------------------------------
set up a formmail script in the domain shine.com and send mail ---> place a mail script in the document root with correct ownership and permission
http://www.w3schools.com/php/php_mail.asp
(A new file named formmail.html has been created in public_html folder. FormMail is enabled, and the entries of the form will be mailed to dils@dilip.html
A new folder new-sys has been created with FormMail.pl file inside.)
(FormMail is a generic HTML form to e-mail gateway that parses the results of any form and sends them to the specified users.script ---> http://www.scriptarchive.com/formmail.html)
---------------------------------------------------------------------------------
HTTP Error 500 Internal server error ---> check error log (/etc/httpd/conf/httpd.conf)
---------------------------------------------------------------------------------
.php ---> ownership not nobody
Typical settings for files are 777, 755, 666 or 644.
Typical settings for directories are 777 or 755.
Cgi scripts 755, data files 666, and configuration files 644.
--------------------------------------------------------------------------------
webpage creation ---> http://www.htmlite.com/
adding addon domain ---> make necessary changes in tweak settings and a A record has been added for the main domain
-------------------------------------------------------------------------------
maximum number of mails that can be set in an hour ---> make a entry in /var/cpanel/maxemail
-------------------------------------------------------------------------------
unable to create a new domain in WHM -> Create Account ----> In /etc/wwwacct.conf,the HOMEDIR(home directory) was set as /home2. It is reset as /home.
-------------------------------------------------------------------------------
Create a database for me with collation UTF-8 ---> create a database for your domain using phpmyadmin and set the collocation to UTF-8 bin.The collocation can be set using the tab operations
(http://confluence.atlassian.com/display/DOC/Configuring+Database+Character+Encoding)
-------------------------------------------------------------------------------
When I run the command /scripts/cpbackup in the server, I get the message
Backup Not Enabled ---> The option (Main >> Backup >> Configure Backup) was disabled
restore ---> /scripts/pckg
---------------------------------------------------------------------------------
password---> /home/username/etc/domainnname/pasword
--------------------------------------------------------------------------------
root@cpanel [~]# iptables -F
root@cpanel [~]# iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain acctboth (0 references)
target prot opt source destination
-----------------------------------------------------------
register_globals
check your settings by viewing the PHP Configuration(cPanel->services and configurations->PHPConfiguration
----------------------------------
. i have a domain named ann.com and I created an email account test@ann.com. But I am unable to send mails from this account using Horde or Squirrelmail. Please fix it, so that I can send mails from Horde and Squirrelmail.
The issue was due to the improper ownership and permissions of the mail box. I have repaired it through Main >> Email >> Repair Mailbox permissions. Now you can send mail from test@ann.com using Horde or Squirrelmail. I have sent mail to your account remya@poornam.com from test@ann.com. Please verify.
---------------------------------
cgi privilege
CGI privilege was not there for your domain. I have modified your account through Main >> Account Functions >> Modify an Account and CGI privilege is given. I have also set “y” in WHM >> Main >> Server Configuration >> Basic cPanel/WHM Setup >>CGI Script Alias section ,so that sub-domains automatically have the cgi-privilege, instead of manually editing in conf files.
-------------------------------------------------
database is not seen in plesk ---> The entry corresponding to this database was missing in the data_bases table of the psa database
-------------------------------------------------
unable to FTP to the account ---> The ftp was not working for you as the xinetd was running on port 21.I have stopped it for you and now your ftp is working fine
--------------------------------------------------
I tried to create a cron job in kishore.com, in Plesk. But it gives an error--> The corresponding entry in the passwd file was wrong
---------------------------------------------------
Error on accessing File manager in plesk ---> The path of the home directory was incorrectly entered in the corresponding file.
-----------------------------------------------------------
Error on accessing /mail.php file ---> The mentioned file didn't have the correct permissions and ownership. The mail function was disabled in the php.ini file. The required changes have been made
---------------------------------------------------------
/etc/cron.deny
/user/bin/crontab ---> 4755
-----------------------------------------------------
From the CGI center in your cpanel you can create a counter for your domain.
---------------------------------------------------------
Now you can view your index.php page using the 'lynx' command.
Your index.php file contains the phpinfo() method, which was disabled in your 'php.ini' file. Also, support for php and cgi was disabled for your domain 'soumyojit.com'. I have enabled the options and now it's working fine.
--------------------------------------------------------
---------------------------------------------------------------------------------
restoring account from backup file ---> place the file in the home folder and use the option (Restore a Full Backup/cpmove file) under the backup option
---------------------------------------------------------------------------------
set up a formmail script in the domain shine.com and send mail ---> place a mail script in the document root with correct ownership and permission
http://www.w3schools.com/php/php_mail.asp
(A new file named formmail.html has been created in public_html folder. FormMail is enabled, and the entries of the form will be mailed to dils@dilip.html
A new folder new-sys has been created with FormMail.pl file inside.)
(FormMail is a generic HTML form to e-mail gateway that parses the results of any form and sends them to the specified users.script ---> http://www.scriptarchive.com/formmail.html)
---------------------------------------------------------------------------------
HTTP Error 500 Internal server error ---> check error log (/etc/httpd/conf/httpd.conf)
---------------------------------------------------------------------------------
.php ---> ownership not nobody
Typical settings for files are 777, 755, 666 or 644.
Typical settings for directories are 777 or 755.
Cgi scripts 755, data files 666, and configuration files 644.
--------------------------------------------------------------------------------
webpage creation ---> http://www.htmlite.com/
adding addon domain ---> make necessary changes in tweak settings and a A record has been added for the main domain
-------------------------------------------------------------------------------
maximum number of mails that can be set in an hour ---> make a entry in /var/cpanel/maxemail
-------------------------------------------------------------------------------
unable to create a new domain in WHM -> Create Account ----> In /etc/wwwacct.conf,the HOMEDIR(home directory) was set as /home2. It is reset as /home.
-------------------------------------------------------------------------------
Create a database for me with collation UTF-8 ---> create a database for your domain using phpmyadmin and set the collocation to UTF-8 bin.The collocation can be set using the tab operations
(http://confluence.atlassian.com/display/DOC/Configuring+Database+Character+Encoding)
-------------------------------------------------------------------------------
When I run the command /scripts/cpbackup in the server, I get the message
Backup Not Enabled ---> The option (Main >> Backup >> Configure Backup) was disabled
restore ---> /scripts/pckg
---------------------------------------------------------------------------------
password---> /home/username/etc/domainnname/pasword
--------------------------------------------------------------------------------
root@cpanel [~]# iptables -F
root@cpanel [~]# iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain acctboth (0 references)
target prot opt source destination
-----------------------------------------------------------
register_globals
check your settings by viewing the PHP Configuration(cPanel->services and configurations->PHPConfiguration
----------------------------------
. i have a domain named ann.com and I created an email account test@ann.com. But I am unable to send mails from this account using Horde or Squirrelmail. Please fix it, so that I can send mails from Horde and Squirrelmail.
The issue was due to the improper ownership and permissions of the mail box. I have repaired it through Main >> Email >> Repair Mailbox permissions. Now you can send mail from test@ann.com using Horde or Squirrelmail. I have sent mail to your account remya@poornam.com from test@ann.com. Please verify.
---------------------------------
cgi privilege
CGI privilege was not there for your domain. I have modified your account through Main >> Account Functions >> Modify an Account and CGI privilege is given. I have also set “y” in WHM >> Main >> Server Configuration >> Basic cPanel/WHM Setup >>CGI Script Alias section ,so that sub-domains automatically have the cgi-privilege, instead of manually editing in conf files.
-------------------------------------------------
database is not seen in plesk ---> The entry corresponding to this database was missing in the data_bases table of the psa database
-------------------------------------------------
unable to FTP to the account ---> The ftp was not working for you as the xinetd was running on port 21.I have stopped it for you and now your ftp is working fine
--------------------------------------------------
I tried to create a cron job in kishore.com, in Plesk. But it gives an error--> The corresponding entry in the passwd file was wrong
---------------------------------------------------
Error on accessing File manager in plesk ---> The path of the home directory was incorrectly entered in the corresponding file.
-----------------------------------------------------------
Error on accessing /mail.php file ---> The mentioned file didn't have the correct permissions and ownership. The mail function was disabled in the php.ini file. The required changes have been made
---------------------------------------------------------
/etc/cron.deny
/user/bin/crontab ---> 4755
-----------------------------------------------------
From the CGI center in your cpanel you can create a counter for your domain.
---------------------------------------------------------
Now you can view your index.php page using the 'lynx' command.
Your index.php file contains the phpinfo() method, which was disabled in your 'php.ini' file. Also, support for php and cgi was disabled for your domain 'soumyojit.com'. I have enabled the options and now it's working fine.
--------------------------------------------------------
location of log files
cpanel
log files /var/log
config /var/cpanel/cpanel.config
/usr/share/ssl
user config
/var/cpanel/users
POP n IMAP
MBOX n MAIL DIR
/etc/valiases/domainname
/etc/vfilters/domainname
/usr/local/apache/domlogs/domainusername---------> log files
subdomain-----> resource record,virtual host entry
add on---------> ServerAlias in original virtual host, parked domain of a sub domain
parked domain----->accessing existing domain name using another name;ServerAlias in original virtual host
usr password
/home/username/etc/domainname/paswrd
/etc/vfilter/domain
/etc/valias/domain
FTP
/home/username/ftpaccoutfolder
enterirs in:
/etc/proftpd/password.vhosts
/etc/proftpd/username
*********************************************************************************
plesk
admin pasword
/etc/psa/.psa.shadow
root directory
/usr/local/psa
/usr/local/psa/version
/etc/local/psa/version
/etc/psa/psa.conf
/var/log
4 login level
admin
client
domain
mailuser
std n deak top view
3 types of accounts
physical hostin
standard forward
frame forward
3 backups
server
all sites of a user
1 site
monitoring connectins
ftp sessions
cp sessions
domain related files
home directory: /var/www/vhosts
user home dir: /var/www/vhosts/domainname/httpsdocs
domainlog: /var/www/vhosts/domainname/statistics/logs/domain
statisics: /var/www/vhosts/domainname/statistics
error pages: /var/www/vhosts/domainname/error_docs
location f all log files ,-----------> /etc/syslog.conf
apache conf
/etc/httpd/conf/httpd.conf
/var/www/vhosts/domainname/conf/http.include---------> for each domain
named records
/var/named/run-root/etc-----> server wide
/var/named/run-root/var/domainname---------> db record
mysql
/var/lib/mysql
qmail
/var/qmail
ftp
/etc/proftpd.conf
/var/log/xfer.log
psa
/usr/local/psa/admin/logs
mail
/var/log/maillog
httpd
/etc/httpd/logs
mysql
/var/log/mesages
plesk scripts
/usr/local/psa/bin
starting services
/etc/rc.d/init.d/
-httpd:httpd
-xinetd:ftp,smtp
-psa:psa
-qmail:qmail
0plesk vs cpanel
dns
apache
mta
mail: cpanel(exim):plesk(qmail)
*************************************************************************
mysql
/var/lib/mysql/hostname.err
log files------->
error log
query log
binary logcpanel
log files /var/log
config /var/cpanel/cpanel.config
/usr/share/ssl
user config
/var/cpanel/users
POP n IMAP
MBOX n MAIL DIR
/etc/valiases/domainname
/etc/vfilters/domainname
/usr/local/apache/domlogs/domainusername---------> log files
subdomain-----> resource record,virtual host entry
add on---------> ServerAlias in original virtual host, parked domain of a sub domain
parked domain----->accessing existing domain name using another name;ServerAlias in original virtual host
usr password
/home/username/etc/domainname/paswrd
/etc/vfilter/domain
/etc/valias/domain
FTP
/home/username/ftpaccoutfolder
enterirs in:
/etc/proftpd/password.vhosts
/etc/proftpd/username
*********************************************************************************
plesk
admin pasword
/etc/psa/.psa.shadow
root directory
/usr/local/psa
/usr/local/psa/version
/etc/local/psa/version
/etc/psa/psa.conf
/var/log
4 login level
admin
client
domain
mailuser
std n deak top view
3 types of accounts
physical hostin
standard forward
frame forward
3 backups
server
all sites of a user
1 site
monitoring connectins
ftp sessions
cp sessions
domain related files
home directory: /var/www/vhosts
user home dir: /var/www/vhosts/domainname/httpsdocs
domainlog: /var/www/vhosts/domainname/statistics/logs/domain
statisics: /var/www/vhosts/domainname/statistics
error pages: /var/www/vhosts/domainname/error_docs
location f all log files ,-----------> /etc/syslog.conf
apache conf
/etc/httpd/conf/httpd.conf
/var/www/vhosts/domainname/conf/http.include---------> for each domain
named records
/var/named/run-root/etc-----> server wide
/var/named/run-root/var/domainname---------> db record
mysql
/var/lib/mysql
qmail
/var/qmail
ftp
/etc/proftpd.conf
/var/log/xfer.log
psa
/usr/local/psa/admin/logs
mail
/var/log/maillog
httpd
/etc/httpd/logs
mysql
/var/log/mesages
plesk scripts
/usr/local/psa/bin
starting services
/etc/rc.d/init.d/
-httpd:httpd
-xinetd:ftp,smtp
-psa:psa
-qmail:qmail
0plesk vs cpanel
dns
apache
mta
mail: cpanel(exim):plesk(qmail)
*************************************************************************
mysql
/var/lib/mysql/hostname.err
log files------->
error log
query log
binary log
my.cnf------>user,password,host,database
*******************************
mail
/etc/exim.conf
/var/log/exim/main_log
/etc/localdomains
/etc/remotedomains
/home/user/mail/domain/mail_id--------> mailbox
/var/spool/exim----------------> mail queue
exim logs
mainlog
paniclog
rejectlog
service exim restart
/etc/rc.d/init.d/exim restart
my.cnf------>user,password,host,database
*******************************
mail
/etc/exim.conf
/var/log/exim/main_log
/etc/localdomains
/etc/remotedomains
/home/user/mail/domain/mail_id--------> mailbox
/var/spool/exim----------------> mail queue
exim logs
mainlog
paniclog
rejectlog
service exim restart
/etc/rc.d/init.d/exim restart
log files /var/log
config /var/cpanel/cpanel.config
/usr/share/ssl
user config
/var/cpanel/users
POP n IMAP
MBOX n MAIL DIR
/etc/valiases/domainname
/etc/vfilters/domainname
/usr/local/apache/domlogs/domainusername---------> log files
subdomain-----> resource record,virtual host entry
add on---------> ServerAlias in original virtual host, parked domain of a sub domain
parked domain----->accessing existing domain name using another name;ServerAlias in original virtual host
usr password
/home/username/etc/domainname/paswrd
/etc/vfilter/domain
/etc/valias/domain
FTP
/home/username/ftpaccoutfolder
enterirs in:
/etc/proftpd/password.vhosts
/etc/proftpd/username
*********************************************************************************
plesk
admin pasword
/etc/psa/.psa.shadow
root directory
/usr/local/psa
/usr/local/psa/version
/etc/local/psa/version
/etc/psa/psa.conf
/var/log
4 login level
admin
client
domain
mailuser
std n deak top view
3 types of accounts
physical hostin
standard forward
frame forward
3 backups
server
all sites of a user
1 site
monitoring connectins
ftp sessions
cp sessions
domain related files
home directory: /var/www/vhosts
user home dir: /var/www/vhosts/domainname/httpsdocs
domainlog: /var/www/vhosts/domainname/statistics/logs/domain
statisics: /var/www/vhosts/domainname/statistics
error pages: /var/www/vhosts/domainname/error_docs
location f all log files ,-----------> /etc/syslog.conf
apache conf
/etc/httpd/conf/httpd.conf
/var/www/vhosts/domainname/conf/http.include---------> for each domain
named records
/var/named/run-root/etc-----> server wide
/var/named/run-root/var/domainname---------> db record
mysql
/var/lib/mysql
qmail
/var/qmail
ftp
/etc/proftpd.conf
/var/log/xfer.log
psa
/usr/local/psa/admin/logs
/var/log/maillog
httpd
/etc/httpd/logs
mysql
/var/log/mesages
plesk scripts
/usr/local/psa/bin
starting services
/etc/rc.d/init.d/
-httpd:httpd
-xinetd:ftp,smtp
-psa:psa
-qmail:qmail
0plesk vs cpanel
dns
apache
mta
mail: cpanel(exim):plesk(qmail)
*************************************************************************
mysql
/var/lib/mysql/hostname.err
log files------->
error log
query log
binary logcpanel
log files /var/log
config /var/cpanel/cpanel.config
/usr/share/ssl
user config
/var/cpanel/users
POP n IMAP
MBOX n MAIL DIR
/etc/valiases/domainname
/etc/vfilters/domainname
/usr/local/apache/domlogs/domainusername---------> log files
subdomain-----> resource record,virtual host entry
add on---------> ServerAlias in original virtual host, parked domain of a sub domain
parked domain----->accessing existing domain name using another name;ServerAlias in original virtual host
usr password
/home/username/etc/domainname/paswrd
/etc/vfilter/domain
/etc/valias/domain
FTP
/home/username/ftpaccoutfolder
enterirs in:
/etc/proftpd/password.vhosts
/etc/proftpd/username
*********************************************************************************
plesk
admin pasword
/etc/psa/.psa.shadow
root directory
/usr/local/psa
/usr/local/psa/version
/etc/local/psa/version
/etc/psa/psa.conf
/var/log
4 login level
admin
client
domain
mailuser
std n deak top view
3 types of accounts
physical hostin
standard forward
frame forward
3 backups
server
all sites of a user
1 site
monitoring connectins
ftp sessions
cp sessions
domain related files
home directory: /var/www/vhosts
user home dir: /var/www/vhosts/domainname/httpsdocs
domainlog: /var/www/vhosts/domainname/statistics/logs/domain
statisics: /var/www/vhosts/domainname/statistics
error pages: /var/www/vhosts/domainname/error_docs
location f all log files ,-----------> /etc/syslog.conf
apache conf
/etc/httpd/conf/httpd.conf
/var/www/vhosts/domainname/conf/http.include---------> for each domain
named records
/var/named/run-root/etc-----> server wide
/var/named/run-root/var/domainname---------> db record
mysql
/var/lib/mysql
qmail
/var/qmail
ftp
/etc/proftpd.conf
/var/log/xfer.log
psa
/usr/local/psa/admin/logs
/var/log/maillog
httpd
/etc/httpd/logs
mysql
/var/log/mesages
plesk scripts
/usr/local/psa/bin
starting services
/etc/rc.d/init.d/
-httpd:httpd
-xinetd:ftp,smtp
-psa:psa
-qmail:qmail
0plesk vs cpanel
dns
apache
mta
mail: cpanel(exim):plesk(qmail)
*************************************************************************
mysql
/var/lib/mysql/hostname.err
log files------->
error log
query log
binary log
my.cnf------>user,password,host,database
*******************************
/etc/exim.conf
/var/log/exim/main_log
/etc/localdomains
/etc/remotedomains
/home/user/mail/domain/mail_id--------> mailbox
/var/spool/exim----------------> mail queue
exim logs
mainlog
paniclog
rejectlog
service exim restart
/etc/rc.d/init.d/exim restart
my.cnf------>user,password,host,database
*******************************
/etc/exim.conf
/var/log/exim/main_log
/etc/localdomains
/etc/remotedomains
/home/user/mail/domain/mail_id--------> mailbox
/var/spool/exim----------------> mail queue
exim logs
mainlog
paniclog
rejectlog
service exim restart
/etc/rc.d/init.d/exim restart
Wednesday, October 13, 2010
cannot see database cPanel for domain
While accessing Phpmyadmin via Cpanel , under databases it shows ” No Database ” . But you can see the databases while accessing through WHM.
This can be due to many reasons . One of the reason I found is because the user doesn’t have SHOW DATABASES privilege .
From the server my.cnf remove the line
skip-show-database
Restart Mysql
Try to access Phpmyadmin .
–skip-show-database
With this option, the SHOW DATABASES statement is allowed only to users who have the SHOW DATABASES privilege, and the statement displays all database names. Without this option, SHOW DATABASES is allowed to all users, but displays each database name only if the user has the SHOW DATABASES privilege or some privilege for the database. Note that any global privilege is considered a privilege for the database.
Apache status in WHM shows error
http://forums.cpanel.net/f5/apache-status-not-working-after-customizing-port-144581.html
. Why is my mysql database in cpanel showing no disk space usage.
http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/
import a MySQL dumpfile into my database
How do I import a MySQL dumpfile into my database?
Applies to: Grid SystemAfter you have dumped out your data into a file as described here, FTP or scp that dump file to the home directory (/) on our system.
Once you have uploaded the dump file to your account here, get a shell prompt on our system using telnet or ssh.
Now import the dump file into MySQL by typing all the following on 1 single line at the shell prompt:
If you have followed this other FAQ on how to create a .my.cnf preference file, you would not have to type so much when connecting to the MySQL Monitor from the shell prompt. With a proper .my.cnf file you could have imported the dump by just typing this at the shell prompt:
Once you have uploaded the dump file to your account here, get a shell prompt on our system using telnet or ssh.
Now import the dump file into MySQL by typing all the following on 1 single line at the shell prompt:
mysql -p -h DBSERVER dbname < dbname.sqlThe above assumes that your database name on our system is "dbname" and the dumpfile that you uploaded was named "dbname.sql". Replace those with your correct database name and dumpfile filename. Also replace DBSERVER with your correct database server name.
If you have followed this other FAQ on how to create a .my.cnf preference file, you would not have to type so much when connecting to the MySQL Monitor from the shell prompt. With a proper .my.cnf file you could have imported the dump by just typing this at the shell prompt:
mysql < dbname.sql
create a database via phpmyadmin.
first set a password for sql frm front end.
den phpadmin wil bcom visible.
then try onscreen procedure for creating databsae in phpmyadmin
den phpadmin wil bcom visible.
then try onscreen procedure for creating databsae in phpmyadmin
sending mails wid an error
check all account settings in whm /cpanel.
There wil b some advancd settings(not sure).check it.
der wil b a destination inside dat.check it.
There wil b some advancd settings(not sure).check it.
der wil b a destination inside dat.check it.
Tutorials of cpanel and plesk
plesk
To do anything in plesk front end search plesk tutorial in google.
http://hostingdude.com/plesk7_help/plesk7_rs_template.htm
http://www.parallels.com/products/plesk7reloaded/flash/
Demo of plesk
http://www.parallels.com/products/plesk/demo/
Cpanel
http://www.siteground.com/tutorials/cpanel/
http://webhostingrating.com/hosting-guide/cpanel/
http://www.siteground.com/tutorials/cpanel/file_manager.htm
To do anything in plesk front end search plesk tutorial in google.
http://hostingdude.com/plesk7_help/plesk7_rs_template.htm
http://www.parallels.com/products/plesk7reloaded/flash/
Demo of plesk
http://www.parallels.com/products/plesk/demo/
http://www.siteground.com/tutorials/cpanel/
http://webhostingrating.com/hosting-guide/cpanel/
http://www.siteground.com/tutorials/cpanel/file_manager.htm
Php Myadmin test
When I try to access phpmyadmin in WHM, I get the message "Access denied". Please fix it.
try link
http://tutorials.ausweb.com.au/hosting/Tutorials/WHM-Tutorials/
try link
http://tutorials.ausweb.com.au/hosting/Tutorials/WHM-Tutorials/
Tuesday, October 12, 2010
FTP upload files in public_html
Check var/log/messages
It will give u where the file gets uploaded
Check the apache configaration and see ftp home directory
It will give u where the file gets uploaded
Check the apache configaration and see ftp home directory
group mailing in cpanel without mail account
create a mailing list in cpanel and u can see a default mail account ther. and send group mail
cpanel images
"show icons" in cpanel, at the bottom of the cpanel home page,
not sure
just confirm it
crontab details
Permission for /usr/bin/crontab is 4755
Also check whether /etc/cron.deny whether our domain is there, uncomment it
Also check whether /etc/cron.deny whether our domain is there, uncomment it
php admin access denied!!!!
Check the WHM log file..and give the relevant permissions to the corresponding files
iptables, plesk
https://help.ubuntu.com/community/IptablesHowTo
http://logicsupport.com/blog/?tag=plesk
http://logicsupport.com/blog/?tag=plesk
Wednesday, October 6, 2010
virtual host entry
<VirtualHost *>
ServerName www.dipin.com
DocumentRoot /home/dipin/public_html
ServerAlias dipin.com
ErrorLog /var/log/apache/www.dipin.com-error_log
CustomLog /var/log/apache/www.dipin.com-access_log common
</VirtualHost>
ServerName www.dipin.com
DocumentRoot /home/dipin/public_html
ServerAlias dipin.com
ErrorLog /var/log/apache/www.dipin.com-error_log
CustomLog /var/log/apache/www.dipin.com-access_log common
</VirtualHost>
named.conf
zone "test.com" IN {
type master;
file "/var/named/test.com.zone";
allow-update { none; };
};
zone "12.128.192.in-addr.arpa" IN {
type master;
file "/var/named/12.128.192.rev";
allow-update { none; };
};
type master;
file "/var/named/test.com.zone";
allow-update { none; };
};
zone "12.128.192.in-addr.arpa" IN {
type master;
file "/var/named/12.128.192.rev";
allow-update { none; };
};
Zone file Rev
$TTL 86400
@ IN SOA dipin.com. root.dipin.com. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D) ; minimum
@ IN NS ns1.dipin.com.
137 IN PTR dipin.com.
@ IN SOA dipin.com. root.dipin.com. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D) ; minimum
@ IN NS ns1.dipin.com.
137 IN PTR dipin.com.
Zone file
$TTL 86400
@ IN SOA dns1.dipin.com. root.dipin.com. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D ) ; minimum
dipin.com. IN NS dns1.dipin.com.
dipin.com. IN NS dns2.dipin.com.
dipin.com. IN A 192.168.2.137
mail.dipin.com. IN A 192.168.2.137
dipin.com. IN MX 10 mail.dipin.com.
@ IN SOA dns1.dipin.com. root.dipin.com. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D ) ; minimum
dipin.com. IN NS dns1.dipin.com.
dipin.com. IN NS dns2.dipin.com.
dipin.com. IN A 192.168.2.137
mail.dipin.com. IN A 192.168.2.137
dipin.com. IN MX 10 mail.dipin.com.
yum
install yum
*************
As root,
cd ~
mkdir setups
cd setups
wget http://linux.duke.edu/projects/yum/d...m-2.0.7.tar.gz
tar -xvzf yum-2.0.7.tar.gz
cd yum-2.0.7
./configure
make
make install
*************
As root,
cd ~
mkdir setups
cd setups
wget http://linux.duke.edu/projects/yum/d...m-2.0.7.tar.gz
tar -xvzf yum-2.0.7.tar.gz
cd yum-2.0.7
./configure
make
make install
phpBB3-FORUM
Go to link
From this link we will get the zip version
http://www.phpbb.com/downloads/olympus.php
wget http://sourceforge.net/projects/phpbb/files/phpBB%203/phpBB%203.0.7-PL1/phpBB-3.0.7-PL1.zip/download
unzip phpBB-3.0.7-PL1.zip
cd phpBB3
Go to the following link and follow the instructions.
http://www.phpbb.com/community/docs/INSTALL.html#install
From this link we will get the zip version
http://www.phpbb.com/downloads/olympus.php
wget http://sourceforge.net/projects/phpbb/files/phpBB%203/phpBB%203.0.7-PL1/phpBB-3.0.7-PL1.zip/download
unzip phpBB-3.0.7-PL1.zip
cd phpBB3
Go to the following link and follow the instructions.
http://www.phpbb.com/community/docs/INSTALL.html#install
Tuesday, October 5, 2010
ftp installation
Follow all steps given in this link
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=24235&forum=38
ftp can be downloaded from
ftp://ftp.proftpd.org/distrib/source/
create a user
# useradd ftpuser
give passwd protection
# passwd ftpuser
create any file under that user for eg: abc.com
To check if ftp is listening
open a new terminal and check
# telnet ip 21
to open ftp connection type
# ftp ip
then give the username and password you have created b4.
then to transfer files btw ur local s/m and the remote user use put filename
n get filename commands..
You can put file to the ftpuser's home from your local system home directory and viceversa..
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=24235&forum=38
ftp can be downloaded from
ftp://ftp.proftpd.org/distrib/source/
create a user
# useradd ftpuser
give passwd protection
# passwd ftpuser
create any file under that user for eg: abc.com
To check if ftp is listening
open a new terminal and check
# telnet ip 21
to open ftp connection type
# ftp ip
then give the username and password you have created b4.
then to transfer files btw ur local s/m and the remote user use put filename
n get filename commands..
You can put file to the ftpuser's home from your local system home directory and viceversa..
Enabling Cgi Script
Open /usr/local/apache/conf/httpd.conf
Change <Directory /usr/local/apache/cgi-bin> to
your home directory for eg:
<Directory /home/user/public_html/cgi-bin>
then give AllowOverride All
Options +ExecCGI
</Directory>
AddHandler cgi-script .cgi .pl
ScriptAlias /cgi-bin/ "/home/user/public_html/cgi-bin/"
Done with the conf file..
Then in ur public_html folder create cgi-bin folder. Inside it create index.pl file.
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "Hello, world";
complie the perl script using command - perl -wc index.pl
Check if that is running -- perl -w index.pl
Give 755 permission and change group and ownnership as user's.
Take in browser http://ip/cgi-bin/index.pl
Change <Directory /usr/local/apache/cgi-bin> to
your home directory for eg:
<Directory /home/user/public_html/cgi-bin>
then give AllowOverride All
Options +ExecCGI
</Directory>
AddHandler cgi-script .cgi .pl
ScriptAlias /cgi-bin/ "/home/user/public_html/cgi-bin/"
Done with the conf file..
Then in ur public_html folder create cgi-bin folder. Inside it create index.pl file.
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "Hello, world";
complie the perl script using command - perl -wc index.pl
Check if that is running -- perl -w index.pl
Give 755 permission and change group and ownnership as user's.
Take in browser http://ip/cgi-bin/index.pl
Monday, October 4, 2010
libjpeg
http://linux.softpedia.com/progDownload/libjpeg-Download-160.html
wget libjpeg version(strable)
cd libjpeg version
./configure
makezone "reshma.com" IN {
type master;
file "/var/named/reshma.com.zone";
allow-update { none; };
};
make install
http://www.libpng.org/pub/png/libpng.html
wget link location
uzip and untar
./configure
make
make install
wget libjpeg version(strable)
cd libjpeg version
./configure
makezone "reshma.com" IN {
type master;
file "/var/named/reshma.com.zone";
allow-update { none; };
};
make install
http://www.libpng.org/pub/png/libpng.html
wget link location
uzip and untar
./configure
make
make install
password protection
Step1- Create .htaccess file in your document root.
.htaccess file
AuthUserFile /home/username/public_html/.htpasswd
AuthName "Enter Password"
AuthType Basic
require user username(give ur username)
# htpasswd -c .htpasswd username
password : Enter the password
In the httpd.conf file
in the main directory give
AllowOverride All
.htaccess file
AuthUserFile /home/username/public_html/.htpasswd
AuthName "Enter Password"
AuthType Basic
require user username(give ur username)
# htpasswd -c .htpasswd username
password : Enter the password
In the httpd.conf file
in the main directory give
AllowOverride All
Sunday, October 3, 2010
Bind, curl, jumla
rpm -qa bind--to knw whether the bind is installed or not
rpm -e --nodeps bind version ---to remove the already installed bind
yum install bind
search for -howtoforge+bind installation
http://www.howtoforge.com/bind-installation-on-centos
vim /etc/sysconfig/named-------see whether the ROOT DIR is #ed
give ur IP in /etc/resolv.conf
vim /etc/named.conf
vim /var/named/domain.com.db
service named start
nslookup domain.com
dig domain.com
CURL
http://www.fing.edu.uy/if/ mirror/TEST/testhome/ phpinstall.html
wget curl version
bunzip2 curl version
tar -xvf curl version
./configure
make
make install
integrate wid php
-- ./confure --with-curl=/usr/local/curl { u shud add with this all other optins to be enabled}
Jumla
Download joomla from
http://www.joomla.org/ download.html
php configuration:
/configure --with-apxs=/usr/local/apache/ bin/apxs --enable-cgi=/usr/local/php --with-mysql --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-curl=/usr/local/curl --with-zlib-dir=/usr/lib
Installation procedure
----------------------
http://www. bulletprooftemplates.com/ download-and-installing- latest-stable-joomla-15x
or
http://www.basicconfig.com/linuxtips/setup_configure_joomla_in_slackware_linux
rpm -e --nodeps bind version ---to remove the already installed bind
yum install bind
search for -howtoforge+bind installation
http://www.howtoforge.com/bind-installation-on-centos
vim /etc/sysconfig/named-------see whether the ROOT DIR is #ed
give ur IP in /etc/resolv.conf
vim /etc/named.conf
vim /var/named/domain.com.db
service named start
nslookup domain.com
dig domain.com
CURL
http://www.fing.edu.uy/if/
wget curl version
bunzip2 curl version
tar -xvf curl version
./configure
make
make install
integrate wid php
-- ./confure --with-curl=/usr/local/curl { u shud add with this all other optins to be enabled}
Jumla
Download joomla from
http://www.joomla.org/
php configuration:
/configure --with-apxs=/usr/local/apache/
Installation procedure
----------------------
http://www.
or
http://www.basicconfig.com/linuxtips/setup_configure_joomla_in_slackware_linux
Post Nuke
post nuke download
http://webscripts.softpedia. com/script/Portal-Systems/ PostNuke-532.html
installation steps
http://www.nexcess.net/ support/tutorials/content- management-systems/postnuke/
http://webscripts.softpedia.
installation steps
http://www.nexcess.net/
exim,dovecot, Squirellmail ,Apache
yum install exim
/etc/init.d/exim start
netstat -plan | grep :25
telnet localhost 25 ------------------check whether ESMTP exim or sendmail exim,if sendmail stop it using
/etc/init.d/sendmail stop
vim /etc/exim/exim.conf
->1.domainlist local_domain=@ : localhost : localhost.localdomain: domain.com(specify the domain to which u hv to send msgs)
->2.check local_user
transport=local_delivery
->3. in local_delivery change the file
file=/home/$local_part/MBOX
->4.local_interfaces= 0.0.0.0
restart exim
useradd username
passwd password
New Terminal::::)
telnet IP 25
helo type a string
mail from:abc@gmail.com
rcpt to:username@domain.com
data (press enter)
type ur msg
.
quit
go back to previous terminal
cd /
cd /home/username
ls
cat MBOX
yum install dovecot
vim /etc/dovecot.conf
(we have to change only mail_location)
mail_location=mbox:~mail:
INBOX=/home/%u/MBOX
TO START DOVECOT:
/etc/rc.d./init.d/dovecot start
netstat -plan | grep :110
New terminal
telnet IP 110
user username
pass password
list
retr 1(if there is 1 msg in inbox)
quit
INSTALL Squirrelmail
yum install squirrelmail
vim /etc/httpd/conf/httpd.conf
(add Alias /sqmail/ "/usr/share/squirrelmail/")
Edit Directory and add the following
**************
<Directory "/usr/share/squirrelmail">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
*************
save n quit
/usr/local/apache/bin/ apachectl restart
/usr/local/apache/bin/ apachectl stop
/etc/init.d/httpd start
In browser------http://IP/sqmail/
search for apache download and select --http://httpd.apache.org/ download.cgi
www.lamphowto.com
-wget linl location
/etc/init.d/httpd status-if running stop it
cd /
unzip
tar -xvf
cd apache version
./configure --help
./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-module=so --enable-suexec-safepath=/usr/local/bin --enable-module=cgi
make
make install
cd /
vim /usr/local/apache/conf/httpd. conf
->server root /usr/local/apache
->user nobody
->group nobody
->directory index index.html
->VirtualHost ip:80
{doc root /home/user
server name domain.com}
save quit
servive httpd stop
/usr/local/apache/bin/ apachectl start
cd document root
vim index.html
/usr/local/apache/bin/ apachectl restart
If a 403 error comes in Directory change Deny from all to Allow from All.
dig abc.com
lynx http://domain.com
/etc/init.d/exim start
netstat -plan | grep :25
telnet localhost 25 ------------------check whether ESMTP exim or sendmail exim,if sendmail stop it using
/etc/init.d/sendmail stop
vim /etc/exim/exim.conf
->1.domainlist local_domain=@ : localhost : localhost.localdomain: domain.com(specify the domain to which u hv to send msgs)
->2.check local_user
transport=local_delivery
->3. in local_delivery change the file
file=/home/$local_part/MBOX
->4.local_interfaces= 0.0.0.0
restart exim
useradd username
passwd password
New Terminal::::)
telnet IP 25
helo type a string
mail from:abc@gmail.com
rcpt to:username@domain.com
data (press enter)
type ur msg
.
quit
go back to previous terminal
cd /
cd /home/username
ls
cat MBOX
yum install dovecot
vim /etc/dovecot.conf
(we have to change only mail_location)
mail_location=mbox:~mail:
TO START DOVECOT:
/etc/rc.d./init.d/dovecot start
netstat -plan | grep :110
New terminal
telnet IP 110
user username
pass password
list
retr 1(if there is 1 msg in inbox)
quit
INSTALL Squirrelmail
yum install squirrelmail
vim /etc/httpd/conf/httpd.conf
(add Alias /sqmail/ "/usr/share/squirrelmail/")
Edit Directory and add the following
**************
<Directory "/usr/share/squirrelmail">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
*************
save n quit
/usr/local/apache/bin/
/usr/local/apache/bin/
/etc/init.d/httpd start
In browser------http://IP/sqmail/
Apache
www.lamphowto.com
-wget linl location
/etc/init.d/httpd status-if running stop it
cd /
unzip
tar -xvf
cd apache version
./configure --help
./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-module=so --enable-suexec-safepath=/usr/local/bin --enable-module=cgi
make
make install
cd /
vim /usr/local/apache/conf/httpd.
->server root /usr/local/apache
->user nobody
->group nobody
->directory index index.html
->VirtualHost ip:80
{doc root /home/user
server name domain.com}
save quit
servive httpd stop
/usr/local/apache/bin/
cd document root
vim index.html
/usr/local/apache/bin/
If a 403 error comes in Directory change Deny from all to Allow from All.
dig abc.com
lynx http://domain.com
php graphy GALLERY
phpgraphy installation and configuration
http://phpgraphy.sourceforge.net/download.php
Installation tutorial
http://phpgraphy.sourceforge.net/manual/latest/ch02s03.html
cd /home/user/public_html
wget http://prdownloads.sourceforge.net/phpgraphy/phpgraphy-0.9.13b.zip?download
tar -xvzf phpgraphy version
stop old httpd and start new oneby
/usr/local/apache/bin/apachectl start
Create one MySQL database
>create database database-name
>create user user-name@your-IP identified by 'your-password';
>grant all privileges on database.* to user@your-IP identified by 'password';
>flush privileges;
#/etc/init.d/mysqld restart
In URL take http://<IP>/phpgraphy-version/install.php
Step 1:Select English
Step 2: cp config.ini.php.sample config.ini.php
In config.ini.php file give the IP displayed in the page.
copy the config.ini.php to /usr/local/apache/conf/config.ini.php
Step 3:cd /home/user/public_html/
chmod -R 777 phpgraphy-version
chown -R username phpgraphy-version
Step 5:select MySQL
Give your IP for server host name.
Step 6:follow steps
Login to the site
Upload picture
/usr/local/apache/bin/apachectl restart
tutorial
http://phpgraphy.sourceforge. net/manual/latest/ch02s03.html
http://phpgraphy.sourceforge.net/download.php
Installation tutorial
http://phpgraphy.sourceforge.net/manual/latest/ch02s03.html
cd /home/user/public_html
wget http://prdownloads.sourceforge.net/phpgraphy/phpgraphy-0.9.13b.zip?download
tar -xvzf phpgraphy version
stop old httpd and start new oneby
/usr/local/apache/bin/apachectl start
Create one MySQL database
>create database database-name
>create user user-name@your-IP identified by 'your-password';
>grant all privileges on database.* to user@your-IP identified by 'password';
>flush privileges;
#/etc/init.d/mysqld restart
In URL take http://<IP>/phpgraphy-version/install.php
Step 1:Select English
Step 2: cp config.ini.php.sample config.ini.php
In config.ini.php file give the IP displayed in the page.
copy the config.ini.php to /usr/local/apache/conf/config.ini.php
Step 3:cd /home/user/public_html/
chmod -R 777 phpgraphy-version
chown -R username phpgraphy-version
Step 5:select MySQL
Give your IP for server host name.
Step 6:follow steps
Login to the site
Upload picture
/usr/local/apache/bin/apachectl restart
tutorial
http://phpgraphy.sourceforge.
php with apache and mysql
Please make sure that u have installed mysql
yum install mysql*
follow the instructions given in the site
http://dan.drydog.com/apache2php.html
go to httpd-version and configure it using
# cd httpd-2.2.16
# make
# make install
# cd
# wget http://in2.php.net/get/php-5.3.3.tar.gz/from/in.php.net/mirror
# tar xvzf php-5.3.3.tar.gz
# cd php-5.3.3
# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --prefix=/usr/local/apache/php --with-config-file-path=/usr/local/apache/php
# make
# make install
# cp -p .libs/libphp5.so /usr/local/apache/modules
# cp -p php.ini-development /usr/local/apache/php/php.ini
# cd
# vi /usr/local/apache/conf/httpd.conf
Add these lines
If u r not getting the page add one more line to ur httpd.conf file
AddHandler application/x-httpd-php .php .php5
Create index.php file in your DocumentRoot.
Give 755 permission and change owner and group to your username
# vi index.php
<?php
phpinfo();
?>
Take http://ip/ in your browser
yum install mysql*
follow the instructions given in the site
http://dan.drydog.com/apache2php.html
go to httpd-version and configure it using
# cd httpd-2.2.16
# ./configure --prefix=/usr/local/apache \ --enable-so \ --enable-cgi \ --enable-info \ --enable-rewrite \ --enable-speling \ --enable-usertrack \ --enable-deflate \ --enable-ssl \ --enable-mime-magic
# make
# make install
# cd
# wget http://in2.php.net/get/php-5.3.3.tar.gz/from/in.php.net/mirror
# tar xvzf php-5.3.3.tar.gz
# cd php-5.3.3
# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --prefix=/usr/local/apache/php --with-config-file-path=/usr/local/apache/php
# make
# make install
# cp -p .libs/libphp5.so /usr/local/apache/modules
# cp -p php.ini-development /usr/local/apache/php/php.ini
# cd
# vi /usr/local/apache/conf/httpd.conf
Add these lines
LoadModule php5_module modules/libphp5.so AddHandler php5-script php
DirectoryIndex index.html index.php AddType text/html php
AddType application/x-httpd-php-source phpsDo httpd restart...
If u r not getting the page add one more line to ur httpd.conf file
AddHandler application/x-httpd-php .php .php5
Create index.php file in your DocumentRoot.
Give 755 permission and change owner and group to your username
# vi index.php
<?php
phpinfo();
?>
Take http://ip/ in your browser
WordPress -BLOG
wordpress download
------------------------------ --------
http://wordpress.org/download/
cd /home/username/public_html
wget linklocation
tar xvzf worpress-version
Go to mysql
create database wordpress;
create user wordpress;
grant all privileges on wordpress.* to wordpress@your-ip identified by 'wordpresspassword';
flush privileges;
quit;
go to wordpress
Copy the wp-config-sample.php file to wp-config.php
Edit wp-config.php
restart apache n mysql.
take in browser.
http://your-ip/wordpress/wp-admin/install.php
------------------------------
http://wordpress.org/download/
cd /home/username/public_html
wget linklocation
tar xvzf worpress-version
Go to mysql
create database wordpress;
create user wordpress;
grant all privileges on wordpress.* to wordpress@your-ip identified by 'wordpresspassword';
flush privileges;
quit;
go to wordpress
Copy the wp-config-sample.php file to wp-config.php
Edit wp-config.php
define('DB_NAME', 'wordpress'); define('DB_USER', 'wordpress'); define('DB_PASSWORD', 'wordpresspassword'); define('DB_HOST', 'your ip');
restart apache n mysql.
take in browser.
http://your-ip/wordpress/wp-admin/install.php
wordpress installation tutorial
------------------------------
http://www.supriyadisw.net/
Linux Basics
to find a file:
[root@18691 ~]# find / -name 'access.conf'
/etc/security/access.conf
apache httpd
ftp proftpd
dns named
mysql mysql
mail exim
**************************************************************************************************
DNS
port 53
to check if bind is there, +versions
rpm -qa |grep bind
to delete bind
rpm -e --nodeps 'bind version'
to install bind
yum install bind
OR
rpm
http://www.howtoforge.org/bind-installation-on-centos
conf
/etc/named.conf
logfiles
/var/log/messages
nslookup www.***.com
host [IP]--------- (reverse)
history
1 passwd
2 rpm -q grep
3 rpm -q |grep bind
4 rpm -qa |grep bind
5 rpm -e --nodeps bind-utils-9.3.4-10.P1.el5_3.3
6 rpm -e --nodeps bind-9.3.4-10.P1.el5_3.3
7 rpm -e --nodeps bin-libs-9.3.4-10.P1.el5_3.3
8 rpm -e --nodeps bind-libs-9.3.4-10.P1.el5_3.3
9 yum install bind
10 ps aux |grep named
11 service named status
12 rpm -qa bind*
13 yum install bind-utils-9.2.4-2
14 yum install bind-utils
15 cat /etc/resolv.conf
16 vi /etc/resolv.conf
17 vi /etc/named.conf
18 vi /var/named/sujime.com.zone
19 vi /var/named/2.168.192.rev
20 vi /etc/named.conf
21 vi /var/named/2.168.192.rev
22 vi /etc/named.conf
23 vi /etc/hosts
24 nslookup www.sujime.com
25 dig www.sujime.com
26 vi /etc/hosts
27 vi /var/named/sujime.com.zone
28 nslookup www.sujime.com
29 service named restart
30 nslookup www.sujime.com
31 vi /var/named/sujime.com.zone
32 service named restart
33 nslookup www.sujime.com
34 vi /var/named/2.168.192.rev
35 service named restart
36 host 192.168.2.135
37 history
http://computer.howstuffworks.com/dns5.htm
http://www.howstuffworks.com/web-server.htm
domain name status code: http://whois.domaintools.com/domain-help/status-codes.php
***************************************************************************************************
********
*APACHE*
********
*yum
http://www.thegeekstuff.com/2008/09/how-to-install-or-upgrade-lamp-apache-mysql-and-php-stack-on-linux-using-yum/
log files
/var/log/httpd
config
/etc/httpd/conf/httpd.conf
*source----------->http://dan.drydog.com/apache2php.html
http://httpd.apache.org/download.cgi
-wget link location
/etc/init.d/httpd status-if running stop it
cd /
unzip
tar -xvf
cd apache version
./configure --help
./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-module=so --enable-suexec --suexec-safepath=/usr/local/bin --enable-module=cgi
make
make install
cd /
vim /usr/local/apache/conf/httpd.conf
->server root /usr/local/apache
->user nobody
->group nobody
->directory index index.html
->VirtualHost ip:80
->comment Disable UserDir
{doc root /home/userhttp://www.centos.org/modules/newbb/viewtopic.php?topic_id=24235&forum=38
server name domain.com}
save quit
servive httpd stop
/usr/local/apache/bin/apachectl start
cd document root
vim index.html
/usr/local/apache/bin/apachectl restart
dig abc.com
lynx http://domain.com
log--->/usr/local/apache/logs/error_log
conf-->/usr/local/apache/conf/httpd.conf
*******password protection************
cd /home/<user>/public_html
htpasswd -c .htpasswd <user>
new password:
retype password:
vi /etc/httpd/conf/httpd.conf
<Directory "location of public_html">
options Follow SymLinks
Allow Override All
</Directory>
vi /home/<user>/public_html/.htaccess
AuthUserFile /home/<user>/public_html/.htpasswd
AuthName "Enter Password"
AuthType Basic
require user <username>
****************redirection*******************
vi /etc/httpd/conf/httpd.conf
inside virtual host:
Redirect Permanent / http://www.google.com
******************CGI***************************
<Directory /var/www/cgi-bin>
Option +ExecCGI
</Directory>
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
********************************************************************************************
FTP
port 21
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=24235&forum=38
conf--> /etc/proftpd.conf
/etc/init.d/proftpd restart
to check connectivity to a particular site
telnet servername 21
to establish ftp connection
FTP nodeipaddress(192.168.2.135)
Name (192.168.2.135:sujatha.s):
passwd:
ftp> put filename
ftp> get filename
ftp> mput *.jpg
to access in browser
ftp://username@IP/
ftp://username:password@IP/
*****************************
to start pure ftp
/etc/init.d/pure-ftpd status
/usr/sbin/pure-config.pl
/etc/pure-ftpd/
*****************************
****************************************************************************************
MAIL
yum install exim
/etc/init.d/exim start
netstat -plan | grep :25
telnet localhost 25 ------------------check whether ESMTP exim or sendmail exim,if sendmail stop it using
/etc/init.d/sendmail stop
vim /etc/exim/exim.conf
->1.domainlist local_domain=@ : localhost : localhost.localdomain: (specify the domain to which u hv to send msgs, eg: www.sujatha.com)
->2.check local_user
transport=local_delivery
->3. in local_delivery change the file
file=/home/$local_part/MBOX
->4.local_interfaces= 0.0.0.0
restart exim
useradd username
passwd password
New Terminal::::)
telnet IP 25
helo type a string
mail from:abc@gmail.com
rcpt to:username@domain.com
data (press enter)
type ur msg
. (put . to end msg)
quit
go back to previous terminal
cd /
cd /home/username
ls
cat MBOX
*******************************************************************************************
DOVECOT
yum install dovecot
vim /etc/dovecot.conf
(we have to change only mail_location)
mail_location=mbox:~mail:INBOX=/home/%u/MBOX
TO START DOVECOT:
/etc/rc.d./init.d/dovecot start
netstat -plan | grep :110
New terminal
telnet IP 110
user username
pass password
list
retr 1(if there is 1 msg in inbox)
quit
********************************************************************************************
SQUIRREL
INSTALL Squirrelmail
yum install squirrelmail
vim /etc/httpd/conf/httpd.conf
(add Alias /sqmail/ "/usr/share/squirrelmail/")
save n quit
/usr/local/apache/bin/apachectl restart
/usr/local/apache/bin/apachectl stop
/etc/init.d/httpd start
In browser------http://IP/sqmail/
***************************************************************************************************
MYSQL
port 3306
yum install mysql*
OR
http://www.nparikh.org/unix/mysql.php
folder under database name is created under /var/lib/mysql
conf file /etc/my.cnf
error log /var/log/mysqld.log
log file /var/lib/mysql/hostname.err
#mysql
mysql>
mysql>show tables;
mysql>mysqladmin exrend-status
GRANT ALL PRIVILLEGES ON poornam.* TO bob@localhost IDENTIFIED BY 'password'
FLUSH PRIVILLEGES
(commands from slide23)
http://dev.mysql.com/doc/refman/5.1/en/adding-users.html
**********************************************************************************************
PLESK
location of each file: /etc/psa/psa.conf
passwd: /etc/psa/.psa.shadow
root dir: /usr/local/psa
version: /usr/local/psa/version
default plesk scripts: /usr/local/psa/bin
home dirsctory
/var/www/vhosts
user home dir
/var/www/vhosts/<domainname>/httpdocs
domain logs
/var/www/vhosts/<domainname>/statistics/logs
domain statistics
/var/www/vhosts/<domainname>/statistics
error pages
/var/www/vhosts/<domainname>/error_docs
backend files
apache domain specific conf files
/var/www/vhosts/<domainname>/conf/httpd.include
named records
/var/named/run-root/etc
db record---> /var/named/run-root/var/<domainname>
mysql
/var/lib/mysql
qmail
/var/qmail
mail folders
/var/qmail/mailnames/<domainnames>/<acct>/Maildir
ftp records
/etc/proftpd.conf
logfiles
location of logfiles: /etc/syslog.conf
psa: /usr/local/psa/admin/logs
ftp: /var/lrpm -e --nodepsog/xferlog
httpd: /etc/httpd/logs
httpd per log: /var/www/vhosts/<domainnames>/statistics/logs
mysql: /var/log/messages
horde: /tmp/horde.log
starting services
httpd- /etc/rc.d/init.d/httpd
ftp,smtp- /etc/rc.d/init.d/xinet.d
pop- /etc/rc.d/init.d/courier-imap
psa- /etc/rc.d/init.d/psa
qmail- /etc/rc.d/init.d/qmail
plesk vs cpanel- slide 26
*************************************************************************************************
[root@18691 ~]# find / -name 'access.conf'
/etc/security/access.conf
apache httpd
ftp proftpd
dns named
mysql mysql
mail exim
**************************************************************************************************
DNS
port 53
to check if bind is there, +versions
rpm -qa |grep bind
to delete bind
rpm -e --nodeps 'bind version'
to install bind
yum install bind
OR
rpm
http://www.howtoforge.org/bind-installation-on-centos
conf
/etc/named.conf
logfiles
/var/log/messages
nslookup www.***.com
host [IP]--------- (reverse)
history
1 passwd
2 rpm -q grep
3 rpm -q |grep bind
4 rpm -qa |grep bind
5 rpm -e --nodeps bind-utils-9.3.4-10.P1.el5_3.3
6 rpm -e --nodeps bind-9.3.4-10.P1.el5_3.3
7 rpm -e --nodeps bin-libs-9.3.4-10.P1.el5_3.3
8 rpm -e --nodeps bind-libs-9.3.4-10.P1.el5_3.3
9 yum install bind
10 ps aux |grep named
11 service named status
12 rpm -qa bind*
13 yum install bind-utils-9.2.4-2
14 yum install bind-utils
15 cat /etc/resolv.conf
16 vi /etc/resolv.conf
17 vi /etc/named.conf
18 vi /var/named/sujime.com.zone
19 vi /var/named/2.168.192.rev
20 vi /etc/named.conf
21 vi /var/named/2.168.192.rev
22 vi /etc/named.conf
23 vi /etc/hosts
24 nslookup www.sujime.com
25 dig www.sujime.com
26 vi /etc/hosts
27 vi /var/named/sujime.com.zone
28 nslookup www.sujime.com
29 service named restart
30 nslookup www.sujime.com
31 vi /var/named/sujime.com.zone
32 service named restart
33 nslookup www.sujime.com
34 vi /var/named/2.168.192.rev
35 service named restart
36 host 192.168.2.135
37 history
http://computer.howstuffworks.com/dns5.htm
http://www.howstuffworks.com/web-server.htm
domain name status code: http://whois.domaintools.com/domain-help/status-codes.php
***************************************************************************************************
********
*APACHE*
********
*yum
http://www.thegeekstuff.com/2008/09/how-to-install-or-upgrade-lamp-apache-mysql-and-php-stack-on-linux-using-yum/
log files
/var/log/httpd
config
/etc/httpd/conf/httpd.conf
*source----------->http://dan.drydog.com/apache2php.html
http://httpd.apache.org/download.cgi
-wget link location
/etc/init.d/httpd status-if running stop it
cd /
unzip
tar -xvf
cd apache version
./configure --help
./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-module=so --enable-suexec --suexec-safepath=/usr/local/bin --enable-module=cgi
make
make install
cd /
vim /usr/local/apache/conf/httpd.conf
->server root /usr/local/apache
->user nobody
->group nobody
->directory index index.html
->VirtualHost ip:80
->comment Disable UserDir
{doc root /home/userhttp://www.centos.org/modules/newbb/viewtopic.php?topic_id=24235&forum=38
server name domain.com}
save quit
servive httpd stop
/usr/local/apache/bin/apachectl start
cd document root
vim index.html
/usr/local/apache/bin/apachectl restart
dig abc.com
lynx http://domain.com
log--->/usr/local/apache/logs/error_log
conf-->/usr/local/apache/conf/httpd.conf
*******password protection************
cd /home/<user>/public_html
htpasswd -c .htpasswd <user>
new password:
retype password:
vi /etc/httpd/conf/httpd.conf
<Directory "location of public_html">
options Follow SymLinks
Allow Override All
</Directory>
vi /home/<user>/public_html/.htaccess
AuthUserFile /home/<user>/public_html/.htpasswd
AuthName "Enter Password"
AuthType Basic
require user <username>
****************redirection*******************
vi /etc/httpd/conf/httpd.conf
inside virtual host:
Redirect Permanent / http://www.google.com
******************CGI***************************
<Directory /var/www/cgi-bin>
Option +ExecCGI
</Directory>
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
********************************************************************************************
FTP
port 21
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=24235&forum=38
conf--> /etc/proftpd.conf
/etc/init.d/proftpd restart
to check connectivity to a particular site
telnet servername 21
to establish ftp connection
FTP nodeipaddress(192.168.2.135)
Name (192.168.2.135:sujatha.s):
passwd:
ftp> put filename
ftp> get filename
ftp> mput *.jpg
to access in browser
ftp://username@IP/
ftp://username:password@IP/
*****************************
to start pure ftp
/etc/init.d/pure-ftpd status
/usr/sbin/pure-config.pl
/etc/pure-ftpd/
*****************************
****************************************************************************************
yum install exim
/etc/init.d/exim start
netstat -plan | grep :25
telnet localhost 25 ------------------check whether ESMTP exim or sendmail exim,if sendmail stop it using
/etc/init.d/sendmail stop
vim /etc/exim/exim.conf
->1.domainlist local_domain=@ : localhost : localhost.localdomain: (specify the domain to which u hv to send msgs, eg: www.sujatha.com)
->2.check local_user
transport=local_delivery
->3. in local_delivery change the file
file=/home/$local_part/MBOX
->4.local_interfaces= 0.0.0.0
restart exim
useradd username
passwd password
New Terminal::::)
telnet IP 25
helo type a string
mail from:abc@gmail.com
rcpt to:username@domain.com
data (press enter)
type ur msg
. (put . to end msg)
quit
go back to previous terminal
cd /
cd /home/username
ls
cat MBOX
*******************************************************************************************
DOVECOT
yum install dovecot
vim /etc/dovecot.conf
(we have to change only mail_location)
mail_location=mbox:~mail:INBOX=/home/%u/MBOX
TO START DOVECOT:
/etc/rc.d./init.d/dovecot start
netstat -plan | grep :110
New terminal
telnet IP 110
user username
pass password
list
retr 1(if there is 1 msg in inbox)
quit
********************************************************************************************
SQUIRREL
INSTALL Squirrelmail
yum install squirrelmail
vim /etc/httpd/conf/httpd.conf
(add Alias /sqmail/ "/usr/share/squirrelmail/")
save n quit
/usr/local/apache/bin/apachectl restart
/usr/local/apache/bin/apachectl stop
/etc/init.d/httpd start
In browser------http://IP/sqmail/
***************************************************************************************************
MYSQL
port 3306
yum install mysql*
OR
http://www.nparikh.org/unix/mysql.php
folder under database name is created under /var/lib/mysql
conf file /etc/my.cnf
error log /var/log/mysqld.log
log file /var/lib/mysql/hostname.err
#mysql
mysql>
mysql>show tables;
mysql>mysqladmin exrend-status
GRANT ALL PRIVILLEGES ON poornam.* TO bob@localhost IDENTIFIED BY 'password'
FLUSH PRIVILLEGES
(commands from slide23)
http://dev.mysql.com/doc/refman/5.1/en/adding-users.html
**********************************************************************************************
PLESK
location of each file: /etc/psa/psa.conf
passwd: /etc/psa/.psa.shadow
root dir: /usr/local/psa
version: /usr/local/psa/version
default plesk scripts: /usr/local/psa/bin
home dirsctory
/var/www/vhosts
user home dir
/var/www/vhosts/<domainname>/httpdocs
domain logs
/var/www/vhosts/<domainname>/statistics/logs
domain statistics
/var/www/vhosts/<domainname>/statistics
error pages
/var/www/vhosts/<domainname>/error_docs
backend files
apache domain specific conf files
/var/www/vhosts/<domainname>/conf/httpd.include
named records
/var/named/run-root/etc
db record---> /var/named/run-root/var/<domainname>
mysql
/var/lib/mysql
qmail
/var/qmail
mail folders
/var/qmail/mailnames/<domainnames>/<acct>/Maildir
ftp records
/etc/proftpd.conf
logfiles
location of logfiles: /etc/syslog.conf
psa: /usr/local/psa/admin/logs
ftp: /var/lrpm -e --nodepsog/xferlog
httpd: /etc/httpd/logs
httpd per log: /var/www/vhosts/<domainnames>/statistics/logs
mysql: /var/log/messages
horde: /tmp/horde.log
starting services
httpd- /etc/rc.d/init.d/httpd
ftp,smtp- /etc/rc.d/init.d/xinet.d
pop- /etc/rc.d/init.d/courier-imap
psa- /etc/rc.d/init.d/psa
qmail- /etc/rc.d/init.d/qmail
plesk vs cpanel- slide 26
*************************************************************************************************
Subscribe to:
Comments (Atom)