Installation

Uplusware edited this page Jun 19, 2017 · 29 revisions

Install Heaphttpd

  • Enter the directory the source code of heaphttpd
  • Downlload and build OpenSSL
    • Download openssl from http://openssl.org into the heaphttpd source code tree.
      • eg.: wget https://www.openssl.org/source/openssl-1.1.0c.tar.gz
    • Extract it and rename or ln -s it to openssl.
    • cd openssl
    • ./config
    • make
    • make test
  • Build heaphttpd
    • cd src/
    • make
  • Run release.sh to generate the installation files package
  • run sudo intsall.sh in installation package
  • configure /etc/heaphttpd/heaphttpd.conf. Please refer to the example
  • Load balance solution
  • sudo /etc/init.d/heaphttpd start

Install demo

  • cd api and make clean and sudo make install (it's for API code sample)
  • cd api and make clean and sudo make install UPLOADSAMPLE=1 (it's for file uploading)
  • cd api and make clean and sudo make install MYSQLDB=1 (It's MySQL sample)
  • cd api and make clean and sudo make install MONGODB=1 (It's MongoDB sample)
  • cd cgi and make clean and sudo make install (it's for CGI code sample)
  • cd ws and make clean and sudo make install (it's for WebSocket code sample)
  • cd webpy and sudo make install (it's for web.py, need to install Spawn-fcgi)
  • cd ext and make clean and sudo make install (it's for heaphttpd extension)
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.