Environment used: PHP5, apache2 server
First detect the environment: check_configuration.php, execute the file, and ensure that all required conditions are met before installing Authpuppy.
Problems you may encounter:
Workaround:
1.PDO has some drivers installed:failed
If the database you are using is MySQL, please install it; 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 have Short_open_tag set to off:failed
Find the php.ini in your installation directory and find the Short_open_tar set to OFF.
Get Source code:
Get the latest code: source code, unzip the file into the Web server directory.
Tar xvf authpuppy-<version>-<stability>_<packaging>.tgz
sudo mv authpuppy//var/www
To configure the Apache server:
The configuration of the APACHE2 server for this project is similar to the configuration of any other Symfony project. To see more details, see: Symfony Web Server configuration.
To set directory permissions:
In order for the application to be available, some directories must have write permissions on the development server, which can be done:
Chmod-r a+w <directory>
In a production environment it is best to set the owner as the owner of the Web server process:
Chown-r www-data <directory> (procided www-data is the Apache proces owner, on some OS, it's ' Apache ' or ' https ')
The directory under which permissions are to be set is listed below. The work system marked * must be writable, others must be writable when the plugin is installed automatically, but this write can be set manually.
. config* or at least config/authpuppy.yml: Because the Config/authpuppy.yml file contains a list of enable plugins, the writable guarantee can be loaded at initialization time.
. cache*: Used by symfony at run time, caching functions and data.
. log*: Log directory.
. data*: Clear cached characters need access to this directory.
. Plugins: The directory where the plugin is installed.
. Web:plugins May has assets (images, JavaScript, CSS) to publish to the Web directory, so make sure it is writable, oth Erwise you'll need to does this by hand.
To create a database:
Mysql:
[Email protected] $> mysqladmin-uroot-p Create Autpuppy
Enter Password: #Enter the root password
[Email protected] $> 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 ' authpuppy ' @ ' localhost ' identified by ' Autelan ';
Query OK, 0 rows affected (0.21 sec)
Mysql> Grant all privileges the authpuppy.* to ' authpuppy ' @ ' localhost ' with GRANT option;
Query OK, 0 rows affected (0.02 sec)
Start installing Authpuppy
Open Http://localhost:youport (http://localhost:9090) in the browser
If your permissions have the following issues:
Please ensure that the Write permission directory has write permission.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Php5+apache2+mysql Environment Installation Authpuppy