Install LAMP at rpm in RHEL4

Source: Internet
Author: User
Tags mx record
1. Install the rpmdb software package. Cd/media/cdrom/RedHat/RPMSrpm-ivhrpmdb (table) 2: Install the httpd package. Rpm-ivh -- aid -- forcehttpd * 3: Install the php support package. Rpm-ivh -- aid -- force * php * 4: Install the mysql package. Rpm-ivh -- aid -- forcemysql * 5: Set mysql: cd 1: Install the rpmdb package.
Cd/media/cdrom/RedHat/RPMS
Rpm-ivh rpmdb (table)
Ii. Install the httpd software package.
Rpm-ivh -- aid -- force httpd *
3. Install the php support software package.
Rpm-ivh -- aid -- force * php *
4. Install the mysql software package.
Rpm-ivh -- aid -- force mysql *
V. Set mysql:
Cd/usr/bin
Ls mysql *
Mysql_install_db
Mysqld_safe -- user = root &
Mysqladmin-u root password nihao
Mysql-u root-p (then enter the password you just set)
Mysql> create database phpbb;
Mysql> exit (exit mysql)
6. Download the phpbb package from the Internet. In the linux/user directory.
Useradd user
Smbpasswd-a user (and then enter the password)
Service smb start
Go to linux in WINDOWS and upload phpbb to/user.
7. Put phpbb-related content in/var/www/html/luntan.
Mkdir/var/www/html/luntan
Cd/home/user/php (table)
Mv./*/var/www/html/luntan
8. Edit the configuration file to support index. php.
Vi/etc/httpd/conf/httpd. conf
Find the DirectoryIndex row and add index. php at the end
9. Restart the httpd service.
Service httpd restart
10: You can access the service below the customer:
Http: // ip/luntan
Select New Installation
Then set the permission:
Cd/var/www/html/luntan
Chmod-R 777 cache
Chmod-R 777 files
Chmod-R 777 store
Chmod-R 777 config. php
Chmod-r 777 images
Then redetect
11: On the page for installing mysql
Database server address write: localhost
Write phpbb to database name
User: root
Password: nihao
You can set the administrator password.
12: After the installation is complete, you need to rename or delete the install directory under/var/www/html/luntan.
Mv install ins
Or you cannot register a new user.
13: this service requires DNS support and requires an MX record. We recommend that you write the MX record in the line next to the NS record.
This is successful!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.