Apache, PHP, Perl and MySQL for Dreambox
Register
Results 1 to 7 of 7
  1. #1
    Administrator
    Devilfish's Avatar
    Join Date
    Feb 2008
    Location
    /cdk
    Posts
    7,844
    Thanks Thanks Given 
    71
    Thanks Thanks Received 
    2,547
    Thanked in
    203 Posts

    Default Apache, PHP, Perl and MySQL for Dreambox

    This Tutorial is made by Edmund Sch?pf

    First of all I have not contributed in developing or compiling php, msql und perl for PowerPCs.
    I searched for this software and found it at gamesquad.nl. As some people in the forum has been looking vor such a software and gamesquad URL is no more reachable, I decided to write this kind of instructions
    I've installed and tested apache, php und perl on my Dreambox 7020.

    Instructions

    You can find a lot of instructions (and better then mine) on the internet, but maybe it could be helpeful for som of you.
    I made the installation of the local package without understanding why. I installed apache on another Dreambox without local.tar.gz and it worked.
    In order to work comfortabely you should have installed a harddisk on your dreambox.


    Installation Apache

    1. After downloading the required packeges from this site, create a temporary directory (for example /hdd/tmp)
    1. Create a directory named "opt" and give it the rights 755 an then change to the directory created


    Code:
    cd /hdd; mkdir opt; chmod 755 opt; cd opt;
    1. Extract the tar using the gzip command in opt


    Code:
    gzip -dc /hdd/tmp/httpd.tar.gz |tar xf -
    1. now you can start apache


    Code:
    /hdd/opt/httpd/bin/apachectl start
    1. The standard Port for this installation of apache is 8080 (see file /hdd/opt/httpd/conf/httpd.conf where you can finde a entry like: Listen 8080
    1. To test now the freshly installed apache, create a html-file (mypage.html) and copy it to /hdd/opt/httpd/htdocs

    Code:
    <html>
    <body>
    This is my html-site on my apache
    </body>
    </html>
    and insert on your WEB-Browser the following address:

    Code:
    http://ip-address-of-my-dreambox:8080/mypage.html
    where ip-address-of-my-dreambox ist the IP-Address of your Dreambox (i.e. 192.168.22.70) and if all works well you will sie the messagge "This is my html-site on my apache"

    Installation of PHP

    1. unpack the php-package (we copied it to /hdd/tmp)
    Code:
    cd /hdd/opt/httpd





    Code:
    gzip -dc /hdd/tmp/apache_php.tar.gz |tar xf -
    1. copy file httpd.conf.php on httpd.conf


    Code:
    cp conf/httpd.conf.php conf/httpd.conf
    1. Make the following entries to httpd.conf in the LoadModule/AddType Section
    Code:
    LoadModule php4_module modules/libphp4.so





    Code:
    AddType application/x-httpd-php .php
    1. restart apache
    Code:
    /hdd/opt/httpd/bin/apachectl restart
    In the same way you can install perl and mysql (I did not test myqsl)

    Code:
    gzip -dc /hdd/tmp/perl.tar.gz |tar xf -
    Code:
     
    gzip -dc /hdd/tmp/mysql.tar.gz |tar xf -
    ==== START OPTIONAL INSTALLATION ====

    Install instructions for some libs/binaries for dreambox
    I recommend to use the 'cut and paste' feature to perform these steps. The are a lot of . (dots) in the commands

    Download local.tar.gz and FTP to /hdd/tmp
    Unpack tarfile

    Code:
    mkdir -p /hdd/opt
    cd /hdd/opt
    gzip -dc /hdd/tmp/local.tar.gz |tar xf -
    Give user root a writable home directory ( for .profile ) by changing the 6th field ( : is seperator ) in /etc/passwd from / to /hdd/root. If you want to edit /etc/passwd with mc (Midnight Commander = Norton Commander clone) do the following

    Code:
    . /hdd/opt/local/env.sh # Don't forget dot and space
    cd /etc
    mc
    Search in mc passwd and press edit button (F4).
    exit mc (F10)

    Create a .profile for root. The .profile gets executed during login.

    Code:
    mkdir /hdd/root
    echo >/hdd/root/.profile "[ -f /hdd/opt/local/env.sh ] && . /hdd/opt/local/env.sh"
    Execute .profile

    Code:
    . /hdd/root/.profile
    # Don't forget dot and space

    After performing these instructions, the user root has a .profile. In this .profile a script (/hdd/opt/local/env.sh) is called to set the right environment for all other programs downloaded from my download site. The script /hdd/opt/local/env.sh extends the PATH variable in such a way that all bin and sbin directories found in /hdd/opt/local/* are added.

    ==== END OPTIONAL INSTALLATION ====
    Last edited by Devilfish; 17th October, 2008 at 01:57 AM.
    Get Digital Kaos on your Apple or Android device with Tapatalk

  2. #2
    Newbie
    Join Date
    Jun 2009
    Posts
    5
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Greate I can make it with Ecommerce Thanks

  3. #3
    Newbie
    Join Date
    Aug 2009
    Posts
    1
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Thanks for the guide
    however how could I download the packages?

  4. #4
    Newbie
    Join Date
    Sep 2009
    Posts
    1
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Thank you, it worked

  5. #5
    Newbie
    Join Date
    Jun 2009
    Posts
    1
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Thank you.....

  6. #6
    Newbie
    Join Date
    Jul 2008
    Posts
    2
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default hi

    hello where can i find the files

  7. #7
    Newbie
    Join Date
    Nov 2011
    Posts
    2
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Have a look there to get the files: Download and instructions for installing apache, php, perl, mysql on Dreambox 70x0 (PowerPC).
    You'll find all the required files in the middle of the page, after Download tar.gz for Dreambox (PowerPC Version)

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.