php5.6 for linux?python linux

各位老铁们,大家好,今天由我来为大家分享php5.6 for linux,以及python linux的相关问题知识,希望对大家有所帮助。如果可以帮助到大家,还望关注收藏下本站,您的支持是我们最大的动力,谢谢大家了哈,下面我们开始吧!

如何在linux上安装php5.6,谢谢,

不知道你问的linux,是哪个发行版本,常用的如 ubntu,centos,debian等。

我列一个centos7(服务器常用这个版本)的安装方法吧

centos7默认使用yum install来安装程序,但默认源安装的php是5.4的,版本比较低,

要安装高版本的,要么下载源代码手动编译安装,但对不熟悉的,万一出点错误,会越搞越乱。我一般使用epel源安装php,里面各个版本都有,最新的php7.3

首先安装epel

rpm-ivh

这里面的url是目前我用的,如果提示出错,就是换url了,可以在电脑上手动打开epel源列表去检查 epel-release是哪个版本,换上对应的名字

按版本安装php

rpm-Uvh

yuminstallphp56wphp56w-mysqlphp56w-pdophp56w-gdphp56w-sslphp56w-mbstringphp56w-cliphp56w-xmlphp56w-bcmath

我这里列的是一些常用的php扩展,如果需要其它的,手动加上即可

如果需要安装php其它版本,把包名里的56改成对应版本即可,如

yuminstallphp71wphp71w-mysqlphp71w-pdophp71w-gdphp71w-sslphp71w-mbstringphp71w-cliphp71w-xmlphp71w-bcmath

yuminstallphp72wphp72w-mysqlphp72w-pdophp72w-gdphp72w-sslphp72w-mbstringphp72w-cliphp72w-xmlphp72w-bcmath

可对应安装php7.1和php7.2,这种安装方法,会默认配置好对应的设置,php.ini在/etc/中查找,命令行也默认启用了(php-cli)

阿里云上的centos 7.2怎么yum安装php 5.6

因之前通过网易的 centos镜像,将阿里云的 centos升级到最新版了,乘自己的项目尚未开始正式开发,遂将所有的相应环境都升级到最高。

查看 centos版本:

[root@iZ23d~]# cat/etc/centos-release

CentOS Linux release 7.2.1511(Core)

1、删除之前的 php版本:

[root@iZ23d~]# yum remove php* php-common

Loaded plugins: langpacks

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

No Match for argument: php-5.4.16

No Match for argument: php-5.4.16.tar.gz

No Match for argument: php-7.0.1RC1

No Match for argument: php-7.0.1RC1.tar.gz

No Match for argument: phpMyAdmin-4.4.0.tar.gz

No Match for argument: php-common

No Packages marked for removal

2、rpm安装 Php7相应的 yum源:

[root@iZ23d~]# rpm-Uvh

Retrieving

warning:/var/tmp/rpm-tmp.LhJKKR: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY

Preparing...################################# [100%]

package webtatic-release-7-3.noarch is already installed

3、直接yum安装php7:

[root@iZ23d~]# yum install php70w

Loaded plugins: langpacks

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Resolving Dependencies

--> Running transaction check

。。。【省略】

Warning: RPMDB altered outside of yum.

Installing: php70w-common-7.0.0-1.w7.x86_64 1/3

Installing: php70w-cli-7.0.0-1.w7.x86_64 2/3

Installing: php70w-7.0.0-1.w7.x86_64 3/3

Verifying: php70w-7.0.0-1.w7.x86_64 1/3

Verifying: php70w-common-7.0.0-1.w7.x86_64 2/3

Verifying: php70w-cli-7.0.0-1.w7.x86_64 3/3

Installed:

php70w.x86_64 0:7.0.0-1.w7

Dependency Installed:

php70w-cli.x86_64 0:7.0.0-1.w7 php70w-common.x86_64 0:7.0.0-1.w7

Complete!

4、检查 php版本:

[root@iZ23d~]# php-v

PHP 7.0.0(cli)(built: Dec 2 2015 20:42:32)( NTS)

