Unable to start Apache by configuring php

Posted on 2006-04-17
Last Modified: 2010-03-04
I have done the following things to my installation.
Installation paths:
OS                 --  Windows XP
PHP4.x         --   c:/php4
Apache1.3.x--  c:/Apache

Added LoadModule to point to php4apache.dll
Added AddModule to mod_php4.c   // This line given error, and at the second time I have removed it.
Copied php4ts.dll to system32.  Also to system folders of SYSTEM root.
Copied php.ini to winnt.

NOTE: I have the copies of dll's in both PHP Home directory and  in sapi folder.

    But when I start Apache it is giving the errors
Syntax error in the line LoadModule php4 "c:/php4/php4apache.dll"
Can not load service named php4apache.dll

Please provide me a solution that fix my problem
Question by:ksrinivasarao1

    Author Comment

    Please provide a better solution.
    LVL 15

    Expert Comment


    LoadModule "c:/php4/php4apache.dll"

    instead of

    LoadModule php4 "c:/php4/php4apache.dll"

    LVL 10

    Accepted Solution

    Actually, I think it is supposed to be:

    LoadModule php4_module "c:/php4/php4apache.dll"


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now