vienessewaltzer Posted April 29, 2008 Share Posted April 29, 2008 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 More sharing options...
947740 Posted April 29, 2008 Share Posted April 29, 2008 Stupid question: do you have PHP installed? Link to comment https://forums.phpfreaks.com/topic/103451-setting-up-a-server/#findComment-529748 Share on other sites More sharing options...
PFMaBiSmAd Posted April 29, 2008 Share Posted April 29, 2008 Also, don't double-post/cross-post. I answered in your other thread. Link to comment https://forums.phpfreaks.com/topic/103451-setting-up-a-server/#findComment-529754 Share on other sites More sharing options...
vienessewaltzer Posted April 29, 2008 Author Share Posted April 29, 2008 ok i do have php installed but now the server is just spitting out PHP at me when I try to access the site...Is there anything I could check off hand? Link to comment https://forums.phpfreaks.com/topic/103451-setting-up-a-server/#findComment-529772 Share on other sites More sharing options...
PFMaBiSmAd Posted April 29, 2008 Share Posted April 29, 2008 Read and follow wildteen88's instructions at this link - http://www.phpfreaks.com/forums/index.php/topic,189883.0.html Link to comment https://forums.phpfreaks.com/topic/103451-setting-up-a-server/#findComment-529795 Share on other sites More sharing options...
vienessewaltzer Posted April 30, 2008 Author Share Posted April 30, 2008 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 More sharing options...
PFMaBiSmAd Posted April 30, 2008 Share Posted April 30, 2008 Based on what you posted, either the file does not have a .php extension or php is not parsing the code in the file. Is the file in the same folder where your .php file with the phpinfo(); statement worked at? Link to comment https://forums.phpfreaks.com/topic/103451-setting-up-a-server/#findComment-530231 Share on other sites More sharing options...
vienessewaltzer Posted April 30, 2008 Author Share Posted April 30, 2008 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 More sharing options...
wildteen88 Posted April 30, 2008 Share Posted April 30, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.