helen,
Argh! That's a dirty trick! Did you even TRY my #1 request above? That would be the reason restart isn't available (in the monitor) - it can't start in the first place (because some other program's hijacked port 80)!
You also have another more serious problem: You've installed into the Program Files directory. NEVER install Apache into Program Files (because WinDoze over-protects everything in there which makes editing files - including your htdocs files - nearly impossible). Solution: Uninstall Apache, STOP AND PREVENT AUTOSTART ON ANY OTHER SERVICE WHICH USES PORT 80, then reinstall Apache OUTSIDE WinDoze protected directories (I've created a dedicated disk partition for Apache and PHP and use it for all my virtual hosts, too). If you don't, you're forced to run Apache as ROOT (no limit on privileges - a major security issue) not to mention the difficulty changing files within WinDoze's protected directory.
Okay, I've run WinMerge on your httpd.conf against my test server and found the following:
Code:
ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2/conf" should be just to Apache2.2, NOT conf!
#LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule speling_module modules/mod_speling.so
I'd uncomment those two while you're at it as they're both quite useful
#ServerName localhost:80 UNcomment
DocumentRoot "C:/Sugarsweetoccasions" - this may or may not work. It should be Apache's htdocs folder which is standard. You can use virtual hosts to point to virtual domains elsewhere
<Directory />
Options FollowSymLinks
AllowOverride None - ALL if you're going to use mod_rewrite
Order deny,allow
Deny from all - Allow from all on your test server
</Directory>
<Directory "C:/Sugarsweetoccasions"> - as above
AllowOverride None - All - again for mod_rewrite on a test server
<IfModule dir_module>
DirectoryIndex index.php index.html - I would add index.php so you don't have to specify that in your DirectoryIndex statements throughout your virtual hosts
</IfModule>
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/conf/cgi-bin/" - more WinDoze problems
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf - ENABLE virtual hosts (via httpd-vhosts.conf file) by uncommenting here!
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "" - insufficient (is PHP installed in your C:\ directory?)
LoadModule php5_module "php5apache2_2.dll"
Type Handler is missing
Remove this garbage and use the following (replacing W:/PHP/ with your PHP directory):
PHPIniDir "W:/PHP/"
LoadModule php5_module "W:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
Lots of problems but PLEASE start with services.msc and turn off other services using port 80.
Regards,
DK
Bookmarks