In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Redhat9.0 Apache2+Php5.0+Mysql4.0 configuration (transfer) [@ more@] We do not use the above services that come with the system. Before installation, uninstall the programs that come with the system and use rpm-e name to remove them.
Software source:
Http://apache.linuxforum.net/dist/httpd/httpd-2.0.50.tar.gz
Http://cn.php.net/get/php-5.0.0.tar.gz/from/this/mirror
Http://dev.mysql.com/get/Downloa... Ysql.ihostunit.com/
Http://www2.tw.freebsd.org/UNIX/gnome/sources/libxml2/2.6
I store them in the / home/server directory
Installation steps:
1. Mysql
# groupadd mysql
# useradd-g mysql mysql
# cd / usr/local
# tar-zxvf / home/server/MySQL*.tar.gz
# cd MySQl* / bin
#. / mysqladmin-u root password' password'// change password to password
# cp support-files/mysql.server / etc/rc.d/init.d/mysqld
# chkconfig-add mysqld
Use the ntsysv setting to make mysql run automatically every time it starts
Next, start mysql:
# / etc/rc.d/init.d/mysqld start
If there is an error that the file mysql.sock cannot be opened, you can change the permissions of the file path.
2. Apache
# cd / usr/local
# tar-zxvf / home/server/httpd-2.0.50.tar.gz
#. / configure-enable-so-enable-rewrite
# make
# make install
After the compilation and installation is complete, start apache
# cd / usr/local/apache2/bin
#. / apachectl start
This starts the apache server
3. Libxml2
The version of libxml2 that comes with the system is 2.5.4, and an error is reported in the process of configuration, so I downloaded an updated 2.6.8, let's install it next
# cd / usr/local
# tar-zxvf libxml2*.tar.gz
# cd libxml*
#. / configure
# make
# make install
After the compilation and installation is successful,
4 PHP
# cd / usr/local
# tar-zxvf / home/server/php-5.0.0.tar.gz
# cd php*
#. / configure-with-apxs2=/usr/local/apache2/bin/apxs-with-mysql=/usr/local/mysql
# make
# make install
After installation, modify the configuration file httpd.conf of apache
Add the following statement in the appropriate location:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php3
Just restart apache.
Test PHP
Write an info.php file as follows:
Echo phpinfo ()
? >
Store it in the document path of apache and enter:
Http://127.0.0.1/info.php
You can see the configuration information of php. If you report an error, check the permission settings of the file first, and if not, check the log.
I have also had a lot of problems in the configuration process, but it is all about file permissions. As long as you pay attention to your permission to operate the file, you will understand it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.