Forum Moderators: phranque

Message Too Old, No Replies

Apache can't be run after install on Windows 7

Win32 Binary without crypto (no mod_ssl) (MSI Installer):

         

tonyprague

4:14 pm on Dec 31, 2010 (gmt 0)

10+ Year Member



When running newly installed Apache on Windows 7 I got this message


Syntax error on line 488 of C:/Apache/conf/httpd.conf:
Invalid command 'PHPIniDir', perhaps misspelled or defined by a module not inc
ded in the server configuration
Note the errors or messages above, and press the <ESC> key to exit. 22...

Please, could you advise me what to do to overcome this?

Best regards,

jdMorgan

5:40 pm on Jan 5, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It looks like you installed Apache, but did not install PHP...

Or if PHP is installed, then it is not loaded and/or enabled in your server config file.

For the first case, look into installing one of the popular 'bundles' that includes Apache, PHP, PERL, and MySQL. There are many of them available on-line, and you can pick the one that most closely matches your needs.

For the latter, modify the Apache configuration file(s) to load PHP and configure it. Again, you should be able to find lots of instructions and tutorials on-line.

Jim