Jump to content

Setting up a Server


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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.