Creating user and changing owner of folder (here is example folder is recipease) cent os
1)First we should connect via sftp to the server
Then we should create a folder call logs in var/www/vhost and inside logs folder we should create two files called error_log and access_log
2)Ssh connection:# ssh root@31.222.136.20
3)then u enter password: #xyz
4)add user:#useradd recipease
5)Changing password for user recipease:#passwd recipease
6)New UNIX password:# xyz
7)(this is change of ownership)#chown -R recipease /var/www/vhosts/recipease
8) #ls -l /var/www/vhosts/recipease
9)To change ip address to host name:#sudo gedit /etc/hosts
10)To restart the server:-#zendctl.sh restart
GIVING PERMISSION TO THE FOLDER AND FILE:
1)This is used to give the permission to the folder:-
a)#chmod -R a+w /dir/
INSTALLING SEND MAIL IN THE SERVER :
- connect to the server via SSH.via terminal
- enter the send mail installation CMD as show :-
#yum install sendmail
Get file from one domain name to other:
wget http://thewowcompany.com/blocks.tar.bz2
To Unzip:
#tar jxf acia.tar.bz2 (this is for tar.bz2 file )
#tar zxvf filename.tar.gz (this is for tar.gz file )
To Rename:
#mv source destination
copy files from server to server :
#wget http://pompeycarecouncil.co.uk/pompeycarecouncil.tar.bz2
create tar file in server :
1)connect to the server of that URL via SSH
2)go to the pertucular dir (Eg. cd /home/downhamw/public_html)
3)and zip the file there:# tar -czvf p.tar.gz *
to see all the user name added in server:
1)#cat /etc/passwd
No comments:
Post a Comment