Installation

This chapter describes a minimal installation of Apache.

Fritz!Box without USB memory

In principle it is possible to get the Apache run on a Fritz!Box without USB memory. However for that configuration I recommend to use a small web server as httpd.

That’s why I skip at this point an Apache configuration.

SQlite2 support

PHP 5.4.x doesn’t support SQlite2. If you need SQlite2, you have to downgrade your PHP into version 5.3.x.

Fritz!Box with USB memory

ATENTION: old PHP version includes a critical bug. Please update the php binary:

For update replace php or php-cgi in folder cgi-bin with the new binary from archive. All downloads was updated!

1. Download Apache 2.4.6:

Note: This versions are not tested jet. Please give me your feedback!

  • for mipsel-Fritz!Boxes (e.g. 7270, 7170 et al.)
  • for mips-Fritz!Boxes (e.g. 7390, 7340 et al.)
  • Compiled in features:
    • Enable deflate
    • Enable SSL
    • Enable libxml dependent modules
    • Compile modules in instead of building loadable modules
    • Create statically linked binary
  • Module list (for both versions):

Download Apache 1.3.41:

  • for mipsel-Fritz!Boxes (e.g. 7270, 7170 et al.)
    • A list of compiled-in modules:

  • for mips-Fritz!Boxes (e.g. 7390, 7340 et al.)
    • UPDATED at 03.02.2011: apache.conf was updated.
    • UPDATED at 13.08.2011: php-cgi was updated. (The old binary was defect)
    • UPDATED at 11.05.2012: php-cgi was updated.
    • A list of compiled-in modules:

Download Apache 2.2.17:

2. Unpack the archive on the USB memory device into the directory “apache”

3. The file conf/apache.conf is used for the configuration. My apache.conf, located in the conf directory has to be adapted first::

  • the string “Hitachi-HTS543216L9A300-01” (name of MY hard disk) must be replaced by the name of your USB memory device: use a search and replace function for doing that (Ctrl+H in Notepad++ or Ctrl+R in Kate)
  • NOTE: Find the name of your USB memory device:

IMPORTANT NOTE! Since firmware xx.xx.86 there is no more user “ftpuser”! It was renamed to “boxusr80” (verified only on Fritz!Box 7270v2). Therefore you must adapt apache.conf :

The new user name you can locate in /etc/passwd:

4. You can start Apache now: look at the code below. There should be no errors coming up. Using “ps” one should verify if Apache is really running:

NOTE: there might be running more or less than the eight processes of the example.

5. IF there were no errors than the Apache-Server should be visible INTERNALLY as http://fritz.box:85/(picture below)

NOTE: Apache is running only locally, PHP and SQLite are already up and running!

Screenshot

 

fritzbox_apache_welcome.jpg
 

 

6. CONGRATULATIONS! Our first, simply configured Apache Web server is up and running. Everything OK than you can add the code below to debug.cfg (compare chapter. “debug.cfg”)

7. Now you can extend further your Apache. Look into the sub chapters or follow the links:

Code

Comments are closed.