# Newbie Question about setting up PHP

**URL:** <https://forum.kirupa.com/t/newbie-question-about-setting-up-php/211735>\
**Category:** programming\
**Created:** [January 4, 2007, 6:04pm UTC](https://forum.kirupa.com/t/newbie-question-about-setting-up-php/211735 "2007-01-04T18:04:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yammi](https://avatars.discourse-cdn.com/v4/letter/y/ed8c4c/32.png) [@yammi](https://forum.kirupa.com/u/yammi)\
**Post date:** [January 4, 2007, 6:04pm UTC](https://forum.kirupa.com/t/newbie-question-about-setting-up-php/211735/1 "2007-01-04T18:04:12Z")

</div>

I’ve been trying to install PHP, Apache and mySQL on my computer for a while now but I can’t seem to get it to work properly.

I can start Apache, and html pages work properly from localhost. The problem is with php pages. Whenever I start Apache, a dos window opens and I get the error:

httpd.exe: Syntax error on line 491 of c:/Program files…httpd.conf  
Cannot load php5apache.dll into server: The specified module cannot be found

I did add these lines to httpd.conf:

```
AddType application/x-httpd-php .php 
LoadModule php5_module "c:\php\php5apache.dll"
setEnv PHPRC c:\windows

```

and in the directory c:/php I can SEE the file php5apache.dll but Apache isn’t registering it for some reason.

Any help would be greatly appreciated. Thanks
