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]

RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2
$81.99
Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot
$60.00
New Samsung 512GB FIT Plus USB 3.2 Gen 1 Type-A Flash Drive MUF-512AB/AM NEW
$120.00
NEW Samsung NoteBook NT930QCG touch LCD Full Screen Assembly Blue
$225.77
RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro
$81.99
RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4
$93.99
RAM-GDS-DOCK-SAM88CPU RAM GDS® Tough-Dock™ for Samsung Tab A9+
$174.99
Samsung SCXSTP000, SCX-STP000 (Swingline Staple Cartridge - 3 Refills)
$57.99
Samsung 24" S3 Essential IPS 100Hz Monitor | Sealed | Fast shipping
$50.00
Samsung Galaxy View Tablet 18.4 SM-T670/677A Charging Port 100% Original Oem
$98.99