Configure the linux (FC6) apachemysqlperl Development Platform

Source: Internet
Author: User
Configure the linux (FC6) apachemysqlperl development platform-Linux Enterprise Application-Linux server application information. The following is a detailed description. LAMP (linux + apache + mysql + perl/python/php) is a common configuration of open-source web servers. Due to the needs of project testing, a similar environment is configured today.

First install oracore6 for linux, download the DVDiso of FC6 from the Internet, and decide to install Fedora Core 6 from the hard disk.

First, use PQMagic to create 15 GB space at the end of the hard disk, and then perform the following steps (the following section is copied)

1. Install the dwarf dos toolkit 4.2 (use wingrub, of course. This feature is more and more convenient. The latest version on the Internet seems to be 5.3)
2. Add the following at the end of C: \ boot \ grub \ menu. lst:
###################################
Title Install Linux FC6
Kernel (hd0, 0)/isolinux/vmlinuz
Initrd (hd0, 0)/isolinux/initrd. img
###################################
3, open the FC-6-i386-DVD.iso with the Virtual Drive, copy the isolinux folder to C: disk root directory.
4, put the FC-6-i386-DVD.iso to the non-installation target FAT32 drive letter root directory.
5. restart the computer, select my dostool, and then Install Linux FC6. select hard disk and select the corresponding partition.

FC6 comes with the installation packages and versions of mysql, apache, and perl, which are relatively new. You only need to select them when installing FC6.

The motherboard is onda N61GT (C51G, GF6100) and has no built-in driver. The default resolution is 800x600, which is unbearable. Install the nvidia graphics driver, go to the NVIDIA official website to download the NVIDIA-Linux-x86-1.0-9629-pkg1.run; into the system after modification/etc/inittab, the startup mode to 3 (multi-user command line mode), restart, run the sh NVIDIA-Linux-x86-1.0-9629-pkg1.run to install the driver, install startx, and then change the inittab back to it.


The command to start apache is apachectl-k start/stop/restart.

The htdocs and cgi-bin directories of apache are located under/var/www.

The log and conf folders are in/etc/httpd.


To download other modules of perl, you can enter the perl-MCPAN-e shell (or directly run cpan). The first time you use it, there will be a configuration process. Just press Enter, enter the cpan command line and enter commands such as "install DBD: Mysql" to install the corresponding module.


Because it is in the education network, CPAN images outside China cannot be used. To set the CPAN image address, you can modify the Config. urllist in pm; on my machine, the file address is/usr/lib/perl5/5.8.8/CPAN/Config. pm. If you do not have this file, you can test it on other machines.


Mysql I did not run with the built-in version (the problem has been resolved, directly execute service mysqld start), and finally had to get a binary release: mysql-max-5.0.27-linux-i686.tar.gz

Installation Method I found online

Install the mysql binary code distribution package:
1. Go to mysql's home and download mysql.commysql-max-5.0.27-linux-i686.tar.gz
2. Copy to/usr/local
3. Add a mysql user group:
Shell> groupadd mysql
4. Add a mysql user and add it to the mysql user group.
Shell> useradd-g mysql
5. shell> cd/usr/local
6. decompress and remove the package:
Tar zxvf mysql-max-5.0.27-linux-i686.tar.gz
7. Create a connection:
Shell> ln-s FULL-PATH-TO-MYSQL-VERSION-OS mysql
8. shell> cd mysql
9. Install
Shell> scripts/mysql_install_db -- user = mysql
10. Assign permissions.
Shell> chown-R root.
Shell> chown-R mysql data
Shell> chgrp-R mysql.
11. Start the mysqld process:
Shell> bin/mysqld_safe -- user = mysql &
12. If the above command stops immediately, you must have a problem with your hostname settings: Check the host. err file to troubleshoot the problem.

(This problem occurs during installation, but the host cannot be found. the err file cannot be started by running mysqld directly with the mysql user. Later, it was found that as long as the execution is connected to the root directory. /configure, the service starts)
13. Add a password:
./Bin/mysqladmin-u root password 'new-password'
./Bin/mysqladmin-u root-h hostname password 'new-password'

After the server is started, log on to the server./bin/mysql-h localhost-u root-p

If you log on with the built-in mysql Command, the following error occurs: Can't connect to local MySQL server through socket/var/lib/mysql. sock.

After checking some information, we made a connection to ln-s/tmp/mysql. sock/var/lib/mysql. sock to solve the problem.
Related Article

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.