Install authpuppy in php5 + apache2 + mysql Environment

Source: Internet
Author: User

Install authpuppy in php5 + apache2 + mysql Environment

Environment used: php5 and apache2 servers

First, check the environment: check_configuration.php. Run this file to ensure that all required conditions are met before authpuppy is installed.

Possible problems:

Solution:

1. PDO has some drivers installed: FAILED

If the database you are using is mysql, install; sudo apt-get install php5-mysql

2. XSL module is installed: FAILED

Please install: sudo apt-get install php5-xsl

3. a PHP accelerator is installed: FAILED

Please install; sudo apt-get install php5-apc

4. php. ini has short_open_tag set to off: FAILED

Find php. ini in your installation directory and set short_open_tar to off.

Get source code:

Get the latest code: source code, decompress the file to the web server directory.

Tar xvf authpuppy- - _ . Tgz

Sudo mv authpuppy // var/www

Configure the apache server:

The configuration of the apache2 server in this project is similar to that of any other symfony project. For more details, see symfony web server configuration.

Set directory permissions:

Some directories must have the write permission to be used by applications. On the Development server, you can do this:

Chmod-R a + w

In the production environment, it is best to set the owner to the owner of the web server process:

Chown-R www-data (Procided www-data is the apache proces owner, on some OS, it is 'apache' or 'https ')

The following lists the directories for which permissions are to be set. The files marked with * must be writable to the working system, and others must be writable when the plug-in is automatically installed. However, these files can be set manually.

. Config * or at least config/authpuppy. yml: Because the config/authpuppy. yml file contains a list of Enable Plug-ins, writable files can be loaded during initialization.

. Cache *: used by symfony at runtime to cache functions and data.

. Log *: log directory.

. Data *: clearing the cache characters requires access to the directory.

. Plugins: directory for plug-in installation.

. Web: Plugins may have assets (images, javascript, css) to publish to the web directory, so make sure it is writable, otherwise you'll need to do this by hand.

Create a database:

Mysql:

User @ youserver $> mysqladmin-uroot-p create autpuppy

Enter password: # Enter the root password

User @ youserver $> mysql-u root-p

Enter password

Welcome to the MySQL minitor. Commands end with; or \ g.

Your MySQL connection id is 45

Server version: 5.0.51a-3ubuntu5. 5 (Ubuntu)

Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.

Mysql> create user 'authpu00' @ 'localhost' identified by 'autelance ';

Query OK, 0 rows affected (0.21 sec)

Mysql> grant all privileges on authpuppy. * to 'authpuppy '@ 'localhost' with grant option;

Query OK, 0 rows affected (0.02 sec)

Start to install authpuppy

Open http: // localhost: youport (http: // localhost: 9090) in the browser)

If you have the following permissions:

Make sure that all directories with the write permission have the write permission.

Related Article

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.