Install authpuppy and apache2authpuppy 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-<version>-<stability >_< packaging>. 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 <directory>
In the production environment, it is best to set the owner to the owner of the web server process:
Chown-R www-data <directory> (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.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.