Copyright(c) 1997-2015 The PHP Group

Zend Engine v3.0.0, Copyright(c) 1998-2015 Zend Technologies

[root@iZ23d2e6hoqZ~]#

以上显示安装成功!

5、重启 Apache,查看 phpinfo:

[root@iZ23d~]# systemctl restart httpd.service

检查phpinfo:

PHP Version 7.0.0

SystemLinux iZ23d 3.10.0-229.11.1.el7.x86_64#1 SMP Thu Aug 6 01:06:18 UTC 2015 x86_64

Build DateDec 2 2015 20:43:38

Server APIApache 2.0 Handler

Virtual Directory Supportdisabled

Configuration File(php.ini) Path/etc

Loaded Configuration File/etc/php.ini

Scan this dir for additional.ini files/etc/php.d

Additional.ini files parsed/etc/php.d/bz2.ini,/etc/php.d/calendar.ini,/etc/php.d/ctype.ini,/etc/php.d/curl.ini,/etc/php.d/exif.ini,/etc/php.d/fileinfo.ini,/etc/php.d/ftp.ini,/etc/php.d/gettext.ini,/etc/php.d/gmp.ini,/etc/php.d/iconv.ini,/etc/php.d/json.ini,/etc/php.d/phar.ini,/etc/php.d/shmop.ini,/etc/php.d/simplexml.ini,/etc/php.d/sockets.ini,/etc/php.d/tokenizer.ini,/etc/php.d/xml.ini,/etc/php.d/zip.ini

PHP API20151012

PHP Extension20151012

Zend Extension320151012

Zend Extension BuildAPI320151012,NTS

PHP Extension BuildAPI20151012,NTS

Debug Buildno

Thread Safetydisabled

Zend Signal Handlingdisabled

Zend Memory Managerenabled

Zend Multibyte Supportdisabled

IPv6 Supportenabled

DTrace Supportenabled

Registered PHP Streamshttps, ftps, compress.zlib, php, file, glob, data, http, ftp, compress.bzip2, phar, zip

Registered Stream Socket Transportstcp, udp, unix, udg, ssl, sslv3, sslv2, tls, tlsv1.0, tlsv1.1, tlsv1.2

Registered Stream Filterszlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, bzip2.*, convert.iconv.*

This program makes use of the Zend Scripting Language Engine:

Zend Engine v3.0.0, Copyright(c) 1998-2015 Zend Technologies

Configuration

apache2handler

Apache VersionApache/2.4.6(CentOS)

Apache API Version20120211

Server Administratorxxxxxx@xxxxxx.com

Hostname:Portxxxx.xxxxx.xxx:0

User/Groupapache(48)/48

Max RequestsPer Child: 0- Keep Alive: on- Max Per Connection: 100

TimeoutsConnection: 60- Keep-Alive: 15

Virtual ServerYes

Server Root/etc/httpd

Loaded Modulescore mod_so http_core mod_access_compat mod_actions mod_alias mod_allowmethods mod_auth_basic mod_auth_digest mod_authn_anon mod_authn_core mod_authn_dbd mod_authn_dbm mod_authn_file mod_authn_socache mod_authz_core mod_authz_dbd mod_authz_dbm mod_authz_groupfile mod_authz_host mod_authz_owner mod_authz_user mod_autoindex mod_cache mod_cache_disk mod_data mod_dbd mod_deflate mod_dir mod_dumpio mod_echo mod_env mod_expires mod_ext_filter mod_filter mod_headers mod_include mod_info mod_log_config mod_logio mod_mime_magic mod_mime mod_negotiation mod_remoteip mod_reqtimeout mod_rewrite mod_setenvif mod_slotmem_plain mod_slotmem_shm mod_socache_dbm mod_socache_memcache mod_socache_shmcb mod_status mod_substitute mod_suexec mod_unique_id mod_unixd mod_userdir mod_version mod_vhost_alias mod_dav mod_dav_fs mod_dav_lock mod_lua prefork mod_proxy mod_lbmethod_bybusyness mod_lbmethod_byrequests mod_lbmethod_bytraffic mod_lbmethod_heartbeat mod_proxy_ajp mod_proxy_balancer mod_proxy_connect mod_proxy_express mod_proxy_fcgi mod_proxy_fdpass mod_proxy_ftp mod_proxy_http mod_proxy_scgi mod_proxy_wstunnel mod_ssl mod_systemd mod_cgi mod_perl mod_php7

