TeHashX
Very Senior Member
New site with updated guide
We need a usb-flash formatted EXT2 or a usb-hdd formated EXT3, may not work on FAT32 or NTFS.
• To start the optware environment:
• Login to router with putty terminal
• go to http://192.168.1.1/APP_Installation.asp and install Download Master (uninstall or disable after, if you are not using it)
• ipkg update
• ipkg upgrade
• ipkg install php-fcgi
• ipkg install cherokee
• ipkg install cherokee-admin
• In your favorite internet browser type 192.168.1.1:8008 and should see this webpage:
If you have already a website created, just copy it to /opt/share/www/cherokee but first set write permission to folder:
• chmod 777 /opt/share/www/cherokee
If you don't have a website, a good start is to download a template from web, like one from this site www.htmltemplates.net
Edit with your favorite HTML editor and publish.
___________________________________________________________________________________________________________________________________________
To enable PHP support:
• cherokee-admin -b (this will give you a one-time password)
• Go to 192.168.1.1:9090 and type username admin and paste the password from terminal
• Go to Sources
• Click on + sign to add new Information Source
• Nick - PHP-Interpreter
• Connection - 127.0.0.1:47990
• Add
• Change type from Remote host to Local interpreter
• Interpreter /opt/bin/php-fcgi -b 127.0.0.1:47990
• Press ENTER
• SAVE on upper right
• Graceful restart
• Click on Home and start server if is stopped
• Go to vServers
• Behavior
• Rule Management
• Click on + sign to add a Behavior Rule
• Languages
• PHP
• Add
• Create
• SAVE on upper right
• Graceful restart
• Click on Home and start server if is stopped
To verify if php is enabled we will create a test page:
• open another putty sesion because the first one is busy with cherokee-admin
• ipkg install nano
• nano /opt/share/www/cherokee/test.php and paste this code:
• Go to 192.168.1.1:8008/test.php and if you see an info page, the webserver is configured correctly.
___________________________________________________________________________________________________________________________________________
• app_set_enabled.sh cherokee yes (this is for starting webserver automatically on every router reboot)
If you want acces from wan to website and cherokee-admin:
• nano /jffs/scripts/firewall-start and add this lines:
• chmod a+rx /jffs/scripts/firewall-start (make it executable)
• Go to port forwarding and open this two ports:
Cherokee 80 192.168.1.1 8008 BOTH
Cherokee-Admin 9090 192.168.1.1 9090 BOTH
Press Apply
Now just type your_wan_ip adress in browser and should see your webpage
If you have dynamic ip, better set a dynamic dns
Youtube video HERE
We need a usb-flash formatted EXT2 or a usb-hdd formated EXT3, may not work on FAT32 or NTFS.
• To start the optware environment:
• Login to router with putty terminal
• go to http://192.168.1.1/APP_Installation.asp and install Download Master (uninstall or disable after, if you are not using it)
• ipkg update
• ipkg upgrade
• ipkg install php-fcgi
• ipkg install cherokee
• ipkg install cherokee-admin
• In your favorite internet browser type 192.168.1.1:8008 and should see this webpage:
If you have already a website created, just copy it to /opt/share/www/cherokee but first set write permission to folder:
• chmod 777 /opt/share/www/cherokee
If you don't have a website, a good start is to download a template from web, like one from this site www.htmltemplates.net
Edit with your favorite HTML editor and publish.
___________________________________________________________________________________________________________________________________________
To enable PHP support:
• cherokee-admin -b (this will give you a one-time password)
• Go to 192.168.1.1:9090 and type username admin and paste the password from terminal
• Go to Sources
• Click on + sign to add new Information Source
• Nick - PHP-Interpreter
• Connection - 127.0.0.1:47990
• Add
• Change type from Remote host to Local interpreter
• Interpreter /opt/bin/php-fcgi -b 127.0.0.1:47990
• Press ENTER
• SAVE on upper right
• Graceful restart
• Click on Home and start server if is stopped
• Go to vServers
• Behavior
• Rule Management
• Click on + sign to add a Behavior Rule
• Languages
• PHP
• Add
• Create
• SAVE on upper right
• Graceful restart
• Click on Home and start server if is stopped
To verify if php is enabled we will create a test page:
• open another putty sesion because the first one is busy with cherokee-admin
• ipkg install nano
• nano /opt/share/www/cherokee/test.php and paste this code:
• Save with CTRL-O / Enter / and exit with CTRL-X<?php
phpinfo();
?>
• Go to 192.168.1.1:8008/test.php and if you see an info page, the webserver is configured correctly.
___________________________________________________________________________________________________________________________________________
• app_set_enabled.sh cherokee yes (this is for starting webserver automatically on every router reboot)
If you want acces from wan to website and cherokee-admin:
• nano /jffs/scripts/firewall-start and add this lines:
• Save with CTRL-O / Enter / and exit with CTRL-X#!/bin/sh
iptables -I INPUT -p tcp --destination-port 8008 -j ACCEPT
iptables -I INPUT -p tcp --destination-port 9090 -j ACCEPT
• chmod a+rx /jffs/scripts/firewall-start (make it executable)
• Go to port forwarding and open this two ports:
Cherokee 80 192.168.1.1 8008 BOTH
Cherokee-Admin 9090 192.168.1.1 9090 BOTH
Press Apply
Now just type your_wan_ip adress in browser and should see your webpage
If you have dynamic ip, better set a dynamic dns
Youtube video HERE
Last edited: