This article will explain how to install and set-up a PHP 5.6 environment with Apache 2.4 so that it will run darkedeneurope.com.
Đang xem: How to install php 5
Follow the steps below with caution.
Note: This article was based on the Debian Jessie distribution
Installing the PHP 5.6
Use the following command to install PHP 5.6
sudo apt-get install php5-dev php5-cli php5 php5-pear
Accept the installation of the dependants.
Verify the PHP version with the command:
php -v
Important: By default PHP has some disabled functions that will be necessary for darkedeneurope.com. So access your php.ini (/etc/php5/apache2/php.ini) and change the variable disable_functions according to the example:
To enable the databases, we”ve selected some installation command examples:
MSSQL Server use this command sudo apt-get install php5-mssql
PostgreSQL use this command sudo apt-get install php5-pgsql
MySQL use this command sudo apt-get install php5-mysql
SQLite use this command sudo apt-get install php5-sqlite
Firebird use this command sudo apt-get install php5-interbase
Odbc use this command sudo apt-get install php5-odbc
Activating the GD library
Use the command sudo apt-get install php5-gd to activate the GD library.
Accept the installation of the dependants.
Activate Zend Guard Loader
Download the Zend Guard Loader for linux, on link below and place it like this /usr/lib/php5/Zend.
Download ZendGuardLoader x86
Download ZendGuardLoader x64
Set the permissions 777 recursive on the folder /usr/lib/php5/Zend
sudo chmod 777 -R /usr/lib/php5/Zend
Open the php.ini (/etc/php5/apache2/php.ini) and at the end of the file, add the line:
After this procedure restart Apache using the command: sudo /etc/init.d/apache2 stop sudo /etc/init.d/apache2 start
Manually installing darkedeneurope.com
Download darkedeneurope.com with the extension zip or tgz at www.darkedeneurope.com and extract the zip in the root of the Web Server which was installed previously (/var/www/html).
After extract the zip, rename the folder to darkedeneurope.com.
Access darkedeneurope.com from your browser using the example below:
Ex.: http://127.0.0.1/darkedeneurope.com
The page below shows the options of the installing language of darkedeneurope.com.
Here it verifies the extensions installed. If youmark the check-boxes of the extensions not installed, it will try to configure the php.ini file to recognize the extensions selected.
Now you will choose to do a Typical Installation or a Customized Installation.
Typical Installation
darkedeneurope.com will install everything automatically. After choosing the Typical Installation, you”ll be redirected automatically to your darkedeneurope.com development environment. By default the username is: admin and the password is: admin.
Customized Installation
You can choose what database darkedeneurope.com will use to install and choose the default username and password to access your development environment.
darkedeneurope.com needs some permissions to work properly , at this moment it checks the permissions.
This step consists in defining the database that darkedeneurope.com will be installed. The default option is SQLite, that requires only its module to be active in PHP, but it is possible to install it on others databases by clicking on “Change Database”. Going to the next step the tables will be created.
The tables were created with success.
Here you will create the login and the password for the administrator of darkedeneurope.com.
If everything was ok in the installation, the following page will show. Click on Next to start darkedeneurope.com.
The login page of darkedeneurope.com with the user-name and password previously informed.