Apache2mysqlphp is installed on Ubuntu. It can be said that it is easy, but for a person I don't know about php, it is difficult to go around a lot in the middle. I will write down the main things that have taken a long time, other issues are minor issues. Let's just put it bluntly. When we configure php, a problem occurs. The project needs to load an mcrypt module, which is probably a tool like encryption .! OK. Ubuntu's install algorithm ^ apt-get
On Ubuntu, apache2 mysql php is installed. Easy to say
However, it is difficult for me to understand php.
There are a lot of steps in the middle, and the main things are long-lived. Remember, the others are all minor problems.
Let's go
An error occurred while configuring php.
The project needs to load an mcrypt module, which is probably a tool like encryption .!
OK. Ubuntu's install algorithm ^
Apt-get install php5-mcrypt
Error! -The php5-mcrypt package cannot be found.
Alas, download and install it yourself.
Remember three files here. Don't look at it as long as an mcrypt. so file, you have to install three things. Khan --!
Libmcrypt-2.5.8.tar.gz
Mhash-0.9.9.tar.gz
Mcrypt-2.6.8.tar.gz
In this case, the link will not be found. Tired. One by one on the Internet.
Tar zxvf libmcrypt-2.5.8.tar.gz // Extract
Cd libmcrypt-2.5.8 // in the directory
./Configure // compile
At this time, an error occurred. ./Configure won't be used.
Then solve the problem. It is a basic skill to change the principle of "install ".
Apt-get install gcc
Apt-get install g ++
Apt-get install make
In this way, you can install
The installation starts below. The three files are the same process.
./Configure
Make
Make install
The last step is mcrypt-2.6.8.tar.gz.
After the installation is complete, libs will have a mcrypt. so which is what it wants!
Copy it to/usr/lib/php5/20060613 + lfs/. (How do I feel like it is automatic, how Can I copy it? & * ^ & * % ^ &)
Finally, add a line in php. ini (mandatory, not all white)
Extension = mcrypt. so
The name of mcrypt.soshould be the same as that created by mcrypt-2.6.8.tar.gz.
Save the file, restart apache, And then refresh the page. mcrypt verifies that the work after OK is done.