I don't really get what your asking for, but to start apache (the http-server) just type:
What do you mean by a "shared-folder" and what's this script for?Code:sudo /etc/init.d/apache start
does anyone know how i can go about this on knoppix.... jsut the commands and scripts i shud use so that i can write a script to start it after shutdowns......
I don't really get what your asking for, but to start apache (the http-server) just type:
What do you mean by a "shared-folder" and what's this script for?Code:sudo /etc/init.d/apache start
i need to know what folder is the public shared one..... where i can put the index.html:P i just wanna know all these commands so that i can put them to a text file...... then ill be able to run them faster than having to type em in
To have apache start on boot edit the file /etc/init.d/bootmic.sh as root in a console and add the lines:Originally Posted by punk000
Or you can use the command in the post above for the start either will work. the "shared" folder is set to /var/www in the file /etc/apache/httpd.conf with the DocumentRoot /var/www on line 1004 I believe you can change this to whatever you want check the apache docs that are included I just leave it as is and put my web pages in the /var/www.Code:#Start the apache web server on boot for my web pages /usr/sbin/apachectl start
When you boot you will see an error telling you that it could not determine the fully qualified domain name and it is setting it to http://127.0.0.1 (localhost) and that is how you can access your web pages while you are running. eg. http://127.0.0.1. http://localhost or http://hostname the hostname being the name of your machine in the file /etc/hostname. You will just see the place holder web page welcoming you to your new home page until you replace the index.html. Also you may have to give yourself permission to access the /var/www directory (can't remember at the moment it's been a while since I last did it).
You may also want to look into installing htdig if you want to be able to search the pages that you have it comes in handy when you are trying to find something but can't remember which page you have it on.
[edit]
A good place for web design tips and apache in general is bignosebird.
[/edit]

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1299.99
IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99
Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series
$375.00
IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99
IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU
$999.99
Compaq ProLiant 1500R 5/100 rack server, Series 3155, with IBM 2.1GB HD, VINTAGE
$295.00
IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)
$150.00
IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$110.30
IBM System X3650 M3 Server Xeon E5620 2.4 GHz 16 GB Ram Raid M5015 No OS No HDD
$87.96
IBM 00FN709 X3850 X6 Compute Book 3837 Barebone
$114.99