Jump to content

Recommended Posts

hey guys,

 

I'm trying to set up an APACHE/PHP server and whenever I start up apache i'm getting this error....

 

 

httpd.exe: Syntax error on line 1 of C:/Program Files/Apache Software Foundation

/Apache2.2/conf/httpd.conf: Can't locate API module structure `php4_module' in file C:/Program Files/PHP/php5apache2_2.dll: No error

 

I can't really figure out what this means or how to fix it....any suggestions?  Thanks.....

Link to comment
https://forums.phpfreaks.com/topic/103451-setting-up-a-server/
Share on other sites

i followed the instructions but when I try to go to my site this is what I get....

 

 

<?php

/* Short and sweet */

define('WP_USE_THEMES', true);

require('./wp-blog-header.php');

?>

 

I can run phpinfo(); fine as well.

 

Is there anything else I can do?

 

Link to comment
https://forums.phpfreaks.com/topic/103451-setting-up-a-server/#findComment-530228
Share on other sites

no it's in the htdocs folder where the other files are kept for the site to work because the root directory is the htdocs folder...I thought I installed php's global variable into windows but I could be wrong...can I check this or should I just make my root directory in the php directory and move all my files there?

Link to comment
https://forums.phpfreaks.com/topic/103451-setting-up-a-server/#findComment-530233
Share on other sites

How PHP files are parsed when going to http://localhost is controlled by Apache. Adding PHP to the PATH has nothing to do with how PHP scripts are parsed, its to do with PHP's configuration.

 

If Apache is serving the source code of the .php files then Apache is not configured correctly.

Link to comment
https://forums.phpfreaks.com/topic/103451-setting-up-a-server/#findComment-530508
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.