Two questions:/dev/cdrom and php - Slackware

This is a discussion on Two questions:/dev/cdrom and php - Slackware ; I have a fresh install of Slack 12, in parallel with an older install of slack 11. Problem 1. I want to mount a cdrom. The line for mounting a cdrom was commented out in /etc/fstab. so I uncommented it. ...

+ Reply to Thread
Results 1 to 12 of 12

Thread: Two questions:/dev/cdrom and php

  1. Two questions:/dev/cdrom and php

    I have a fresh install of Slack 12, in parallel with an older install
    of slack 11.

    Problem 1. I want to mount a cdrom. The line for mounting a cdrom was
    commented out in
    /etc/fstab. so I uncommented it. Then mount couldn't find /dev/cdrom.
    I checked in my Slack 11 version. In Slack 11 /dev/cdrom is an alias
    for /dev/sr0. However in Slack 12 /dev I find no sr0

    Problem 2. How do I activate php in the apache server? I tried using
    the httpd.conf from my Slack 11 install but that caused an error on
    bootup. So I decided to reinstall the httpd package from directory n
    on the first install cdrom. See problem 1 above for continuation.

    The install release notes don't seem to deal with either problem. Once
    upon a time PV recommended saving your old /etc files but the
    httpd.conf has moved in Slack 12 and the old one causes errors on
    boot.

    Suggestions?

    John Culleton


  2. Re: Two questions:/dev/cdrom and php

    Wed, 18 Jul 2007 04:10:33 -0700, john@wexfordpress.com did catÂ*:

    > I have a fresh install of Slack 12, in parallel with an older install of
    > slack 11.
    >
    > Problem 1. I want to mount a cdrom. The line for mounting a cdrom was
    > commented out in
    > /etc/fstab. so I uncommented it. Then mount couldn't find /dev/cdrom. I
    > checked in my Slack 11 version. In Slack 11 /dev/cdrom is an alias for
    > /dev/sr0. However in Slack 12 /dev I find no sr0


    What's the result of this:
    # grep CD /var/log/dmesg

    or that:
    # grep ^[c-t][a-z][a-z]: /var/log/dmesg

    it should help :-)

    >
    > Problem 2. How do I activate php in the apache server? I tried using the
    > httpd.conf from my Slack 11 install but that caused an error on bootup.
    > So I decided to reinstall the httpd package from directory n on the
    > first install cdrom. See problem 1 above for continuation.
    >
    > The install release notes don't seem to deal with either problem. Once
    > upon a time PV recommended saving your old /etc files but the httpd.conf
    > has moved in Slack 12 and the old one causes errors on boot.
    >
    > Suggestions?
    >
    > John Culleton



  3. Re: Two questions:/dev/cdrom and php

    "john@wexfordpress.com" (john@wexfordpress.com) writes:
    > I have a fresh install of Slack 12, in parallel with an older install
    > of slack 11.
    >
    > Problem 1. I want to mount a cdrom. The line for mounting a cdrom was
    > commented out in
    > /etc/fstab. so I uncommented it. Then mount couldn't find /dev/cdrom.
    > I checked in my Slack 11 version. In Slack 11 /dev/cdrom is an alias
    > for /dev/sr0. However in Slack 12 /dev I find no sr0
    >

    So is that an SCSI drive, or are you using the emulation?

    If it's the latter, I seem to recall the emulation is no longer needed
    in a kernel beyond a certain number, and I had the impression that Slackware
    is now using a kernel beyond that certain number.

    Hence the emulation is likely not needed in Slackware 12.

    If that's the case, then /dev/cdrom would not be pointing to /dev/sr0
    but something like /dev/hdc or /dev/hdd.

    Michael

  4. Re: Two questions:/dev/cdrom and php

    Michael Black wrote:

    > "john@wexfordpress.com" (john@wexfordpress.com) writes:
    >> I have a fresh install of Slack 12, in parallel with an older install
    >> of slack 11.
    >>
    >> Problem 1. I want to mount a cdrom. The line for mounting a cdrom was
    >> commented out in
    >> /etc/fstab. so I uncommented it. Then mount couldn't find /dev/cdrom.
    >> I checked in my Slack 11 version. In Slack 11 /dev/cdrom is an alias
    >> for /dev/sr0. However in Slack 12 /dev I find no sr0
    >>

    > So is that an SCSI drive, or are you using the emulation?
    >
    > If it's the latter, I seem to recall the emulation is no longer needed
    > in a kernel beyond a certain number, and I had the impression that
    > Slackware is now using a kernel beyond that certain number.
    >
    > Hence the emulation is likely not needed in Slackware 12.
    >
    > If that's the case, then /dev/cdrom would not be pointing to /dev/sr0
    > but something like /dev/hdc or /dev/hdd.
    >
    > Michael


    Yes, the grep on dmesg shows /dev/hdc. But a search on /dev shows no hdc
    or hdd. Do I need to redo lilo to eliminate the emulation bit?

    Why people fix things that are working so that they no longer work is
    beyond me.

    And google Groups is still acting up. I'm using KNode instead.
    --
    John Culleton
    Able Indexers and Typesetters

  5. Re: Two questions:/dev/cdrom and php

    john@wexfordpress.com wrote:

    > I have a fresh install of Slack 12, in parallel with an older install
    > of slack 11.



    >
    > Problem 2. How do I activate php in the apache server? I tried using
    > the httpd.conf from my Slack 11 install but that caused an error on
    > bootup. So I decided to reinstall the httpd package from directory n
    > on the first install cdrom. See problem 1 above for continuation.
    >
    > The install release notes don't seem to deal with either problem. Once
    > upon a time PV recommended saving your old /etc files but the
    > httpd.conf has moved in Slack 12 and the old one causes errors on
    > boot.
    >
    > Suggestions?
    >
    > John Culleton


    I have some responses but no definitive cure yet for problem 1. May I
    invite the group's attention to problem 2 for a moment?

    (Moral, never ask two questions in a single post.)
    --
    John Culleton
    Able Indexers and Typesetters

  6. Re: Two questions:/dev/cdrom and php

    Wed, 18 Jul 2007 08:54:27 -0400, John Culleton did catÂ*:

    > Michael Black wrote:
    >
    >> "john@wexfordpress.com" (john@wexfordpress.com) writes:
    >>> I have a fresh install of Slack 12, in parallel with an older install
    >>> of slack 11.
    >>>
    >>> Problem 1. I want to mount a cdrom. The line for mounting a cdrom was
    >>> commented out in
    >>> /etc/fstab. so I uncommented it. Then mount couldn't find /dev/cdrom.
    >>> I checked in my Slack 11 version. In Slack 11 /dev/cdrom is an alias
    >>> for /dev/sr0. However in Slack 12 /dev I find no sr0
    >>>

    >> So is that an SCSI drive, or are you using the emulation?
    >>
    >> If it's the latter, I seem to recall the emulation is no longer needed
    >> in a kernel beyond a certain number, and I had the impression that
    >> Slackware is now using a kernel beyond that certain number.
    >>
    >> Hence the emulation is likely not needed in Slackware 12.
    >>
    >> If that's the case, then /dev/cdrom would not be pointing to /dev/sr0
    >> but something like /dev/hdc or /dev/hdd.
    >>
    >> Michael

    >
    > Yes, the grep on dmesg shows /dev/hdc. But a search on /dev shows no hdc
    > or hdd. Do I need to redo lilo to eliminate the emulation bit?


    Yes, that could be it or that's something in your udev config
    that makes the node fail (blacklist maybe)
    Meanwhile, you may force the node creation so you can use you CDrom
    before having to lilo and boot, just in case you'd need it :-)

    # mknod hdc b 22 0


    You said it was a "fresh install of Slack 12", does it mean
    you actually erased/formatted the disks before installing or could
    it be there was a mix-up with files from previous install ?

    > Why people fix things that are working so that they no longer work is
    > beyond me.


    Well, in outsourcing that's called 'job insurance' but for system
    IT I'm as puzzled as you are )


  7. Re: Two questions:/dev/cdrom and php

    Loki Harfagr wrote:

    > Wed, 18 Jul 2007 08:54:27 -0400, John Culleton did cat*:
    >
    >> Michael Black wrote:
    >>
    >>> "john@wexfordpress.com" (john@wexfordpress.com) writes:
    >>>> I have a fresh install of Slack 12, in parallel with an older install
    >>>> of slack 11.
    >>>>
    >>>> Problem 1. I want to mount a cdrom. The line for mounting a cdrom was
    >>>> commented out in
    >>>> /etc/fstab. so I uncommented it. Then mount couldn't find /dev/cdrom.
    >>>> I checked in my Slack 11 version. In Slack 11 /dev/cdrom is an alias
    >>>> for /dev/sr0. However in Slack 12 /dev I find no sr0
    >>>>
    >>> So is that an SCSI drive, or are you using the emulation?
    >>>
    >>> If it's the latter, I seem to recall the emulation is no longer needed
    >>> in a kernel beyond a certain number, and I had the impression that
    >>> Slackware is now using a kernel beyond that certain number.
    >>>
    >>> Hence the emulation is likely not needed in Slackware 12.
    >>>
    >>> If that's the case, then /dev/cdrom would not be pointing to /dev/sr0
    >>> but something like /dev/hdc or /dev/hdd.
    >>>
    >>> Michael

    >>
    >> Yes, the grep on dmesg shows /dev/hdc. But a search on /dev shows no hdc
    >> or hdd. Do I need to redo lilo to eliminate the emulation bit?

    >
    > Yes, that could be it or that's something in your udev config
    > that makes the node fail (blacklist maybe)
    > Meanwhile, you may force the node creation so you can use you CDrom
    > before having to lilo and boot, just in case you'd need it :-)
    >
    > # mknod hdc b 22 0
    >
    >
    > You said it was a "fresh install of Slack 12", does it mean
    > you actually erased/formatted the disks before installing or could
    > it be there was a mix-up with files from previous install ?
    >

    I erased partitions and installed complete. Then I copied over the
    files in /usr/local and in my personal directory /home safe.

    And now I have a third problem: the KDE printer wizard covers every
    situation but mine, a meat and potatoes Ricoh Postscript Laser printer that
    works fine in the Slack 11 partition.

    This is a bit like having a new puppy. You forget how much trouble the other
    one was to housebreak. So I have gone back to Slack 11 and will now and
    then give 12 another shot. But right now it is three strikes and yer out.

    Further replies on problem 1, CDR, problem 2, enabling php, and now problem
    3, KDE print setup would be welcome. I can always copy over a printcap frm
    Slack 11 but that might just muck things up. And I don't think KDE looks at
    printcap.
    >> Why people fix things that are working so that they no longer work is
    >> beyond me.

    >
    > Well, in outsourcing that's called 'job insurance' but for system
    > IT I'm as puzzled as you are )


    I used to have consultant programmers that would deliberately write obscure
    spaghetti code. Others however would teach my inhouse staff new techniques.
    There are good guys and bad guys. Hopefully the denizens here are all good
    guys. That has been my experience to date.
    --
    John Culleton
    Able Indexers and Typesetters

  8. Re: Two questions:/dev/cdrom and php

    John Culleton wrote:
    > john@wexfordpress.com wrote:
    >
    >> I have a fresh install of Slack 12, in parallel with an older install
    >> of slack 11.

    >
    >
    >>
    >> Problem 2. How do I activate php in the apache server? I tried using
    >> the httpd.conf from my Slack 11 install but that caused an error on
    >> bootup. So I decided to reinstall the httpd package from directory n
    >> on the first install cdrom. See problem 1 above for continuation.
    >>
    >> The install release notes don't seem to deal with either problem. Once
    >> upon a time PV recommended saving your old /etc files but the
    >> httpd.conf has moved in Slack 12 and the old one causes errors on
    >> boot.
    >>
    >> Suggestions?
    >>
    >> John Culleton

    >
    > I have some responses but no definitive cure yet for problem 1. May I
    > invite the group's attention to problem 2 for a moment?
    >
    > (Moral, never ask two questions in a single post.)


    Problem 2: near the end of /etc/httpd/httpd.conf

    # Uncomment the following line to enable PHP:
    #
    #Include /etc/httpd/mod_php.conf

    Slack 11 used Apache 1.3.x, slack 12 now uses 2.2.4 which is referred to
    as httpd instead of apache and the conf files are quite different.

    Steve

  9. Re: Two questions:/dev/cdrom and php

    Steven J Masta wrote:
    > Slack 11 used Apache 1.3.x, slack 12 now uses 2.2.4 which is referred to
    > as httpd instead of apache and the conf files are quite different.


    Also PHP itself was upgraded from 4.4.* to 5.2.*, making for
    differences in the PHP config.
    --
    ************************************************** ******************
    ** Eef Hartman, Delft University of Technology, dept. EWI/TW **
    ** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
    ** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
    ************************************************** ******************

  10. Re: Two questions:/dev/cdrom and php:solutions

    John Culleton wrote:

    > Loki Harfagr wrote:
    >
    >> Wed, 18 Jul 2007 08:54:27 -0400, John Culleton did cat*:
    >>
    >>> Michael Black wrote:
    >>>
    >>>> "john@wexfordpress.com" (john@wexfordpress.com) writes:
    >>>>> I have a fresh install of Slack 12, in parallel with an older
    >>>>> install of slack 11.
    >>>>>
    >>>>> Problem 1. I want to mount a cdrom. The line for mounting a
    >>>>> cdrom was commented out in
    >>>>> /etc/fstab. so I uncommented it. Then mount couldn't find
    >>>>> /dev/cdrom.
    >>>>> I checked in my Slack 11 version. In Slack 11 /dev/cdrom is an
    >>>>> alias for /dev/sr0. However in Slack 12 /dev I find no sr0
    >>>>>
    >>>> So is that an SCSI drive, or are you using the emulation?
    >>>>
    >>>> If it's the latter, I seem to recall the emulation is no longer
    >>>> needed in a kernel beyond a certain number, and I had the
    >>>> impression that Slackware is now using a kernel beyond that
    >>>> certain number.
    >>>>
    >>>> Hence the emulation is likely not needed in Slackware 12.
    >>>>
    >>>> If that's the case, then /dev/cdrom would not be pointing to
    >>>> /dev/sr0 but something like /dev/hdc or /dev/hdd.
    >>>>
    >>>> Michael
    >>>
    >>> Yes, the grep on dmesg shows /dev/hdc. But a search on /dev shows
    >>> no hdc or hdd. Do I need to redo lilo to eliminate the emulation
    >>> bit?

    >>
    >> Yes, that could be it or that's something in your udev config
    >> that makes the node fail (blacklist maybe)
    >> Meanwhile, you may force the node creation so you can use you
    >> CDrom
    >> before having to lilo and boot, just in case you'd need it :-)
    >>
    >> # mknod hdc b 22 0
    >>
    >>
    >> You said it was a "fresh install of Slack 12", does it mean
    >> you actually erased/formatted the disks before installing or could
    >> it be there was a mix-up with files from previous install ?
    >>

    > I erased partitions and installed complete. Then I copied over the
    > files in /usr/local and in my personal directory /home safe.
    >
    > And now I have a third problem: the KDE printer wizard covers every
    > situation but mine, a meat and potatoes Ricoh Postscript Laser
    > printer that works fine in the Slack 11 partition.
    >
    > This is a bit like having a new puppy. You forget how much trouble
    > the other one was to housebreak. So I have gone back to Slack 11 and
    > will now and then give 12 another shot. But right now it is three
    > strikes and yer out.
    >
    > Further replies on problem 1, CDR, problem 2, enabling php, and now
    > problem 3, KDE print setup would be welcome. I can always copy over
    > a printcap frm Slack 11 but that might just muck things up. And I
    > don't think KDE looks at printcap.
    >>> Why people fix things that are working so that they no longer work
    >>> is beyond me.

    >>
    >> Well, in outsourcing that's called 'job insurance' but for system
    >> IT I'm as puzzled as you are )

    >
    > I used to have consultant programmers that would deliberately write
    > obscure spaghetti code. Others however would teach my inhouse staff
    > new techniques. There are good guys and bad guys. Hopefully the
    > denizens here are all good guys. That has been my experience to
    > date.


    Solved one and three. One was a bit tricky. I need the "append" clause
    for my Slack 11 partition but not for the Slack 12 partition. So I
    edited lilo.conf so that the "append" clause was moved to the
    partition description and was no longer global. Now slack 12 has a
    proper /dev/cdrom and /dev/hdc.

    Three, the printer problem, was solved by copying over the
    old /etc/printcap and copying the /etc/cups/printers.conf file. It
    was absent before. I am sure there is a more elegant and high level
    way to do this and I am equally sure I don't grok it yet. What works,
    works.

    I reinstalled the Slack httpd module and modified httpd.conf to allow
    php actions. Now it seems to work. Copying over the old httpd.conf
    from Slack 11 did NOT work.

    An old problem with MPlayer and Firefox reappeared. The file loads but
    does not appear on the screen. But this is trivial. The big things
    are working.
    --
    John Culleton
    Able Indexers and Typesetters

  11. Re: Two questions:/dev/cdrom and php:solutions

    John Culleton wrote:
    > Three, the printer problem, was solved by copying over the
    > old /etc/printcap and copying the /etc/cups/printers.conf file.


    When 12.0 CUPS is like the previous ones: you don't need /etc/printcap,
    it is over-written every startup by the CUPS daemon anyway: the
    "printers.conf" file is the one you really need, as well as any
    ..ppd files FOR those printers in the /etc/cups/ppd subdir (they
    will be called "printername".ppd, in THAT dir).

    > I reinstalled the Slack httpd module and modified httpd.conf to allow
    > php actions. Now it seems to work. Copying over the old httpd.conf
    > from Slack 11 did NOT work.


    No, the /etc/apache dir has been changed into /etc/httpd so a lot of path-
    names IN that config will not be correct anymore.
    --
    ************************************************** ******************
    ** Eef Hartman, Delft University of Technology, dept. EWI/TW **
    ** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
    ** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
    ************************************************** ******************

  12. Re: Two questions:/dev/cdrom and php

    On Jul 18, 7:10 am, "j...@wexfordpress.com"
    wrote:
    > I have a fresh install of Slack 12, in parallel with an older install
    > of slack 11.
    >
    > Problem 1. I want to mount a cdrom. The line for mounting a cdrom was
    > commented out in
    > /etc/fstab. so I uncommented it. Then mount couldn't find /dev/cdrom.
    > I checked in my Slack 11 version. In Slack 11 /dev/cdrom is an alias
    > for /dev/sr0. However in Slack 12 /dev I find no sr0
    >
    >
    > Suggestions?
    >
    > John Culleton


    Hi folks, I have the same problem here with the cdrom after installing
    slackware on the first CD. I wanted to go ahead and completed my
    installation but, I am unable to due to this problem. As I have
    mentioned in my topic previously, I have a thinkpad t42 2373 4tu with
    a swapable cdrw. Thanks



+ Reply to Thread