Installing PHP on Debian
I always find it confusing to install PHP for CGI with MySQL support on Debian. I tried with
apt
first, then with the unofficial packages from dotdeb, before finally giving in to compile-from-source of PHP 5.
But then when I do that, I always have trouble figuring out which switches to use. So with some help from this snippet, I figured out to do this, and it worked well enough to let me install mint:
./configure --prefix=/usr/local/php5-fcgi --enable-fastcgi \ --enable-force-cgi-redirect --disable-cli --with-mysql
![](https://active-storage.simplerousercontent.net/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODc2MTIzLCJwdXIiOiJibG9iX2lkIn19--1b30a7ab1e3fa62b5fb5ad353b7274fb273c0c93/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fZmlsbCI6WzUwMCw1MDBdLCJzYXZlciI6eyJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--25278945c39e5ac55075c45502d7ee00fa60fa3b/Option%201%20Mint%20Green.png)
About Calvin Correli
I've spent the last 17 years learning, growing, healing, and discovering who I truly am, so that I'm now living every day aligned with my life's purpose.
Read next
IE down to 51%
Learn, grow, heal, and discover your life's purpose
Join my free newsletter
No spam. Just timeless insights and ideas.
0 comments
Leave a comment