ubuntu12.10以后,默认的deb安装库上面的php版本已经是5.4了,公司的项目使用5.4的时候,还是会出现很多问题,所以不得不降级安装5.3 顺便说一句,我原来的环境是nginx + php5.4 + mysql 的,现在只是把php5.4降级到php5.3,其它的不修复. 新建一个叫做down_to_php53.sh,然后复制下面代码进去 #!/bin/bash # # Original for 5.3 by Ruben Barkow (rubo77) http://www.enti…
My os version is Ubuntu13.04, today, after started and logined, my desktop freezed. But i can still start the software in the left launcher. I reveive a system bug report that the /usr/bin/gnome-screensaver is crashed. Then, i start the terminal, and…
我的操作系统是Ubuntu14.04,其它linux系统的操作流程类似. 主要安装的软件是nginx1.7+php5.4+mysql5.6 1. 创建必要目录 sudo mkdir ~/setup sudo mkdir /opt/software sudo chmod 777 /opt/software 2. 下载必要软件 cd ~/Downloads wget http://am1.php.net/distributions/php-5.4.29.tar.gz tar zxvf ~/Downl…
Remark: Polynomial algebra 程序由于版本问题只能在gcc 5.0 版本运行, 而ubuntu更新会将gcc 更新到7.0版本,出现冲突(报错:如下) collect2: error: ld returned 1 exit status Makefile:34: recipe for target 'LEORHEKF.exe' failed make: *** [LEORHEKF.exe] Error 1 解决方法: 将gcc版本从7.3降级为5.5版本 方法如下: 首先…
加入源 sudo add-apt-repository ppa:rabbitvcs/ppa 更新 sudo apt-get update 安装软件 sudo apt-get install rabbitvcs-core rabbitvcs-nautilus3 rabbitvcs-cli 以上命令在ubuntu都是通用的,不过在13.04,安装完毕之后,重新logout/login,还是右键看不到,还要多做一步操作 .so /usr/lib/libpython2..so.1.0 Have fun…
相信用惯了Windows的朋友一开始接触Linux是很崩溃的,因为很多东西都是通过命令行来完成的,包括安装绝大多数的开发工具以及环境,那么在Ubuntu下其实可以直接通过apt-get指令来安装apache和php,其实也是相当方便的,只要几行指令就可以完成.但是这里会出现一个问题,那就是没办法安装旧版本的php,比如到现在(2017年9月),使用上述指令Ubuntu会默认给你安装php7.1.8,那么当我们需要兼容一些低版本的代码时显然是不行的,这个时候我们就需要自己编译安装apache和ph…
Ubuntu 16.04系统默认php7,并没有php5*的包,所以需要自己安装: 方法: 1.删除所有的php包列出安装的php包,dpkg -l | grep php| awk '{print $2}' |tr "\n" " " 然后删除不需要的包,sudo aptitude purge your_packages_here或者如果要直接删除它们全部使用: sudo apt-get purge `dpkg -l | grep php| awk '{print $…
原文 https://vpsineu.com/blog/how-to-build-and-install-php-5-6-9-from-source-on-ubuntu-14-04-vps/ In this tutorial we will show you how to build and install PHP 5.6.9 from source on an Ubuntu 14.04 VPS. We all know that PHP-5 is by default available in…
LAMP是Linux web服务器组合套装的缩写,分别是Apache+MySQL+PHP.此教程教大家如何在Ubuntu 12.04 LTS server 上安装Apache2服务器,包括PHP5(mod_php)+MySQL. 此教程中使用的相关IP等设置,在你的环境中要做相应修改. 1 我们使用root账户进行安装,首先切换到root账户,输入命令: sudo su 2 安装 MySQL 5输入命令: apt-get install mysql-server mysql-client 安装过…
转载自https://www.linuxidc.com/Linux/2017-03/142299.htm Ubuntu 16.04 LTS 降级安装GCC 4.8 [日期:2017-03-28] 来源:博客园  作者:in4ight [字体:大 中 小]   由于gcc在5.x版本修改了ABI,导致新版本gcc编译的二进制文件放在老的环境下会报错,所以需要安装gcc4.8.5.4.8.5这个版本支持c++11. 首先尝试下载gcc-4.8.5的源码编译安装,结果make时报错“libstdc++…