我看了下原有的php安装在/alidata/server下,版本是php5.2.17,想升级到最新版。
我输入php -v为什么说我没有安装php呢?
/php# php -v
The program 'php' is currently not installed. You can install it by typing:
apt-get install php5-cli
用apt-get是全新安装
apt-get install php5-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
php5-common
Suggested packages:
php-pear php5-suhosin
The following NEW packages will be installed:
php5-cli php5-common
0 upgraded, 2 newly installed, 0 to remove and 37 not upgraded.
Need to get 3,588kB of archives.
After this operation, 9,142kB of additional disk space will be used.
Do you want to continue [Y/n]?
也不知道这个全新安装会装在哪个地方?,版本会是多少?
-------------------------
-------------------------
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。