http://www.tldp.org/HOWTO/DOS-Win-to-Linux-HOWTO.htmlOriginally Posted by westcparts
http://www.physics.ubc.ca/mbelab/com...tml/index.html
I can't remember offhand what my computer does!
With help got knoppix and Apache running, now can i get alittle direction on php how to get it started and then if questions arise will ask more or just some general help..
also i miss my dos function like dir/o/p/s where are the or windows mycomputer list.
Thanks Michael
http://www.tldp.org/HOWTO/DOS-Win-to-Linux-HOWTO.htmlOriginally Posted by westcparts
http://www.physics.ubc.ca/mbelab/com...tml/index.html
I can't remember offhand what my computer does!
thanks again fingers..
tried /usr/sbin/php4 & php no php
also tried /usr/sbin/mysql no mysql
tried sudo in front of each also
Michael![]()
Once you have started Apache (/etc/init.d/apache start as root) then PHP should be running.
As root create a text file in the /var/www directory. Call it phpinf.php and put in
<?php phpinfo(); ?>
Open up a browser (Mozilla or Konqueror) and visit the file
http://127.0.0.1/phpinf.php
This should give you all the PHP related features that come with Knoppix.
Regards,
Mark
Worked for me, except for /etc/init.d/apache start (used /usr/sbin/apache). Will have to use the SysV - init editor.![]()
thanks Mark & fingers..your load seemed to work mark & fingers sysv- init editor ?
have 3 emacs/joe/kwrite/kate/nedit/vim/xedit/gvim/zile .. no sysv
Thanks Michael
Ah, I've got it, I think: mark & westparts are running from a CD, I'm running from HD. The Sys-v init editor is under K>System>SysV-init Editor and is "just" a way of telling Knoppix which services to start at boot (and when to stop them). In the context of a CD Knoppix, it's perhaps not so useful.
i used Kedit & typed in the commands as mark suggested, but it would not let me save them:
The document could not be saved, as it was not possible to write to file /var/www/phpibf.php
Check that yo have write access to this file or enough disk space is available
hmm ..
Thanks Michael
westcparts, are you running from CD? If so, that explains theI think.The document could not be saved, as it was not possible to write to file /var/www/phpibf.php
Hi all,
Interestingly, on the LiveCD I tested before my previous posting (Knoppix 3.6) the command
/etc/init.d/apache start
only works if you use it first. That is when the CDROM has first booted up.
If I do
/usr/sbin/apache
first then /etc/init.d/apache start won't work, because apache is already running. The ways to make the
/etc/init.d/apache start
command work seems to me to be to as root:
either
kill all the apache processes that are running. To do this I used the command
ps aux | grep apache
This gives a list.
Then I killed the process running as root with the command
kill 944
The 944 is the process number.
Then check by doing
ps aux | grep apache again.
This time you should not get any processes returned.
/etc/init.d/apache start
should then work.
Alternatively try
/etc/init.d/apache stop
and this should hopefully have the same effect as killing the apache processes.
The command
/usr/sbin/apache stop
will not stop the apache processes from running.
Regarding westcparts
If you are running from the CDROM then you need to open kwrite, or another text editor (vim, emacs, kate and nedit are also included in knoppix), as root for the file to be saved.The document could not be saved, as it was not possible to write to file /var/www/phpibf.php
To do this as the default user knoppix open a knoppix terminal window. This should give you
knoppix@tty0[knoppix]#
Then type
su followed by [enter]
The terminal should change to
root@tty0[knoppix]#
Then type
kwrite followed by [enter]
This should start kwrite as root and enable you to save the file in the /var/www directory.
When running from a hard disk Knoppix installation you can use ksysv - started as root with the command ksysv followed by [enter]
and this provides a helpful graphical interface. It doesn't work when running from the CDROM however.
Hope this helps
Regards,
Mark

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray
$174.99
Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor
$175.00
Lenovo ThinkPad T14S Gen 1 8-Core 4750U 1.70 GHz 512 GB SSD 16 GB RAM Win11Pro
$240.00
Dell Optiplex 7050 Micro Core i5-7500 8 GB RAM 256GB SSD Microsoft Windows 11
$89.99
Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011
$30.00
AMD Ryzen 7 9700X 8-Core 16-Thread 40MB Cache Socket AM5 9000 Series Processor
$245.99
AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked Desktop Processor
$189.99
Microsoft Surface Go 2 Laptop Core i5 1135G7 2.4GHz 8GB 128GB SSD
$179.99
HP Z420 Pro Workstation PC Xeon E5-2660 8-Core 64GB RAM Quadro K5000 128GB SSD
$249.00
DELL Optiplex 780 SFF CORE2DUO 3.0GHz 8GB RAM 250GB HDDDVDRW NO OS
$99.99