Beruflich Dokumente
Kultur Dokumente
[1].Install httpd.
[root@www ~]# yum -y install httpd
# remove welcome page
[2].Configure httpd.
2. Install PHP
[root@www ~]# yum -y install php php-mbstring php-pear
[root@www ~]# vi /etc/httpd/conf/httpd.conf
# line 402: add file name that it can access only with directory's name
DirectoryIndex index.html index.php
[root@www ~]# vi /etc/php.ini
# line 946: set you timezone
date.timezone = "Asia Kolkata"
[root@www ~]# /etc/rc.d/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Create a PHP test page and access to it with a web browser on Client to make sure it
works normally.
[ OK ]
Starting mysqld: [ OK ]
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
# Enter
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Cleaning up...
All done! If you've completed all of the above steps, your MySQL
installation should now be secure.
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
Bye
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.