We need all of you to be careful and patient. These will be appreciated during the installation process. The wrong place everybody criticize.
This example is under Red Hat 9
php5.2.1
apache2.2.4
MySQL5.0.37
phpmyadmin2.10.0.2
ZendOptimizer-3.2.6
libxml2-2.6.11
The installation and configuration
Which libxml2-2.6.11 i downloaded under the/usr/directory
The others are downloaded in the/usr/down directory. These directories are used during the installation process below.
For PHP environment configuration under windows, refer to Http://www.jb51.net/article/8569.htm
Installation Prerequisites
Installing GCC
Linux and C are inherently inseparable, the main part of the Linux kernel is written in C, and many other Linux service software is written in C,
If the Mssql,apache is written in C. If the GCC compiler is not installed, the software is not installed at all.
There is a similar message stating that GCC is available, if you do not have it, please install it with the installation CD first.
Thread model:posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
1. Click Red Hat menu > System settings > Add/Remove Apps
2. If GCC is not installed, the front of the development tool is not checked. Tick the developer tool. Click Update in the lower right corner.
You will be prompted to insert the Linux system disk during installation. Insert system tray to complete installation
Installing LIBXML2
1. Click Red Hat menu > System Tools > Terminal
2. Enter Command cd/usr/carriage return
Enter the directory where LIBXML2 source code is located
3. Execution of TAR-ZXVF libxml2-2.6.11.tar.gz
Decompression LIBXML2 source code.
4. The system automatically lists each decompression item.
Tip: You can perform clear command clear screen after decompression is complete
5. Execute CD libxml2-2.6.11
Enter the extracted directory.
6. Execution./configure
7. Execute make
Compile the source code.
Some source code compile time to be quite quite. We must be patient.
8. Execute make Install
Install LIBXML2.
More articles PHP enthusiasts station http://www.phpfans.net
install MySQL
1. Executive Cd/usr/down
Go to the directory where the MySQL source code resides.
Executive Ls-l
List of files in the current directory can be listed.
2. Execute Groupadd MySQL
3. Execute useradd-g mysql MySQL
4. Execution of TAR-ZXVF mysql-5.0.37.tar.gz
Unzip the MySQL source code.
5. Execute CD mysql-5.0.37
Enter the newly extracted directory.
6. Implementation./configure--prefix=/server/mysql
Where the prefix parameter indicates the MySQL installation directory. We installed it in the/server/mysql directory.
7. Execute make
8. Execute make Install
9. Execution of/server/mysql/bin/mysql_install_db--user=mysql
10. Execute CP SUPPORT-FILES/MY-MEDIUM.CNF/ETC/MY.CNF
Copy the MySQL configuration document to the/etc/directory and save as MY.CNF
11. Execute CP Support-files/mysql.server/etc/rc.d/init.d/mysqld
12. Execution of chmod 700/etc/rc.d/init.d/mysqld
13. Execute Chkconfig--add mysqld
14. Executive Cd/server/mysql
Go to the MySQL installation directory.
and execute Chown-r root.
Note: Do not miss the "." In the back.
15. Execute Chown-r mysql var
16. Execute Chgrp-r MySQL.
Don't miss out on ".".
17. Executive/server/mysql/bin/mysqld_safe--user=mysql &
Start MySQL.
18. When the mysqld ended appears. Click Enter. Back to the command line
19. Execution of Bin/mysql-u Root-p
Log in to MySQL.
20. You will be prompted for a password. The default password is empty because we did not set the password. Click Enter directly
21. The following screen shows that MySQL is installed and ready to use.
22. Let's test MySQL now.
Enter Selcet version ();
View the MySQL version
NOTE: The SQL statement is to be ";" End
More articles PHP enthusiasts station http://www.phpfans.net
23. As you can see, it's really the mysql-5.0.37 we just installed.
24. Execution of quit;
Exit the MySQL command line.
Installing Apache
1. Executive Cd/usr/down
Return to the directory where Apache source code resides.
2. Execution of TAR-ZXVF httpd-2.2.4.tar.gz
3. Execute CD httpd-2.2.4
4. Implementation./configure--prefix=/server/apache--enable-so
5. Execute make
6. Execute make Install
7. Execute/server/apache/bin/apachectl Start
Launch Apache.
8. Open http://localhost/or http://127.0.0.1 in the browser
If the following interface appears, Apache is already installed.
Install PHP
1. Executive Cd/usr/down
Back to the directory where PHP source code.
2. Execution of TAR-ZXVF php-5.2.1.tar.gz
3. Execute CD php-5.2.1
4. Implementation./configure--prefix=/server/php--with-mysql=/server/mysql--with-apxs2=/server/apache/bin/apxs
5. Execute make
6. Execute make Install
7. Execute CP Php.ini-dist/usr/local/lib/php.ini
More articles PHP enthusiasts station http://www.phpfans.net
Configure Apache associated PHP
The hidden content of this post needs to be replied to be able to browse
More articles PHP enthusiasts station http://www.phpfans.net
11. Click the ESC key. Back to the VI command line mode.
Input: Wq then click Enter
Where: Wq is the command to save the exit
Installing Zendoptimizer
1. Executive Cd/usr/down
Go back to the directory where the Zendoptimizer source.
2. Execution of TAR-ZXVF zendoptimizer-3.2.6-linux-glibc21-i386.tar.gz
3. Execute CD zendoptimizer-3.2.6-linux-glibc21-i386
4. Execution./install
5. Enter the following Zendoptimizer installation screen. Click Enter
6. Click Enter
7. Click on Yes to enter
8. Fill in the Zendoptimizer installation path here. We will install it in/server/zendoptimizer
Click the Tab key after filling in the/server/zendoptimizer. Click Enter on OK
9. Choose the location of the php.ini. We have copied php.ini to/usr/local/lib in our previous installation.
So there's no need to change it here. Click Enter on OK
More articles PHP enthusiasts station http://www.phpfans.net
10. We are using Apache. Click Enter on Yes
11. Fill in the location of the apachectl here. We're in/server/apache/bin/apachectl.
After entering/server/apache/bin/apachectl, click the TAB key to move the cursor to OK. Then click Enter
12. Click Enter
13. Click Enter
14. Click Enter to restart Apache
15. Click Enter to complete the installation of Zendoptimizer
Environmental Testing
After the installation is complete. Let's test if the environment you configured earlier is correct.
1. Restart Apache again. Execute/server/apache/bin/apachectl-k Restart
Although Apache has been restarted while installing Zendoptimizer, we still need to perform the following command to restart Apache
To ensure that the configuration modified by Apache has been newly loaded. Please do not miss this step.
2. Executive vi/server/apache/htdocs/phpinfo.php
Create a phpinfo.php file in the root directory of the Web site.
Where/server/apache/htdocs/is the root directory of our website. We just need to put the page here.
More articles PHP enthusiasts station http://www.phpfans.net
3. Click the I key to enter the insert editing mode.
4. Enter
Phpinfo ();
?>
5. Click the ESC key to return to the VI command line mode. Input: Wq Enter
The system will save the phpinfo.php file and exit the VI editor
6. Open http://localhost/phpinfo.php in the browser
If the following interface appears, PHP is already installed. If a download dialog box appears, look down, there is a workaround
If this is the interface. Please confirm that the first step in environmental testing is performed: Execute/server/apache/bin/apachectl-k restart.
If not, it is recommended that you restart Linux again. Execute/server/apache/bin/apachectl start to start Apache. It should be all right.
7. Test if PHP is associated with MySQL.
Executive vi/server/apache/htdocs/test.php
This step has been forgotten. It's all done.
8. Click the I key to enter the insert edit mode. and enter
Phpfans http://www.phpfans.net
$conn = mysql_connect ("localhost", "root", "");
if ($conn) echo "
Succeed
";
else echo "
Fail
":
?>
9. Click Esc to return to the VI command line mode. and enter: Wq and then click Enter
10. Open the http://localhost/test.php in the browser
The following interface shows that PHP has been successfully associated with MySQL.
Installing phpMyAdmin
1. Executive Cd/usr/down
Go back to the directory where the phpMyAdmin source.
2. Execution of TAR-ZXVF phpmyadmin-2.10.0.2-all-languages.tar.gz
Unzip the phpMyAdmin.
3. Execute Cp-r phpmyadmin-2.10.0.2-all-languages//server/apache/htdocs/phpmyadmin/
Cut the phpMyAdmin to the root of the Web site.
4. Open the http://localhost/phpmyadmin/in the browser
The following interface shows that phpMyAdmin is installed as a
PhpMyAdmin the specific function, please slowly familiar, here no longer repeat.
http://www.bkjia.com/PHPjc/319573.html www.bkjia.com true http://www.bkjia.com/PHPjc/319573.html techarticle We need all of you to be careful and patient. These will be appreciated during the installation process. The wrong place everyone is criticizing. This example is in Red Hat 9 php5.2.1 apache2.2.4 MySQL5.0.37 phpmyadmin2 ...