MatthewB Posted May 11, 2006 Share Posted May 11, 2006 I've done a pretty exhaustive search on this forum and have made major progress, unfortunately, I'm running into a roadblock that I hope someone may recognise and suggest a solution.System:WinXP Pro latest SPApache 2.2.2PHP5I installed Apache 2.2.2 from the MSI and PHP5. Apache started, displayed html, but php did not parse. I made the following configuration changes (thanks to Wildteen88 and others) as displayed below.Apache fails to start. When I try 'Test Configuration' I receive the following error:"httpd.exe: Syntax error on line 115 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/PHP5/php5apache2.dll into server: The specified module could not be found." I have verified that the file, php5apache2.dll, is located in C:\PHP5.If I comment out the LoadModule line, I received the following error:"Syntax error on line 118 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Invalid command 'PHPIniDir', perhaps misspelled or defined by a module not included in the server configuration.".Commenting out this line allows Apache to start, but phpinfo doesn't parse. It just downloads a blank page.Any suggestions, am I being really dim and missing something?----------------------------------------------------------Configuration Log:----------------------------------------------------------httpd.conf:1) LoadModuleLoadModule php5_module c:/php5/php5apache2.dll2) PHPIniDir#PHPIniDirPHPIniDir "C:/php5"Also tried:#PHPIniDirPHPIniDir "C:/WINDOWS" (PHPIniDir error received). Change commented out.Also tried:PHPIniDir "c:/php5/" (PHPIniDir error received). Change commented out.3) DocumentRootDocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"and<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">4) DirectoryIndex<IfModule dir_module> DirectoryIndex index.html index.html.var index.php</IfModule>5) AddTypeAddType application/x-httpd-php .php .phtml .html .php3AddType application/x-httpd-phps .phps6) MMAP, Sendfile and AcceptExEnableMMAP offEnableSendfile offWin32DisableAcceptEx----------------------------------------------------------PHP Changes1) php.ini-recommended changed to php.ini and moved to c:\WINDOWS2) php5ts.dll moved to c:\WINDOWS\SYSTEM. Later moved to c:\windows\system32.3) DocRoot ammended in php.ini to "doc_root = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs".---------------------------------------------------------- Link to comment https://forums.phpfreaks.com/topic/9544-syntax-error-loadmodulephpinidir/ Share on other sites More sharing options...
wildteen88 Posted May 11, 2006 Share Posted May 11, 2006 PHP is not compatible with Apache 2.2.2. Therefore you are getting those errors. I would recommend you to downgrade Apache to version 2.0.58 as PHP5 is compatible with that version. Link to comment https://forums.phpfreaks.com/topic/9544-syntax-error-loadmodulephpinidir/#findComment-35249 Share on other sites More sharing options...
denflinkelaanehaj Posted May 19, 2006 Share Posted May 19, 2006 [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] Thank you!!! Link to comment https://forums.phpfreaks.com/topic/9544-syntax-error-loadmodulephpinidir/#findComment-37279 Share on other sites More sharing options...
MatthewB Posted May 22, 2006 Author Share Posted May 22, 2006 Thanks Wildteen88, you are spot on. I uninstalled Apache 2.2.2 and installed Apache 2.0.58, and it is working. Link to comment https://forums.phpfreaks.com/topic/9544-syntax-error-loadmodulephpinidir/#findComment-37897 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.