Results 1 to 3 of 3

Thread: enabling apache in bootable knoppix

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    2

    enabling apache in bootable knoppix

    Hi all,

    Would like to ask how do i enable apache+cgi+perl using the live CD , like to run some perl n cgi scripting without installing yet
    tried to do a chkconfig --list httpd , unfortunally don't think knoppix had that install.

    appreciate if anyone could enlighten me on this

    Thanks a million,
    vinlouis

  2. #2
    Senior Member registered user
    Join Date
    Aug 2003
    Posts
    126
    You need to be root to do this.
    You can do it graphically by running these commands from a terminal window as user knoppix
    su root <enter>
    then, at the root prompt
    konqueror<enter>
    Then you can browse the filesystem and write/copy files to the /var/www directory from within konqueror.

    I find writing php code in a text editor works for me.
    At the root prompt type
    nedit followed by [enter]
    Then, as previously suggested write
    Code:
    Code:
    <?php phpinfo(); ?>
    and save the file in the /var/www directory as suggested by MaxIT.
    Then visit the file with a browser as he also suggests.
    Once this works you can then test out perl and bash scripts.
    Use whatever text editor you prefer out of those available (nedit, kate, kwrite, emacs and vim).
    Create a file as root with the following.
    Code:
    Code:
    #!/bin/bash
    
    printf "Content-type:text/html\r\n\r\n";
    printf "<html>hello world</html>\r\n";
    This bash script should be saved as hello.cgi and saved in the /usr/lib/cgi-bin directory.
    It also needs to be made executable for all users:
    At a root prompt type
    chmod 755 /usr/lib/cgi-bin/hello.cgi
    Then visit the file with a browser e.g. mozilla
    http://127.0.0.1/cgi-bin/hello.cgi

    Once this works you can do the same for perl. This time saving the file as hello.pl
    and using the following code:
    Code:
    Code:
    #!/usr/bin/perl
    
    print "Content-type:text/html\n\n";
    print "<html>hello world</html>\n";
    Once you have got these three programs going then you have a wide choice to start open source web programming under Knoppix Debian/Gnu/Linux.


    References
    http://www.knoppix.net/forum/viewtop...300&highlight=

    http://www.knoppix.net/forum/viewtop...105&highlight=

  3. #3
    Junior Member
    Join Date
    Sep 2005
    Posts
    2
    thanks dude

Similar Threads

  1. Knoppix bootup stop at "Enabling DMA acceleration...&qu
    By ken39 in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 11-09-2007, 05:05 AM
  2. Enabling telnetd on Knoppix CD
    By acer0001 in forum Customising & Remastering
    Replies: 2
    Last Post: 03-07-2005, 11:48 PM
  3. enabling 3d in knoppix 3.6 hd install
    By helios17 in forum General Support
    Replies: 1
    Last Post: 11-21-2004, 01:11 AM
  4. Enabling apache-SSL
    By true1ever in forum General Support
    Replies: 3
    Last Post: 01-06-2004, 04:56 PM
  5. Advice on enabling ACPI in Knoppix
    By beforewisdom in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 04-14-2003, 07:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Vintage Digital VR241-A color CRT monitor, powers on, DEC Rainbow or terminal picture

Vintage Digital VR241-A color CRT monitor, powers on, DEC Rainbow or terminal

$150.00



Vintage DEC Digital T1043 DWMBB/B VAXBI XMI Adapter 5018232-01 C1 VAX Board picture

Vintage DEC Digital T1043 DWMBB/B VAXBI XMI Adapter 5018232-01 C1 VAX Board

$119.99



Vintage DEC Digital XMI-A1 5017293-01A1 LWPR BE3-0 VAX Circuit Board T2012 picture

Vintage DEC Digital XMI-A1 5017293-01A1 LWPR BE3-0 VAX Circuit Board T2012

$74.99



Vintage DEC/Mostek memory systems MK 8015 AA-00 6805-08015 1100 REV C(B7) picture

Vintage DEC/Mostek memory systems MK 8015 AA-00 6805-08015 1100 REV C(B7)

$279.99



Vintage DEC VT100 Series Terminal (Powers On) picture

Vintage DEC VT100 Series Terminal (Powers On)

$499.99



Vintage DEC Digital Equipment DELNI 8-Port Ethernet Local Network Hub VAXstation picture

Vintage DEC Digital Equipment DELNI 8-Port Ethernet Local Network Hub VAXstation

$79.95



DEC T2053-DE MS65A-DA 128MB VAX 6000 Memory Board Gold Scrap Vintage picture

DEC T2053-DE MS65A-DA 128MB VAX 6000 Memory Board Gold Scrap Vintage

$79.99



Vintage DEC LK201 Digital Equipment Corporation (DEC) LK201-AA Computer Keyboard picture

Vintage DEC LK201 Digital Equipment Corporation (DEC) LK201-AA Computer Keyboard

$149.99



Vintage DEC Digital Starion 200 Desktop PC Powers On Boots To BIOS NO HDD - DW picture

Vintage DEC Digital Starion 200 Desktop PC Powers On Boots To BIOS NO HDD - DW

$269.99



Vintage DEC Digital VSXXX-AA.B03 Hawley 3-Button Mouse 1986 Tested Working picture

Vintage DEC Digital VSXXX-AA.B03 Hawley 3-Button Mouse 1986 Tested Working

$111.00