博客文章已转移到新地址,本地址暂时保留,新文章仅在新地址更新。[置顶]

linux 下安装phpstudy

作者:小宝 2016-09-10 10:09:45

phpStudy for Linux 支持Apache/Nginx/Tengine/Lighttpd

支持php5.2/5.3/5.4/5.5切换

已经在centos-6.5,debian-7.4.,ubuntu-13.10测试成功

使用说明:

服务进程管理:phpstudy (start|stop|restart|uninstall)
站点主机管理:phpstudy (add|del|list)
ftpd
用户管理:phpstudy ftp (add|del|list)

项目地址:http://lamp.phpstudy.net/

安装说明:
wget -c http://lamp.phpstudy.net/phpstudy.bin
chmod +x phpstudy.bin    #
权限设置
./phpstudy.bin
    #运行安装
选择好php的版本安装即可。
用时十到几十分钟不等,安装时间取决于电脑的下载速度和配置。
也可以事先下载好完整,安装时无需下载。


如何切换php版:
假如你先安装的apache+php5.3
想切换成nginx+php5.4
你就再走一次./phpstudy.bin
但是你会发现有一行是否安装mysql提示选不安装
这样只需要编译nginx+php5.4
从而节省时间,这样只需要几分钟即可。

在命令前加sudo以获取权限。

以下为我的输入以及结果:

sudo wget -c http://lamp.phpstudy.net/phpstudy.bin

[sudo] password for brisk:

--2016-09-10 09:34:37--  http://lamp.phpstudy.net/phpstudy.bin
Resolving lamp.phpstudy.net (lamp.phpstudy.net)... 58.218.211.25
Connecting to lamp.phpstudy.net (lamp.phpstudy.net)|58.218.211.25|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2977464 (2.8M) [application/octet-stream]
Saving to: ‘phpstudy.bin’

phpstudy.bin        100%[===================>]   2.84M   150KB/s    in 25s     

2016-09-10 09:35:03 (115 KB/s) - ‘phpstudy.bin’ saved [2977464/2977464]

brisk@brisk-Lenovo ~ $ sudo chmod +x phpstudy.bin
brisk@brisk-Lenovo ~ $ ./phpstudy.bin
Error: You must be root to run this script, please use root to install phpstudy
brisk@brisk-Lenovo ~ $ sudo ./phpstudy.bin

解压中...请耐心等等..... Please Waitting.....


解压中...请耐心等等..... Please Waitting.....


=========================================================================
           phpStudy For linux 2014
=========================================================================
phpStudy Linux版&Win版同步上线 支持Apache/Nginx/Tengine/Lighttpd/IIS7/8/6
onekey install Apache/Nginx/Lighttpd + PHP5.2/5.3/5.4/5.5 on Linux

更多信息请访问  http://www.phpstudy.net/
=========================================================================

php版本选择 php5.2/5.3/5.4/5.5,请输入 2 或 3 或 4 或 5  :
php version 5.2 or 5.3 or 5.4 or 5.5, input 2 or 3 or 4 or 5: 5

选择 Apache 或 Nginx 或 Tengine 或 Lighttpd,请输入 a 或 n 或 t 或 l :
Apache or Nginx or Tengine or Lighttpd, input a or n or t or l: a

你的选择: PHP5.5 + Apache + MySQL , 请输入 y 确认安装:
your select: PHP5.5 + Apache , please input y: y

请耐心等等..... Please Waitting.....
……

=========================================================================
=========================================================================

mysqld [Success] mysqld [成功]
httpd [Success] httpd [成功]

phpstudy install completed, 38 min.
phpStudy 安装完成,用时38 分钟

=========================================================================
           phpStudy For linux 2014
=========================================================================
phpStudy Linux版&Win版同步上线 支持Apache/Nginx/Tengine/Lighttpd/IIS7/8/6
服务进程管理:phpstudy (start|stop|restart|uninstall)
站点主机管理:phpstudy (add|del|list)
ftpd用户管理:phpstudy ftp (add|del|list)

更多信息请访问  http://www.phpstudy.net/
=========================================================================

brisk@brisk-Lenovo ~ $


©BRISKLAN;备案信息:桂ICP备16004757号-1