NSLU2-Linux
view · edit · print · history

Apache and PHP on OpenSlug

This is a small guide on how to install apache and php. I have got this to work after a lot of changes and the help of user pumpkin0. (please if you follow this guide and there is something that I left out edit this to include what I left out)

Before starting be sure to uninstall apache and php if you already have them installed.

Next you will want to download packages from these feeds:

http://ipkg.nslu2-linux.org/feeds/optware/nslu2/native/

http://ipkg.nslu2-linux.org/feeds/optware/nslu2/cross/

Here are the package names (use wget <feed_name>package_name to download these packages to a folder:

apache_2.0.54-2_armeb.ipk

libxslt_1.1.12-3_armeb.ipk

apr-util_0.9.6-3_armeb.ipk

openldap-libs_2.2.26-5_armeb.ipk

apr_0.9.6-2_armeb.ipk

openldap_2.2.26-5_armeb.ipk

cyrus-sasl-libs_2.1.20-8_armeb.ipk

php-apache_5.0.4-1_armeb.ipk

expat_1.95.8-3_armeb.ipk

php_5.0.4-1_armeb.ipk

gdbm_1.8.3-2_armeb.ipk

zlib_1.2.2-2_armeb.ipk

libdb_4.2.52-3_armeb.ipk

libxml2

Next list each of these packages after ipkg install and run it.

This will install all the packages. If you get package not found go back to one of the above feeds and download it.

Totolito saids: I downloaded alls package in /tmp with wget. Then I ran "ipkg install apache_2.0.54-2_armeb.ipk", no problem. But when I try ipkg install libxslt_1.1.12-3_armeb.ipk", that said: "Cannot find package". Same after ipkg update. What to do? Thanks <-

update

after installing libxml2 I get the following erorrs: edit /opt/etc/apache2/httpd.conf file. On the line that says DocumentRoot? = (something) make sure this is a writealbe folder of the base wabpage. root@tosSlug:/webstuff# ipkg install libxml2_2.6.22-r1_armeb.ipk Installing libxml2 (2.6.22-r1) to root... Configuring apache

next run /etc/init.d/S80Apache? start

this should start httpd. If it does not check the log file and find out why. You may need to edit your config file.

view · edit · print · history · Last edited by Totolito.
Based on work by Totolito, aj, and pumpkin0.
Originally by aj.
Page last modified on May 10, 2006, at 01:12 PM