Although phpStudy is easy to use, but because there is no official tutorial, the convenience of use is greatly reduced. Fortunately, I found a brief tutorial:
download link:
Download version: http://lamp.phpstudy.net/phpstudy.bin
Full version: http://lamp.phpstudy.net/phpstudy-all.bin
PHP environment supports:
Explanation: Apache/Nginx/Tengine/Lighttpd
PHP version: support php5.2/5.3/5.4/5.5 switching
Operating system : successfully tested on centos-6.5, debian-7.4., ubuntu-13.10
installation method:
Download the .bin file
-
cd to the download directory wget -c http://lamp.phpstudy.net/phpstudy.bin
-
Chmod +x ./phpstudy.bin to give permission
-
Then run ./phpstudy.bin in the terminal and enter one of the 2-5 numbers to indicate the version of php
- Type a/n/t/l (apache/nginx/Tengine/Lighttpd)
- enter y
-
Wait for the compilation to complete
How to switch php version:
If you installed apache+php5.3 first
and want to switch to nginx+php5.4,
you can go again./phpstudy.bin
But you will find that there is a line whether to install mysql prompting to choose not to install
, so you only need to compile nginx+php5.4
to save time, it only takes a few minutes.
Instructions
Use sudo in the terminal or run phpstudy start with an administrator account to open
Command list:
phpstudy start | stop | restart open | stop | restart
phpstudy add | del | list add virtual host | delete virtual host | view virtual host list
Note: After adding or deleting a virtual host domain name, you need to re-modify the host file configuration, (sudo vim /etc/hosts)
phpstudy ftp add | del | list
Configuration file address
Apache configuration file: /phpstudy/server/httpd/conf/httpd.conf
Need to change the configuration
<DocumentRoot />
Need to change AllowOveride None to AllowOveride All
</>
PHP configuration file: /phpstudy/server/php/etc/php.ini
Open the MySQL console
/phpstudy/mysql/bin/mysql -uroot -proot