以上显示 php7安装成功!

linux下phpstudy怎么安装php环境变量

linux下phpstudy环境的安装

phpStudy Linux版&Win版同步上线支持Apache/Nginx/Tengine/Lighttpd/IIS7/8/6

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

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

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

下载版:http//lamp.phpstudy.net/phpstudy.bin

完整版:http//lamp.phpstudy.net/phpstudy-all.bin

安装:

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

chmod+x phpstudy.bin#权限设置

./phpstudy.bin#运行安装

用时十到几十分钟不等,安装时间取决于电脑的下载速度和配置。

也可以事先下载好完整,安装时无需下载。

安装完成

如何切换php版:

假如你先安装的apache+php5.3

想切换成nginx+php5.4

你就再走一次./phpstudy.bin

但是你会发现有一行是否安装mysql提示选不安装

这样只需要编译nginx+php5.4

从而节省时间,这样只需要几分钟即可。

项目地址:

使用说明:

服务进程管理:phpstudy(start|stop|restart|uninstall)

站点主机管理:phpstudy(add|del|list)

ftpd用户管理:phpstudy ftp(add|del|list)

=phpstudy WIN版下载==================

『软件简介』

该程序包集成最新的Apache+Nginx+LightTPD+PHP+MySQL+phpMyAdmin+Zend Optimizer+Zend Loader,一次性安装,无须配置即可使用,是非常方便、好用的PHP调试环境。该程序绿色小巧简易迷你仅有35M,有专门的控制面板。总之学习PHP只需一个包。

对学习PHP的新手来说,WINDOWS下环境配置是一件很困难的事;对老手来说也是一件烦琐的事。因此无论你是新手还是老手,该程序包都是一个不错的选择。

1、全面适合 Win2000/XP/2003/win7/win8/win2008操作系统,支持Apache、IIS、Nginx和LightTPD。

2、该程序包集成以下软件,括号内为phpstudy下对应的目录。

php 5.6a3(php56n)

php 5.5.10(php55)

php 5.5.10-nts(php55n)

php 5.4.26(php54)

php 5.4.26-nts(php54n)

php 5.3.28(php53)

php 5.3.28-nts(php53n)

php 5.2.17(php52)

Apache 2.4.7(Apache)

Nginx 1.5.11(nginx)

LightTPD 1.4.32(Lighttpd)

MySQL 5.5.36(MySQL)

MySQL-Front 5.3(SQL-Front)

phpMyAdmin 3.5.8.2(phpMyAdmin)

pear 1.9.4(pear)

OpenSSL 1.0.1e&0.9.8y

ZendOptimizer 3.3.3(php5.2有)

Zend Loader 5.5.0(php5.3有)

Zend Loader 6.0.0(php5.4有)

wincache 1.3.5(fastcgi有)

php_opcache 7.0.3(ZendOpcache扩展)

xdebug 2.2.3.1

Zend Debugger 6.2(php5.3/4 fastcgi有)

xcache 3.1.0

eAccelerator 1.0&0.9.6

php_sqlsrv(MSSQL扩展)

php_pdo_sqlsrv(PDO-MSSQL扩展)

php_mongo 1.4.5(MongoDB扩展)

php_dbase 5.1.0(dbase扩展)

php_dbx 1.1.2(dbx扩展)

php_ibm_db2 1.9.5(ibm_db2扩展)

php_apc 3.1.13(php_apc扩展)

php_memcache 3.0.8

phpStudy Ftp server(FTPServ)

SendMail 3.2(sendmail)

VC++ 2008运行库

3、MySQL数据库默认用户名:root,密码root,安装后请重新设置密码。

