SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jul 2001
    Location
    Ill,USA
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP4.0.4 to PHP4.0.6?

    Hello..

    Recently, I've noticed that my website's host has upgraded PHP from v4.0.4 to v4.0.6 -- so I decided to follow suit. I installed apache (Win32) almost exclusively for developing my site on my own computer. But when trying to update PHP4.0.4 to v4.0.6 ... it seems to conflict with apache. My install went as follows:

    Extracted .zip file into c:\php-4.0.6\
    Renamed c:\php\ (where v4.0.4 is installed) to c:\php\4.0.4\
    Renamed c:\php-4.0.6\ to c:\php\
    Switched the php.ini's in c:\windows\

    Quick & easy, I thought. When loading up apache after installing v4.0.6 like said, I get this error:

    Syntax error on line 776 of c:/apache/conf/httpd.conf: cannot load c:/php/sapi/php4apache.dll into server: (30) A device attatched to the system is not functioning.

    Reversing my aforesaid installation & replacing v4.0.4, things work smoothly. Also, re-installing v4.0.4 in the same manner as I tried to install v4.0.6 also works fine. Not sure what the problem is. If anyone knows where I may be going wrong, please let me know

    thanks.

  2. #2
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe a stupid question, but have you been through your httpd.conf file, replacing all occurences of c:/php with c:/php-4.0.6 ?
    [blogger: zengun] [blogware contributor: wordpress]

  3. #3
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Shin Ma, he isn't running PHP in CGI mode thus he should not have any C:\php in his httpd.conf He is using the apache module dll found in the sapi folder of the php distro. AS for why its not working, not sure. I always follow this text file when installing a new version of PHP.http://shanx.com/php/install_win32.txt
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  4. #4
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Sounds like you forgot to copy the new version of php4ts.dll into your Windows\System32 directory!
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  5. #5
    SitePoint Member
    Join Date
    Jul 2001
    Location
    Ill,USA
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Oh, man.

    Yes... moving that .dll does fix the problem. I'm ashamed to have missed that. heh. thanks, kyank. you rock.


Bookmarks

Posting Permissions

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