-
starting a web server
hi, does anyone know how i can start hosting my website off knoppix? i'm a extremely dumb. step by step would help please... like yea... cant figure this thing out... like setup the IP and stuff, i got a linksys router and i can route it to knoppix if i knew how to give it the ip and stuff.. please help
-
Senior Member
registered user
Re: starting a web server
![Quote](images/misc/quote_icon.png)
Originally Posted by
elitekid
hi, does anyone know how i can start hosting my website off knoppix? i'm a extremely dumb. step by step would help please... like yea... cant figure this thing out... like setup the IP and stuff, i got a linksys router and i can route it to knoppix if i knew how to give it the ip and stuff.. please help
![Sad](images/smilies/icon_sad.gif)
Knoppix on the HD or running from the CD?? If installed on the HD then as root use /etc/init.d/apache start to start the web server you should then be able too on the machine where you are running apache use http://127.0.0.1 and see the Debian apache test page then it is just a matter of changing the default index.html and adding the pages for your site in the /var/www directory. To access from other machines on your network then you use the IP address of the machine that apache is running on in the browser for instance if I want to access my pages then I use http://192.168.0.254 which is the IP of the server on my home network or if I want since I have a name for the machine in my /etc/hosts file I can use http://SleepyTux.
Code:
HappyTux:/home/stephen# cat /etc/hosts
127.0.0.1 localhost
192.168.0.1 HappyTux
192.168.0.2 DocTux
192.168.0.3 BashfulTux
192.168.0.254 SleepyTux
192.168.0.10 knoppixtest
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
To have apache started every time you boot the machine use update-rc.d apache defaults as root and it should put the proper links back in place to have the server started or you can achieve the same effect by apt-get --reinstall install apache to reinstall also as root and restore the defaults.
If you are running from the CD then you would need to use sudo in front of the start command I gave above. Then you would need to figure out how to use a different directory for the storage of the files if you wanted them to be on a HD and not in the ramdisk, I do believe I have seen a post on the site here on how to do that you may want to try a search for it if you are going to use this method.
-
Junior Member
registered user
you will also most likely have to configure your router so that computers outside yournetwork can see your websight. this is very simple all you do is go to (in windows or linux) 192.168.1.1 in internet explorer konqueror or whatever then goto. . . .
the applications and gaming tab
under application type "Apache" (no "")
the under start type "80" for this is the standard http port
under end type "80"
protocall select "tcp"
under ip address type the address of your server (ex: 192.168.1.100)
and then you can enable / disable it with the enable checkbox
click save settings at the bottom
NOTE: this is the proceedjure for my WRT54G 802.11G router yours might change
Good Luck,
jc01
Similar Threads
-
By eco2geek in forum Tips and Tricks
Replies: 0
Last Post: 12-14-2004, 11:36 AM
-
By tweaked in forum Networking
Replies: 5
Last Post: 10-14-2004, 05:27 PM
-
By cipher_in in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 08-26-2004, 10:04 AM
-
By Jerunk in forum General Support
Replies: 2
Last Post: 06-20-2004, 04:00 AM
-
By roberto in forum Customising & Remastering
Replies: 4
Last Post: 03-28-2003, 04:15 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Cordless Wireless Air Blower Handheld Vacuum Cleaner Strong Suction Car Home picture](/store/img/g/YJYAAOSw7ztmSqw4/s-l225/Cordless-Wireless-Air-Blower-Handheld-Vacuum-Clean.jpg)
Cordless Wireless Air Blower Handheld Vacuum Cleaner Strong Suction Car Home
$24.98
![Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home picture](/store/img/g/3CsAAOSwP95mRXfH/s-l225/Electric-Vacuum-Cleaner-Air-Duster-Suction-High-Pr.jpg)
Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home
$9.97
![Compressed Air Duster with Air Blower 100000RPM Vacuum Cleaner and Air Duster picture](/store/img/g/H2gAAOSwW9xl3827/s-l225/Compressed-Air-Duster-with-Air-Blower-100000RPM-Va.jpg)
Compressed Air Duster with Air Blower 100000RPM Vacuum Cleaner and Air Duster
$38.99
![Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home picture](/store/img/g/TUkAAOSwnztmcSKz/s-l225/Electric-Vacuum-Cleaner-Air-Duster-Suction-High-Pr.jpg)
Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home
$9.99
![Mini USB Keyboard Vacuum Cleaner PC Laptop Computer Brush Dust Cleaning Kit picture](/store/img/g/P5sAAOSwpW9lELXj/s-l225/Mini-USB-Keyboard-Vacuum-Cleaner-PC-Laptop-Compute.jpg)
Mini USB Keyboard Vacuum Cleaner PC Laptop Computer Brush Dust Cleaning Kit
$2.99
![Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit US picture](/store/img/g/dZoAAOSwHINk6MDB/s-l225/Mini-Computer-Vacuum-USB-Keyboard-Cleaner-PC-Lapto.jpg)
Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit US
$13.68
![New Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit picture](/store/img/g/OKUAAOSwIn5mYK~a/s-l225/New-Mini-Computer-Vacuum-USB-Keyboard-Cleaner-PC-L.jpg)
New Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit
$13.43
![100000RPM Cordless Air Duster Blower Compressed Computer Cleaning Vacuum Cleaner picture](/store/img/g/mR4AAOSwSslkgYJ2/s-l225/100000RPM-Cordless-Air-Duster-Blower-Compressed-Co.jpg)
100000RPM Cordless Air Duster Blower Compressed Computer Cleaning Vacuum Cleaner
$28.98
![Electric Mini Air Duster Blower Vacuum Cleaner for PC Computer Laptop Dust picture](/store/img/g/6GoAAOSwmcplk3PH/s-l225/Electric-Mini-Air-Duster-Blower-Vacuum-Cleaner-for.jpg)
Electric Mini Air Duster Blower Vacuum Cleaner for PC Computer Laptop Dust
$27.85
![Eureka Stylus Nec380 Cordless Vacuum Bldc Motor Led Headlights Lightweight Grey picture](/store/img/g/pMwAAOSwG61marJT/s-l225/Eureka-Stylus-Nec380-Cordless-Vacuum-Bldc-Motor-Le.jpg)
Eureka Stylus Nec380 Cordless Vacuum Bldc Motor Led Headlights Lightweight Grey
$118.88