Professional Documents
Culture Documents
4
Web server CentOS 5.4
Linux web server CentOS 5.4 Web
Server web server
1. Linux web server CentOS (V.5.4)
virtual server server
virtual server Vcenter server
virtual virtual ( image iso )
1. Create virtual machine ( server )
1.1 VMware VSphere Client connect VCenter Server
Host manage Virtual machine
1.5 storage
1.6
**
1.15 menu connect/disconnect cd/dvd device
CentOS 5.4 ( iso )
1.16
2. CentOS 5.4
- server
Linux CentOS 5.4 enter
graphic mode
2.2
2.3 Keyboard US OK
2.4
? Yes
Remove all partitions on selected drives and create default layout.
Partition Linux CentOS
Remove linux partitions on selected drives and create default layout.
2.6
? Yes
package
2.15 Welcome
2.18 Kdump
Forward
3.
run script php
# yum install php-common php-cli php-devel php-mysql php-gd php-imap phpmbstring php-mhash php-pear php-xml php-xmlrpc php-mcrypt
Yes
Atomic Repository
#yum update php
-> enable
phpMyAdmin version
http://www.phpmyadmin.net/home_page/downloads.php
- zip file
- download folder phpMyAdmin
- phpMyAdmin http://203.158.4.124/phpmyAdmin (
case sensitive)
Web Server
1. ftp account user ftp web hosting
1.2 System -> Users and Groups -> Create a new user
upload file
3. firewall port 22
webmin networking -> linux firewall
firewall
* browser http://ccsweb.sut.ac.th/service
5.
5.1 enable disk quota manage webmin system ->
disk and menu file system root file system
disk quota
1. blocks 1 block 1 kilo bytes
2. inodes 1 inode
1. soft (grace)
2. hard
account permission
6.5 s
6.6 phpMyAdmin
phpMyAdmin mysql
http://ccsweb.sut.ac.th/phpMyAdmin
7. virtual host
webmin connection
Login webmin Web hosting IP
http://x.x.x.x:10000 login
- server -> Mysql Database Server
Mysql connection
database 2012db
table record database 2012db
4 process-cpu-memory
# top -> process
cpu- memory
top - 09:13:20 up 187 days, 8:36,1 user, load average: 0.43, 0.66, 0.61
09:13:20:
server
up 187 days : uptime ( boot OS )
1 user: user login shell ( login + ssh terminal )
load average: 0.43, 0.66, 0.61: "" 1 , 5 15
2: process
Tasks: 180 total, 1 running, 179 sleeping, 0 stopped, 0 zombie
Tasks: 180 total : process
1 running : process CPU " "
179 sleeping: process / CPU
0 stopped : process ""
0 zombie: process clear
process hardware (
3: CPU cpu core cpu
Cpu(s): 27.9%us, 7.2%sy, 0.2%ni, 57.4%id, 6.5%wa, 0.1%hi, 0.8%si, 0.0%st
CPU
column
us => user :: CPU
sy => system :: kernel kernel
hardware
ni => nice :: (priority) process
priority cpu
id => idle :: cpu
wa => iowait :: ' ' hardware harddisk ram
hi=> hardware irq (or) % CPU time spent servicing/handling hardware
interrupts
si=> software irq (or) % CPU time spent servicing/handling software
interrupts
st=> steal time - - % CPU time in involuntary wait by virtual cpu while
hypervisor is servicing another processor
4-5:
Mem: 8310380k total, 4970936k used, 3339444k free, 217448k buffers
Swap: 6225904k total, 52816k used, 6173088k free, 3001860k cached
Mem: 8310380k total: RAM OS (
)
4970936k used: ""
3339444k free: ( )
217448k buffers: buffer / harddisk CPU
Swap: 6225904k total: swap space harddisk
ram ( )
free + cached cache
process
process ( )
CPU process ()
PID : process id
USER : user process
PR : priority process nice
NI : nice process ( )
VIRT : virtual image ( process library)
RES / SHR : private ( app) / shared (ram )
S : process
%CPU : CPU ( core ) cpu 4 core + process 4 thread
thread cpu 400
%MEM : ram %
TIME+ : "" CPU process ( process )
COMMAND : process
5 hard disk
#df k #df h ->
6 . permission site
permission
Permission folder 755 files 644
Permission 755
7.
record table
script phpMyAdmin
database
database
record
table truncate (
backup ) s
table
s
table
monitoring back
up backup - source code - back up
8. google webmaster tool
google webmaster tool
search engine Google
www.google.com/webmasters/tools
login gmail account
8.3 sitemap.xml
Sitemap.xml website index
page page sitemap google
sitemap
sitemap http://www.xml-sitemaps.com free website
sitemap 500 page
url
start
Download sitemap
current status
- crawl error DNS
server
- search queries google internet
keyword search search
- sitemap indexfile
tool
ranking tool
feature
hack , Phishing, google