Mount the mcrypt module in PHP5 in Ubuntu7

Source: Internet
Author: User
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.

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.