Linux under configuration php Apache MySQL

Source: Internet
Author: User

An Apache part

Http://www.cnblogs.com/bluewelkin/p/3805107.html
Inside is to correct the original text of some small errors, you can install the normal

1. su command
2, Installation apr-1.3.5.tar.gz
# tar ZXVF apr-1.3.5.tar.gz

# CD apr-1.3.5

#./configure
Error occurred
No acceptable C compiler found in $PATH
---------------------------------------------
Solution, did not follow the GCC suite
Switch to root permissions: su
After entering the password is the root permission, and then ensure that the computer can be networked, enter:
Yum Install GCC

#make

#make Install
3.
Installing apr-util-1.3.7.tar.gz
# tar ZXVF apr-util-1.3.7.tar.gz

# CD apr-util-1.3.7

# . /configure--WITH-APR=/USR/LOCAL/APR
./configure--WITH-APR=/USR/LOCAL/APR (This is after the correction)

# make

# make Install
4
Installing httpd-2.2.11.tar.gz
# tar ZXVF httpd-2.2.11.tar.gz

#./configure--prefix=/usr/local/apache2--enable-dav--enable-modules=so--enable-maintainer-mode--enable-rewrite

--with-apr=/usr/local/apr/bin/apr-1-config--with-apr-util=/usr/local/apr/bin/apu-1-config

"BASH:./configure: No file or directory

--------------------------------------------------

Solution: chmod a+x Configure Modify the permissions on this file to "


# make

# make Install

To start the Apache service:

#/usr/local/apache2/bin/apachectl Start
Apache Boot time
Error Httpd:apr_sockaddr_info_get () failed for
Httpd:apr_sockaddr_info_get () failed for Vm_74_204_centos
Httpd:could not reliably determine the server ' s fully qualified domain name, using 127.0.0.1 for ServerName
Solution Solutions
--------------------------------------------
The conf files in the Apache installation directory are modified httpd.conf as follows
(1) ServerName localhost:80

or fill in the/etc/hosts with your host name Bogon, as follows:
(2) 127.0.0.1 Bogon
---------------------------------------------
and edit as follows:
Edit/usr/local/apache2/conf/httpd.conf File
Found: AddType application/x-compress. Z AddType application/x-gzip. gz. tgz
Add in the following:
AddType application/x-httpd-php. PHP (make Apcche support PHP) A
Ddtype Application/x-httpd-php-source. php5
Found: <ifmodule dir_module> directoryindex index.html </IfModule>
Added: <ifmodule dir_module> directoryindex index.html index.php </IfModule>
Found: #servername www.example.com:80
Modified to: ServerName 127.0.0.1:80 or ServerName localhost:80
Remember to remove the "#" from the front.

View http://localhost/in a browser and get it works!

Indicates that Apache has been configured successfully.

---------------------------------------------

Reference article: http://www.cnblogs.com/lufangtao/archive/2012/12/30/2839679.html

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.