4、本程序纯绿色,支持22种组合一键切换,支持系统服务和非服务两种启动方式,自由切换。改变安装路径或拷贝到别的电脑上也可正常运行;即便是运行完再更改路径也能运行,真正做到无须配置。重写控制面板更加有效直观地进行控制程序的启停。

5、自带FTP服务器,支持多用户,无需再安装FTP服务器。自带网站挂马监视器,随时记录文件的修改情况,让挂马文件无处可逃。

6、本程序完美支持II7,IIS8和IIS6。应网友的要求制作Nginx版和Lighttpd版。Nginx版为phpfind,Lighttpd版为phpLight。

推荐:学习JSP用JspStudy。

『软件简介』

JspStudy集成JDK+tomcat+Apache+mysql,JSP环境配置一键启动。无需修改任何配置即可迅速搭建支持JSP的服务器运行环境。

纯绿色解压即可,支持系统服务和非服务两种启动方式,自由切换。控制面板更加有效直观地进行控制程序的启停。

JspStudy将复杂的JSP环境配置简单化。

『特别注意』

1.为了减少出错安装路径不得有汉字,如有防火墙开启,会提示是否信任httpd、mysqld运行,请选择全部允许。

2.此为apache+php方案,需要Nginx+php方案的请到www.phpStudy.net下载phpfind,Lighttpd+PHP方案下载phpLight。

3.重装系统后或相关服务丢失时,只需要点一下『运行模式-应用』即可。

4.可通过菜单『卸载相关服务』进行卸载相关服务。

5.在『启动』、『停止』、『重启』三个启停按钮上右键可以有选择地进行启停,左键将控制全部的启停。

6.菜单『phpStudy设置』可以进行php,apche,mysql的相关设置。菜单『站点域名设置』可以进行站点及域名的添加。

7.本程序分为安装版和非安装版,无论是安装还是免安装,最后的效果完全一致。

8.端口问题无法启动时,请使用菜单『环境端口检测』进行端口检测,尝试启动。

26种组合一键切换apache+php

php扩展管理超级方便

nginx+php

IIS7/8/6+php

mysql备份还原导入导出

站点域名设置

端口检测

博客不再更新,请到官方网站下载:

下载地址解压版:

下载地址安装版:

其他版本:

软件简单说明各版本的区别大小下载

phpStudy26种组合,超全大合集Apache+Nginx+LightTPD+IIS

php5.2 php5.3 php5.4 php5.5 php5.6

MySQL phpMyAdmin MySQL-Front

26种组合自由切换,是下面5个版本的合集

同时支持apache/nginx/Lighttpd和IIS7/8/636M解压版

安装版

phpStudy

Lite

新手用,经典wamp组合Apache+php5.3+php5.4+MySQL(wamp集成包)

没有上面合集复杂的多版本设置,简单适合新手。16M解压版

phpStudy

for IIS

IIS服务器专用IIS+php5.2+php5.3+php 5.4+MySQL

php一键安装包 for IIS7/8/6(IIS服务器专用)21M解压版

phpStudy

for Linux

Linux服务器专用(lamp)Apache+Nginx+LightTPD+MySQL

php5.2+php5.3+php5.4+php5.5一键安装包

支持centos,ubuntu,debian等Linux系统,12种组合80M安装版

phpfindnginx+php组合(wnmp)Nginx+php5.3+php5.4+MySQL(wnmp集成包)

nginx+php组合,适合喜欢用nginx的朋友16M解压版

phpLightlighttpd+php组合(wlmp)Lighttpd+php5.3+php5.5+MySQL(wlmp集成包)17M解压版

phpStudy

(php5.2)

apache+php5.2珍藏版Apache2.2+php5.2.17+MySQL5.1

php5.2经典组合值得收藏,仅有11M,无需运行库11M解压版

JspStudyJSP环境一键安装包JDK+tomcat+Apache+mysql+php

纯绿色解压即可,不添加环境变量,不修改注册表52M解压版

下载地址:

php5.3+php5.4合集下载: http//www.phpstudy.net/phpstudy/phpStudy.zip

阅读剩余
THE END