Results 1 to 10 of 10

Thread: Newbie.. ok got Apache running now.. next question PHP how2

  1. #1
    Junior Member registered user
    Join Date
    Mar 2005
    Location
    California,USA
    Posts
    13

    Newbie.. ok got Apache running now.. next question PHP how2

    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

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929

    Re: Newbie.. ok got Apache running now.. next question PHP h

    Quote Originally Posted by westcparts
    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.html

    http://www.physics.ubc.ca/mbelab/com...tml/index.html

    I can't remember offhand what my computer does!

  3. #3
    Junior Member registered user
    Join Date
    Mar 2005
    Location
    California,USA
    Posts
    13
    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

  4. #4
    Senior Member registered user
    Join Date
    Aug 2003
    Posts
    126
    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

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    Worked for me, except for /etc/init.d/apache start (used /usr/sbin/apache). Will have to use the SysV - init editor.

  6. #6
    Junior Member registered user
    Join Date
    Mar 2005
    Location
    California,USA
    Posts
    13
    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

  7. #7
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    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.

  8. #8
    Junior Member registered user
    Join Date
    Mar 2005
    Location
    California,USA
    Posts
    13
    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

  9. #9
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    westcparts, are you running from CD? If so, that explains the
    The document could not be saved, as it was not possible to write to file /var/www/phpibf.php
    I think.

  10. #10
    Senior Member registered user
    Join Date
    Aug 2003
    Posts
    126
    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

    The document could not be saved, as it was not possible to write to file /var/www/phpibf.php
    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.
    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

Similar Threads

  1. Newbie question: Can I burn a CD running from a CD?
    By cjon in forum MS Windows & New to Linux
    Replies: 2
    Last Post: 09-10-2006, 01:03 PM
  2. Newbie will Apache run underneath Knoppix-Linux
    By westcparts in forum MS Windows & New to Linux
    Replies: 7
    Last Post: 04-05-2005, 11:13 PM
  3. Apache question for you
    By Pumpino in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 01-16-2005, 12:22 AM
  4. Why is apache running + is there a fast debain distro?
    By Zerro in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 07-07-2004, 01:00 AM
  5. Running progrtams at startup like apache. postrgresql server
    By softgun in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 10-28-2003, 05:17 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
  •  


IBM System X3850-X5 Server w/4x Intel  Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD picture

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD

$1599.99



Unused IBM 09P0037 MAINBOARD For  RS/6000 7044-170 P-Series picture

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series

$375.00



IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM

$179.99



IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU picture

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU

$225.00



IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU picture

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU

$999.99



IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES

$110.30



IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1) picture

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)

$150.00



1 X IBM 720 POWER SERVER WITH 32 GB RAM picture

1 X IBM 720 POWER SERVER WITH 32 GB RAM

$344.97



IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon  E5620 picture

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620

$199.99



IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012 picture

IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012

$109.99