Troubleshooting after installing the lamp Environment

Source: Internet
Author: User

After Apache is installed in Ubuntu and PHP, how to access the project is an internal error and cannot be enabled

There is really no way to think of Apache to view logs:

/Usr/local/apache2/logs # tail-F error_log

Only:

[Tue Aug 13 10:18:49 2013] [Error] [client 127.0.0.1] PHP fatal error: Class 'redis 'not found in/usr/local/webdata/passport/lib/model/redismodel. class. PHP on line 16

So I went to install the redis extension of PHP and first looked for phpredis:

Https://github.com/owlient/phpredis

After download:

Phpize

./Configure

Make clean

Make

Make install

Then restart Apache:

/Usr/local/apache2/bin #./httpd-K stop

/Usr/local/apache2/bin #./httpd-K start

View phpinfo ()

If:

Redis
Redis support Enabled
Redis version 2.2.3

The redis extension is successfully installed!

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.