SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Aug 2002
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Can't get PHP 4.2.3 working with Apache 2.0.39

    I've had PHP 4.2.1 running on the same Apache version for quite some time. Well recently I tried to get .phps files working on the server (they never did before). Whenever I would try to open a .phps file, it would ask if I wanted to dl it ... But anyway, that isn't the immediate problem I'm having.

    Well I decided to get the latest version of PHP. Here's exactly what I did. First I 'uninstalled' PHP and grabbed the 4.2.3 release. I extracted it and renamed php.ini-dist to php.ini and moved it to C:\Windows. I then edited the following lines...
    doc_root = "c:\Apache2\htdocs"
    extension_dir = "c:\php\sapi"
    session.save_path = C:\Windows\Temp
    After that I moved the php4ts.dll to C:\Windows\System. Then I renamed php4apache2.dll to php4apache2.so. Finally, I went into http.conf and made sure these lines were correct...
    LoadModule php4_module c:/php/sapi/php4apache2.so
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    Now I didn't think I would have any problems. However when I run apache I get this error.
    Syntax error on line 173 of C:/Apache2/conf/httpd.conf:
    Cannot load C:/PHP/sapi/php4apache2.so into server: A device attached to the system is not functioning.
    What am I doing wrong?

  2. #2
    SitePoint Guru
    Join Date
    Jan 2001
    Location
    Alkmaar, Netherlands
    Posts
    710
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I could not make PHP work with Apache 2.0 cpl of weeks ago. It cost me 1 whole day trying everything one bye one and again and again. Check out if PHP guys solved all problems about Apache 2.0 before installation.

    Good luck

  3. #3
    SitePoint Member
    Join Date
    Aug 2002
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Welp, I uninstalled Apache 2.0.39 completely and got the Apache 2.0.40 binaries. No problemos now...well except for the fact that I still can't view .phps files.


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
  •