dreamhost上快速安装APC加速,不用编译php

eAccelerator、xCache、APC 是php常见的三个加速模块,原理基本一样,性能差别不大。
为了给Dreamhost上的小站加速一下,所以装了一个APC。
从php5.3开始,我们已经不需要完全自己编译php来定制了php.ini了,所以只需要自己编译APC即可。

一、切换到php 5.3
在Panel->Manage Domains, 选择edit对应域名的Web Hosting,
如下图将php从5.2.x改为5.3.x fastCGI,
settings
保存即可

二、编译APC
wget http://pecl.php.net/get/APC
tar -zxvf APC
cd APC-3.1.10/
/usr/local/php53/bin/phpize
./configure –with-php-config=/usr/local/php53/bin/php-config; make
mkdir ~/.php/5.3
mv modules/apc.so ~/.php/5.3/
echo “extension = /home/xLight/.php/5.3/apc.so” > ~/.php/5.3/phprc

2012年12月时事通讯

2012年12月时事通讯,我收到了Dreamhost Brett的邮件,很有意思,哈哈。

内容如下:

Sadly, this will be our last newsletter. The Earth is going away.

I have it on good authority (rhymes with ‘ikipedia’) that the end of the world is coming – sooner than you might think. December 21st, 2012 is THE day.

That’s it. Finito. The Mayans said so. Sort of. Not really. It’s all over the news and the Internet, so I’m pretty sure it’s happening.

On December 22nd I’m fairly certain that our network, servers, and everything else that lives within our offices and datacenters will still be there.

But what good is the Internet if nobody’s around to use it?

I, for one, am making preparations by doing everything I’ve always wanted to do!

I started by selling everything I own.

As of about a week ago, I’ve stopped wearing clothes.

I’m trying one new illegal drug a day for the rest of my life.

I’m devoting all of my free time to the creation of horrendous art.

I’ve discovered a newfound appreciation for fire, low-grade pyrotechnics, and things that glow.

I’ve got piercings in my earlobes that are so big you can see right through them!

I’ve attempted to barter for goods and services with bottled water, alcohol, and sex. (Key word – attempted.)

I’ve learned to juggle fire and swallow swords.

Wait a minute…

The Mayans didn’t predict the end of the world.

They predicted Burning Man!

CRAP.

I…have to make some phone calls.

Also, does anyone know how long salvia lasts?

-Brett

dreamhost ftp 503错误

今天上传一个项目,忘记传压缩包了,结果出现530 Sorry, the maximum number of connections (10) for your host are already connected.
登录dreamhost控制面板,然后选择左侧Manage Users,根据你FTP用户名点击“Kill FTP Connections”,数分钟后即可生效。

Dreamhost的php设置

dreamhost主机网站根目录下没有对应的cgi-bin目录,在不修改程序代码的前提下,想要更改php配置就比较困难了。
有幸的是,dreamhost官方已经提出解决办法。
官方地址:http://sxi.sabrextreme.com/dh-phpini

操作方法:
1.解压之后将dh-phpini.php文件上传至网站根目录
2.访问http://yourdomain.com/dh-phpini.php安装

小提示:
修改之后不能立即生效,需要稍等片刻。