We are researching the http protocol and building our own http server. This guide build apache and test it out.
tar jxvf httpd-2.4.56.tar.bz2
sudo apt-get install apache2-utils libapr1 libapr1-dev libaprutil1-dev -y
./configure --enable-cgi --prefix=/home/peter/Download/my-httpd
Then you have this
Run the apache with CGI connects to PHP
- edit conf/httpd.conf , change “Listen 80” to “Listen 8765”
- run bin/httpd