# How do I install PHP as a CGI?

**URL:** <https://forum.kirupa.com/t/how-do-i-install-php-as-a-cgi/293952>\
**Category:** programming\
**Created:** [August 6, 2009, 9:26am UTC](https://forum.kirupa.com/t/how-do-i-install-php-as-a-cgi/293952 "2009-08-06T09:26:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilbertsavier](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gilbertsavier](https://forum.kirupa.com/u/gilbertsavier)\
**Post date:** [August 6, 2009, 9:26am UTC](https://forum.kirupa.com/t/how-do-i-install-php-as-a-cgi/293952/1 "2009-08-06T09:26:09Z")

</div>

Hi,  
What you need to do is to run:

./configure --without-apache --without-apxs --with-other-options

It will tell you that as you are building it without Apache support, it is building it as a CGI binary.

Then do make ; make install and it should then be installed (/usr/local/bin/php by default)
