Other Hardware

Wiki Resources

Sponsored Links

LLMP (Linux, Lighttpd, MySQL, PHP) on a Plug(omit Pogoplug specific steps for other platforms) (LLMP is in place of LAMP to conserve resources) (Pogoplug specific refers to Pogoplug V1, Pogoplug V2 (gray and pink), Pogoplug Pro, Pogoplug Biz, Seagate devices such as Dockstar and GoFlex).

(Please be aware that you are responsible for any damage to your hardware, software, or files, so use extreme caution when following guides/instructons on this site. NO warranty is explicitly or implicitly provided. It is assumed that you know what you are doing and if not, get assistance from somebody that does, or do not perform the installation.)

Lighttpd

1. Install Lighttpd and PHP after making the root file system accessible and creating /var/run:

2. Configure Lighttpd by editing lighttpd.conf in /opt/etc/lighttpd by typing "cd /opt/etc/lighttpd" and edit lighttpd.conf with your preferred editor (if you use nano, try to invoke it with "nano -w filename" so that long lines are not wrapped). Because Pogoplug based plugs use port 80 for Cloud Engines functionality, a different port such as 8081 needs to be used. You also need to turn on some modules. The web site directory has to be designated.

Make sure "mod_access", "mod_auth", "mod_fastcgi", and "mod_accesslog" and any other modules you choose are uncommented.

PHP

And then accessing it with your web browser with the address "http://your.pogoplug.ipaddress:8081/php-info.php". This should give you the PHP configuration. You may want to rename or remove this file if you do not want other people to know your configuration.

You need to initialize pear by typing "pear install DB". Make sure to place "/opt/share/pear" in your php.ini include_path.

1. Time to set up your MySQL root password which should probably be different from your system password"

Type "/opt/bin/mysqladmin -u root password 'sqlrootpassword'"

Where sqlrootpassword is the password you chose and should remember because you need it also for the next step.

2. Change to the phpmyadmin directory with "cd /opt/share/www/phpmyadmin" and edit config.inc.php with your favorite editor (if you use nano, make sure you use it as "nano -w filename" which is important here).
Next, search for the line $cfg['Servers'][$i]['password'] and fill in your sql root password between the empty quotes without removing them. Save your changes.

3. If you used a different default web site directory other than "/opt/share/www" then phpmyadmin has to be place there. You can do this with a symbolic link"

Django Framework

Test they installation by typing "python2.6", then at the python prompt type "import django" then "print django.get_version()". Control-d to exit.

By default, the runserver command starts the development server on the internal IP at port 8000. If you want to change the server's port, pass it as a command-line argument. Type this command to start the server on port 8080:

"python2.6 manage.py runserver 8080"

If you want to change the server's IP, pass it along with the port.

To listen on all public IPs (Django only listens to request on localhost by default), use:

"python2.6 manage.py runserver 0.0.0.0:8000"

Information for Django is at "http://www.djangoproject.com/".
How to use it with Lighttpd "http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/".

To be able to access your web site from the internet, you may need to set up a Dynamic DNS updater. If you have a Pogoplug Pro, you may have conflicts with wget and wget-ssl. Just follow the suggestion in the install to place the new wget in /usr/bin and then "ipkg remove wget".