Dreamhost allows its users to run their own custom builds of php 5. They outline the procedure here (only accessible by Dreamhost customers). Here are details on how I got my custom php5 build running on my account:
- If you need unixODBC:
- Go here and download the newest version of the Debian binaries: unixODBC-x.x.x-x86-linux-deb.tar.gz
- to install:
cd && tar xzf path/to/unixODBC-2.2.11.tar.gz
- If you need IMAP (much thanks to this guide in figuring this out):
- Go to ftp://ftp.cac.washington.edu/imap and download the latest IMAP. It will be named something like
imap-2004g.tar.Z
tar xzf imap-2004g.tar.Z
cd imap-2004g
make ldb SSLTYPE=none (say yes to the question it asks)
mkdir lib
mkdir include
cd c-client
cp *.h ../include/
cp *.c ../lib/
cp c-client.a ../lib/libc-client.a
- Download the latest php5 tarball from here
- Here is the command I used to configure php5. I started with the configuration used by dreamhost for their php5, which I found from phpinfo(). I then removed things I knew I wouldn’t need, and added a few things I did need:
'./configure' '--prefix=/home/jjb/' '--enable-fastcgi' '--with-mysql=/usr' '--enable-calendar' '--enable-force-cgi-redirect' '--enable-trans-sid' '--with-gd' '--with-xml' '--with-xsl' '--with-ttf=/usr' '--with-freetype-dir=/usr' '--enable-exif' '--with-xslt' '--with-xslt-sablot=/usr' '--with-dom-xslt=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib-dir=/usr' '--enable-ftp' '--enable-mbstring' '--with-mysqli' '--with-gettext' '--with-unixODBC=/home/jjb/' '--with-imap=/home/jjb/src/imap-2004g'
make install
cp /etc/php5/cgi/php.ini /home/jjb/lib/
- edit
/home/jjb/lib/php.ini and set include_path = ".:/usr/local/php5/lib/php:/home/jjb/lib/php" (so that php can find your local PEAR libraries)
- I then copied
~/bin/php into the the top of my web directory and named it php.cgi, as dreamhost recommends. You might want to put it into http://example.com/cgi-bin/ or anywhere else.
- I then added the following to my
.htaccess file:
AddHandler custom-php .php .pcgi
Action custom-php /php.cgi
ShareThis
listen
you guys need to show shipping charges before asking for my credit card number
i mean really, it’s 2005. you should be ashamed of yourselves.
ShareThis
Today my dad invented a drink, and we have decided to name it The Bachir Margarita. Here is the recipe:
Serves 4.
- 4 oz. tequila
- 4 oz. triple sec or Cointreau
- 4 oz. lime or lemon.
- 2 tsp. sugar
- 10 oz. peach juice or “nectar”
Serve in tall glasses over crushed ice.
ShareThis
Arianna Huffington did a great piece at AlterNet: The Things I Want to Forget, an overview of everything evil and absurd in the United States in 2005. It may come off as negative but I think she succeeds in being more populist than partisan.
ShareThis
Here is how I got Apache 2 and Subversion working together to provide me with WebDAV access to my repository. The OS was Red Hat Enterprise Linux ES release 3.
For Apache:
./configure --enable-dav --enable-so --with-prefix=/home/jjb/
Then, for Subversion (it’s important that you install subversion second):
./configure --prefix=/home/jjb/ --with-apxs=/home/jjb/bin/apxs
What’s great is that during the installation process Subversion will copy its apache modules into the the modules directory, and add the directives to your apache config (/home/jjb/conf/httpd.conf) for you!:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
Lines I changed:
Listen 8181
ServerName lyceum.jjb.cc:8181
And lines I added:
<Location />
DAV svn
SVNPath /var/svn/
AuthType Basic
AuthName “Lyceum Subversion Repository”
AuthUserFile /home/jjb/lyceumhttp
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
Then to start the server: /home/jjb/bin/apachectl start
ShareThis
A friend of mine on IM today:
::: “New York Times columnist David Brooks followed two days later with a condescending column lamenting Spielberg’s failure to portray the “evil” driving Palestinian terrorism. “Because he will not admit the existence of evil, as it really exists, Spielberg gets reality wrong,” Brooks wrote, continuing, “In Spielberg’s Middle East the only way to achieve peace is by renouncing violence. But in the real Middle East the only way to achieve peace is through military victory over the fanatics, accompanied by compromise between the reasonable elements on each side.”"
::: man
::: where did david brooks go to grade school
::: i continue to be amazed than someone can not see that terrorism and the response to terrorism is a cycle
::: killing 100,000 iraqi civilians with bombs will cause other iraqis to become terrorist fanatics. it’s incredibly simple.
Terrorism/occupation previously discussed here.
ShareThis
./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/sbin/apxs --with-tidy=/opt/local/ --enable-shmop --enable-sysvsem --enable-sysvshm
apxs is the apache thingy which generates the module (.so) file.
I installed tidy using darwinports: sudo port install tidy
The php makefile adds the necessary directives to your httpd.conf file.
ShareThis
(NOTE: if you want your name in Elvish, don’t ask me, I don’t know how to do it! There’s an automated way to do it here. I have no idea how accurate it is.)
Here is my name in Tengwar Quenya Elvish, generated by Jason:

And an illustration of what is going on:

update: and here it is a more correct/fancy version (Jason’s skillz are improving by the hour!!):


(NOTE: if you want your name in Elvish, don’t ask me, I don’t know how to do it! There’s an automated way to do it here. I have no idea how accurate it is.)
ShareThis
To whom it may concern,
In many places on your website you state that Marijuana is addictive. I could not find any further information on this topic. Could you direct me to studies or other resources discussing this issue?
Thanks,
John
ShareThis
Bad House!
The House voted 251 to 174 yesterday to renew the USA Patriot Act, setting up a confrontation over the revised anti-terrorism measure with a group of Democratic and Republican senators who say it would not go far enough to protect civil liberties.
The Patriot Act, approved after the Sept. 11, 2001, terrorist attacks, made it easier for the FBI to conduct secret searches, monitor telephone calls and e-mails, and obtain bank records and other personal documents in connection with terrorism investigations.
Civil liberties groups say the proposed renewal would do too little to let targeted people challenge national security letters and types of subpoenas that give the FBI substantial latitude in deciding what records — including those from libraries — should be surrendered.
Good House! (althought this one was a no-brainer)
In an unusual bipartisan rebuke to the Bush administration, the House on Wednesday overwhelmingly endorsed Senator John McCain’s measure to bar cruel and inhumane treatment of prisoners in American custody anywhere in the world.
ShareThis
Latest Comments
RSS