OAMP – Apache using FastCGI Process Manager on OpenBSD

Once upon a time, there was a way to run PHP with Apache on OpenBSD using the php-*-ap2 package. At that time, OpenBSD shipped with home-patched Apache 1.3 and provided Apache 2.x as a package. Since then, Apache 1.x was dropped from base, replaced with httpd(8) and ports gave the opportunity to run either Apache 1.x or Apache 2.x. This is when PHP packages and Apache 2.x became quite a pain in the ass to use. Thanks to the ports, one could deal with it. But binary PHP packages are not built this way. One way to get PHP and Apache is to use FastCGI. Here’s how to run the OAMP 6.0.
Continue reading “OAMP – Apache using FastCGI Process Manager on OpenBSD”

Remotely reboot the Freebox Server from OpenBSD

The Freebox Server is an ADSL/FTTH router provided by the french operator Free SA. From it’s Web interface, you can apply changes and reboot the box. But if you can’t access this Web interface, you just won’t be able to reboot the box.

Didier Segura provides a PHP script that can be used to remotely reboot the box.
On my OpenBSD box, the installation and launch is quite straight forward:
Continue reading “Remotely reboot the Freebox Server from OpenBSD”

Create a better HTML website

We’ve recently seen how to create your corporate HTML website with only a few static pages. In fact, you may use this technics to create any website.

If you already read the previous article, you might remember that there is a small issue with dynamic content. As every pages where simple modified copies of each other, any modification in the common content has to be duplicated in every pages. This time, we’re gonna see how to solve this issue by using a include feature. This will require a bit a programming ; but I’ll try to use as much as possible and to explain far enough so that anyone can use it.

Continue reading “Create a better HTML website”