-
Senior Member
registered user
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=
Similar Threads
-
By ken39 in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 11-09-2007, 05:05 AM
-
By acer0001 in forum Customising & Remastering
Replies: 2
Last Post: 03-07-2005, 11:48 PM
-
By helios17 in forum General Support
Replies: 1
Last Post: 11-21-2004, 01:11 AM
-
By true1ever in forum General Support
Replies: 3
Last Post: 01-06-2004, 04:56 PM
-
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
-
Forum Rules

Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray
$39.99

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A
$64.00

HGST Ultrastar HUS726040AL5210 4TB 7200RPM SAS 12Gb/s Enterprise HDD
$41.00

Tested WD Ultrastar DC HC520 12TB 7.2K RPM SATA 6Gb/s 3.5" HDD HUH721212ALN600
$239.99

Seagate Exos 7E8 4TB SAS 12Gb ST4000NM0025 7200 512n 3.5 HDD
$48.99

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE
$68.99

Seagate Barracuda ST1000DM003 1 TB SATA III 3.5 in Desktop Hard Drive
$23.99

Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5" Enterprise HDD
$339.00

Seagate ST8000NM0075 Enterprise Capacity 3.5 HDD 8TB SAS Hard Drive 8TB EXOS
$184.99

Dell Enterprise Plus Exos X10 10TB 3.5" SAS HDD ST10000NM0276 100%-Wiped/Tested
$174.99