& Nbsp; linux version: ubuntu12.04 & nbsp; today, phpmysql and apache are configured. & nbsp; mainly source code configuration, & nbsp; apache is mainly version 2.4.2. php is version 5.3.11. mysql is version 5.1.62. I tried it several times a few days ago, and a software source conflict occurs. I put two sources in the same sourc linux version: ubuntu 12.04
The configuration of php mysql and apache is completed today.
Mainly source code configuration,
Apache version 2.4.2
Php versions 5.3.11
Mysql versions 5.1.62
I tried it several times a few days ago and there was a software source conflict. I put two sources in the same source, and after modification, there was no major problem with the installation.
The general situation is as follows.
The process is as follows:
Apache configuration:
./Configure -- prefix =/usr/local/apache/-- with-libxml2 -- enable-modules
= Most -- enable-MoD-shared = all
See what is written in this apache classic instance.
Add the latest version of libxml2 to ubuntu, and then everything is OK.
Make
Make install
Enter 127.0.0.1 to see it's work!
Mysql configuration:
Cd mysql
Sudo./configure-prefix =/usr/local/mysql-with-mysqld-user = mysql
-With-extra-charsets = all-enable-thread-safe-client
Focus on the./configure configuration, and be careful with the prompts.
I spent the./configure in the middle, and then it went smoothly.
Make
Make install
Because you want to copy the configuration file to the etc directory
Sudo cp/mypath/mysql/etc/my. cnf
[Mysqld] # set the default value to an INNODB table and support transactions: default-storage-engine = INNODB
# Set the default character set UTF-8:
Character-set-server = utf8
Collation-server = utf8_general_ci
Default-character-set = utf8
# Mysql startup user
User = mysql
[Client]
Default-character-set = utf8
To enable normal users to start mysql, grant the following permissions to the mysql Directory:
Sudo chown-R mysql: mysql/usr/local/mysql
Then, switch to the mysql User and find that mysql has started
Ps aux | grep mysqld
If there is/usr/local/mysql/bin /... Mysql is started. mysql configuration is OK.
In
Php configuration:
The most complicated configuration is php. The key is that there are a lot of modules.
Configuration and installation take a long time. sometimes I still think it is a dead end?
./Configure -- prefix =/usr/local/php \
-- With-apxs2 =/usr/local/apache/bin/apxs \
-- With-mysql-dir =/usr/local/mysql \
-- With-mysql-sock =/tmp/mysql. sock \
-- With-pdo-mysql =/usr/local/mysql \
-- With-mysqli =/usr/local/mysql/bin/mysql_config \
-- Enable-mod-charset \
-- Enable-bcmath \
With-bz2 \
-- Enable-calendar \
-- With-curl \
-- With-curlwrappers \
-- Enable-exif \
-- Enable-ftp \
-- With-gdbm \
-- With-gd = shared \
-- With-ttf \
-- Enable-gd-native-ttf \
-- With-gettext \
-- With-gmp \
-- Enable-mbstring = all \
-- Enable-zend-multibyte \
-- With-ming = shared \
Enable-sqlite-utf8 \
12 Next page