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:
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.
On my way for constant Web site rendering improvement, I decided to give XCache a try. I’ve been using eaccelerator for a long time and found it very efficient. But I never looked at the Google WebMaster Tools metrics before
OpenBSD provides an optimized and secured Apache v1.3 server. It also provides various PHP modules. But it doesn’t provide the eAccelerator PHP module (yet?).
Here’s how I compiled, installed and run eAccelerator on OpenBSD’s native Apache:
On a NAMP (NetBSD, Apache, MySQL, PHP) server, you can get a faster PHP rendering using eAccelerator.
First of all, install the
Then, configure PHP to use it and the system to allow memory allocation:
# vi /usr/pkg/etc/php.ini (...) extension=eaccelerator.so [eaccelerator] eaccelerator.enable="1" eaccelerator.optimizer="1" eaccelerator.shm_only="256" eaccelerator.debug="0" (...) # sysctl -w kern.ipc.shmmax=536870912 # vi /etc/sysctl.conf kern.ipc.shmmax=536870912 # /etc/rc.d/apache restart
According to ApacheBench, the initial “Time per request” was 3 sec. Using eAccelerator, it goes down to 1.9 sec.
Source: Optimize PHP