IT Lecturer: Ng nh Cng
vi /etc/sysconfig/network
Change the host that is associated to your main IPaddress for your server, this is for internal networking cat /etc/hosts
3. Run Hostname
The 'hostname' command will let you change the hostname on the server that the commandline remembers, but it will not actively update all programs that are running under the old hostname.
4. Restart Networking At this point all the necessary changes that needed to be made have been made, you will want to restart networking on your server to make sure that changes will be persistent on reboot: service network restart or /etc/init.d/network restart
Create the system startup links for MySQL and start the MySQL server:
Step 2: Installing Apache2 Apache2 is available as a CentOS package, therefore w can install it: Configure the system:
Start Apache:
Step 4: Testing PHP5 The document root of the default web site is /var/www/htm Create a php file that displays lots of useful details abou PHP installation:
Pick the ones you need and install them like this: