yshua Posted November 11, 2011 Share Posted November 11, 2011 Dear All: Upon selecting Apache icon (in lower right), and then, "Start," gives emsg: The reqrested operation has failed. In errlog: "Child 3184: Exit event signaled. Child process is ending. httpd.exe: Syntax error on line 131 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/PHP/php5apache2.dll into server: The specified module could not be found." Line 131 reads: LoadModule php5_module "c:/PHP/php5.dll" A professional Linux Apache installer was unable to fix this. Am now picking up the pieces.... Want to know where php5.dll is supposed to load from and why his changing said file was forever unaccepted by out conf/httpd.conf file. Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/ Share on other sites More sharing options...
requinix Posted November 11, 2011 Share Posted November 11, 2011 A professional Linux Apache installer was unable to fix this. Then fire him. For Apache 2.2 you need php5apache2_2.dll. The one you're trying now is only for Apache 2.0. If that doesn't fix everything then the other necessary DLLs (like php5ts.dll) may not be in the PATH... Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1287403 Share on other sites More sharing options...
ManiacDan Posted November 11, 2011 Share Posted November 11, 2011 To be fair, if he's really a linux tech he shouldn't be required to know how to start Apache on Windows. Hell, I don't know. Requinix is right about the file though, you had the wrong one. Use the right one, and make sure it's in the right place. Also make sure your syntax is correct as the error is syntax error. Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1287408 Share on other sites More sharing options...
requinix Posted November 11, 2011 Share Posted November 11, 2011 A professional Linux Apache installer was unable to fix this. Then fire him. Which you shouldn't actually consider doing. I'm just surprised that an Apache guy didn't consider the 2.0/2.2 distinction being at fault. Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1287411 Share on other sites More sharing options...
yshua Posted November 11, 2011 Author Share Posted November 11, 2011 OK, you all, My installed programs show PHP 5.2.17. Should I download a diff PHPmyadmin program, which is what was attempted in the first place? I have to avoid XAMPP because of int. property rights involved. Am migrating with an up and running phpmyadmin from a yahoo website.... Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1287440 Share on other sites More sharing options...
ManiacDan Posted November 11, 2011 Share Posted November 11, 2011 Ok, back up. Windows: Your operating system. Required. Apache: The web server. You have version 2.2 PHP: The programming language. You have some version of PHP5, which sub-version doesn't matter. php5apache2_2.dll: The DLL necessary to connect Apache 2.2 with PHP5 under Windows. PHPMyAdmin: Completely irrelevant. Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1287448 Share on other sites More sharing options...
yshua Posted November 11, 2011 Author Share Posted November 11, 2011 OK ManiacDan and others: I have php5apache2_2dll already in a previous download, along with other dll's, could one or more of these dll's be copied into a directory, such as the PHP directory? What else might work? Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1287453 Share on other sites More sharing options...
ManiacDan Posted November 11, 2011 Share Posted November 11, 2011 Line 131 reads: LoadModule php5_module "c:/PHP/php5.dll" See there where the loadModule line is wrong? That's what we've been saying this whole time. You're loading the wrong module. Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1287458 Share on other sites More sharing options...
yshua Posted November 11, 2011 Author Share Posted November 11, 2011 OK, you guys got me further along, hurrah! OK, it was a syntax error, as well, thank you, ManiacDan, with the # sign before the LoadModule stmt on previous line! Now an error on line 134, "PHPIniDir "C:/PHP"", invalid command. Still wondering how deep this problem will go.... Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1287467 Share on other sites More sharing options...
ManiacDan Posted November 14, 2011 Share Posted November 14, 2011 OK, you guys got me further along, hurrah! OK, it was a syntax error, as well, thank you, ManiacDan, with the # sign before the LoadModule stmt on previous line! Now an error on line 134, "PHPIniDir "C:/PHP"", invalid command. Still wondering how deep this problem will go.... Yet another syntax error. Slashes in Windows go the other way. Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1287989 Share on other sites More sharing options...
yshua Posted November 14, 2011 Author Share Posted November 14, 2011 Thanks, ManiacDan: I reversed the slash for the same Syntax error on line 134, but forgot to include the rest of the emsg, which seems revealing...: Invalid Command "PHPIniDir ", perhaps misspelled or defined by a module not included in the same configuration. Maybe something else has been left out...? Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1288058 Share on other sites More sharing options...
yshua Posted November 15, 2011 Author Share Posted November 15, 2011 Ooops! Terrible aha moment. Just had a major idiot attack, without yet having discovered # sign was for a comment line as I commented out line 131. Am now back from the twilight zone and airhead school.... Ahem! Have tried putting the PHP file, php5apache2_2.dll, in the “modules” directory and used the line, “LoadModule php5_module module/php5apache2_2.dll.” The following emsg for my change occurred: Httpd.exe: Syntax error on line 131 of C:/Program Files (X86)/Apache Software Foundation/Apache2.2/conf: Cannot load C:/Program Files (X86)/Apache Software Foundation/Apache2.2/module/php5apache2_2.dll into server: The specified module could not be found. Any more help would be appreciated. Am now truly ready to delve into true programmer's understanding. __Yshua Quote Link to comment https://forums.phpfreaks.com/topic/250946-trying-new-config-with-working-php-on-win7-now-start-failed/#findComment-1288229 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.