Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: CD-based Knoppix as webserver?

  1. #11
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY, USA
    Posts
    1,256
    K, points taken!

    Regards,
    AJG

  2. #12
    Member registered user
    Join Date
    Sep 2003
    Posts
    80
    once you get all you apache configurations set up, build a script to do this at boot-time with knoppix.sh and test it with "knoppix myconfig=scan"

    When that works, there are two ways that I know of that can automate this at boot time:
    1) Start LTSP with "knoppix-terminalserver start" from a system on the LAN and change the /tmp/tftpboot/pxelinux.cfg/default so that "myconfig=scan" is the default for any LTSP booted computer. Then, network boot your webserver machine and add your knoppix.sh file to it's HDD and reboot. You an create a boot disk for network booting if it's not NIC PXE aware.

    2) remaster the Knoppix CD so that "myconfig=scan" is defaulted boot option and put you knoppix.sh file on the HDD of your webserver system. Then reboot.

  3. #13
    Junior Member registered user
    Join Date
    Jan 2004
    Posts
    17
    Hope the following may be of use to somebody...
    Heres where I now am. The webserver runs direct from an original knoppix CD - no remaster needed even though the website and updated files are on hard disk. I have set up a shell file to copy config files as needed so they overwrite the original distro ones. I have a folder called knoppixmods in my hard drive that contains these mods.
    You dont need to copy the apache(httpd) config file because you can start it with the -f option to point to the config file. I havent found a way to do similar with mysqld. Has anyone any clues? Also the mysql.host file needs rebuilding every time i reboot so am looking into that.

    modified files list:
    fstab
    hosts
    httpd.conf
    modules.conf
    my.cnf
    php.ini
    smb.conf

    The my.cnf file sets up pointers to the database directories on hard drive plus a few odds & s**s.
    httpd.conf sets up pointers to the website directory, its FQ name and a few other bits & bobs.
    Both config files redirect logs to the hard drive so they can be analysed if the system falls over.

    The code is as follows - including red herrings I followed. I found I didint need to chmod all originals, in fact if you make /etc 777 you cant do a sudo to get the system working. I've no doubt 'overkilled' the apache and mysql modules, but it seems to work.
    Samba doesnt work properly this way, but doing it from the knoppix menu does. I'm looking into that


    cd /
    sudo chmod -R 777 /var
    # sudo chmod -R 0440 /etc
    sudo ln -s /home/knoppix/b4g
    sudo cp -fs /home/knoppix/knoppixmods/hosts /etc
    # sudo cp -fs /home/knoppix/knoppixmods/httpd.conf /etc/apache
    sudo cp -fs /home/knoppix/knoppixmods/my.cnf /etc/mysql
    sudo cp -fs /home/knoppix/knoppixmods/smb.conf /etc/samba
    chmod 555 /etc/mysql/my.cnf
    sudo killall apache
    mysqladmin shutdown -u root -pkingkong
    sudo killall mysqld
    # sudo mysqladmin shutdown
    # sudo chmod -R 777 /var
    sudo apache restart -f /home/knoppix/knoppixmods/httpd.conf
    # sudo /etc/init.d/apache start
    /etc/init.d/mysql restart
    # mysqld
    # sudo chmod -R 777 /var

    #mysql -h host -u user -p
    # mysql -u root -p
    /etc/init.d/samba restart

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Knoppix Suitability for a specialised webserver
    By hall in forum Customising & Remastering
    Replies: 0
    Last Post: 04-11-2005, 10:27 AM
  2. knoppix version: webserver, php & mysql
    By tazzi in forum Customising & Remastering
    Replies: 7
    Last Post: 01-26-2004, 12:29 AM
  3. Knoppix as webserver
    By rubis in forum General Support
    Replies: 14
    Last Post: 11-26-2003, 04:44 PM
  4. Web-based ICQ (ICQ2GO - Jawa based) with Knoppix
    By pilovis in forum General Support
    Replies: 2
    Last Post: 03-28-2003, 09:17 PM
  5. want to create a knoppix webserver....
    By TheSovereign in forum Customising & Remastering
    Replies: 2
    Last Post: 02-11-2003, 12:53 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
  •  


USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$573.98



Windows 11 Pro Install/Recovery/Repair USB Flash Drive picture

Windows 11 Pro Install/Recovery/Repair USB Flash Drive

$35.00



SK HYNIX 32GB 2RX4 PC4 2666V ECC SERVER RAM picture

SK HYNIX 32GB 2RX4 PC4 2666V ECC SERVER RAM

$199.00



Lot Of 4 Samsung 32GB Server 2RX4 PC4-2133P-RA0-10 Server RAM picture

Lot Of 4 Samsung 32GB Server 2RX4 PC4-2133P-RA0-10 Server RAM

$560.00



LOT OF 4 SK Hynix 32GB DDR4-2133 PC4-2133P 2Rx4 Server RAM RDIMM picture

LOT OF 4 SK Hynix 32GB DDR4-2133 PC4-2133P 2Rx4 Server RAM RDIMM

$640.00



USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot picture

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot

$3.75



Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM  M393A4K40CB2-CTD6Q picture

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q

$169.00



5 in 1 Memory Card Reader USB 3.0 OTG Adapter SD Card Reader For iPhone/iPad LOT picture

5 in 1 Memory Card Reader USB 3.0 OTG Adapter SD Card Reader For iPhone/iPad LOT

$9.99



Memory Card Reader Mini 26-IN-1 USB 2.0 High Speed For CF xD SD MS SDHC picture

Memory Card Reader Mini 26-IN-1 USB 2.0 High Speed For CF xD SD MS SDHC

$4.95