linux apache server

9
Linux : Apache Quick Guide for developers

Upload: khoa-quach

Post on 03-Sep-2014

277 views

Category:

Technology


1 download

DESCRIPTION

Presentation on basic commands and good to know tools for developers on Linux, Apache and CentOS

TRANSCRIPT

Page 1: Linux apache server

Linux : ApacheQuick Guide for developers

Page 2: Linux apache server

Add/remove a package

•What is yum ?• Yum is a command to manage packages on a Linux Operating System.

It will search for targeted repository and itsdependencies. This command only works for Red Hat Distribution ( CentOs / Fedora)

• Yum install <package>

• Yum remove <package>

• Yum update <package>

Page 3: Linux apache server

File and directory management

• Pwd = Current location

• Cd = Change directory

• Mkdir = Create a directory

• Touch = Create a file

• Cp = Copy a file

• Mv = Move a file

• Ls = List

Page 4: Linux apache server

Text editor

• Vi (pre-installed)

• Vim

• Nano

• Gedit

Page 5: Linux apache server

Display the content

• Tail => show the bottom of a file

• Head => show the top of a file

• Cat => show an entire file

• More => print an entire file

Page 6: Linux apache server

Good commands to know

• Ifconfig => Network configuration

• Df –h => Disk Free

• Du –h => Disk Use

• Top (pre-installed) or htop => Process viewer

• Updatedb => Update indexing

• Locate => Search a file

• Find => Search a file

Page 7: Linux apache server

How to get the proper syntax of a command ?

• <command> --help

• Man <command>

Page 8: Linux apache server

Apache management

• /var/www/html/ => Default Directory for web site

• /etc/httpd/httpd.conf => Apache’s configuration file

• /etc/httpd/conf.d/phpMyAdmin.conf

• /etc/php.ini => PHP’s configuration file

• /etc/init.d/httpd start | stop | restart

• Service httpd start | stop | restart

• /var/log/httpd/error_log

• /var/log/httpd/access_log

Page 9: Linux apache server

How to access your Apache server ?

• Ssh root@IP_Address

• Putty / MobaXtern / MRemote