Go Back   Cyber Tech Help Support Forums > Software > Web Development & Graphic Design

Notices

Reply
 
Topic Tools
  #1  
Old March 4th, 2007, 01:49 PM
masternige masternige is offline
Senior Member
 
Join Date: Oct 2005
O/S: Linux
Location: Birmingham
Posts: 230
Apache webserver,windows xp,edit httpd.conf

Hi folks,
I have just created my first basic webpage using Frontpage,i have downloaded and installed "Apache 2.2.4"the problem being i dont know how to edit my httpd.conf file.I know how to open this file and change and save.I have typed http://localhost/ in to a browser and it says "it works" I just dont know how to put my webpage up.Hope this makes some sense.My webpage i have created is located at "C:\Documents and Settings\nigel\My Documents\My Webs\myweb" so i commented out where it says
ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2 and replaced it with "C:\Documents and Settings\nigel\My Documents\My Webs\myweb".Ithen scrolled down to where it says "DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" and replaced it with the same line "C:\Documents and Settings\nigel\My Documents\My Webs\myweb" but when i restart apache i get an error message saying windows could not start apache2 on local computer for more ionformation review the system event log,If this is a non microsoft service,contact the service vendor.And refer to service-specific error code 1.But when i click on review error log there is nothing there.So if i click on start,all progs,Apache,configure apache server,Test configuruation.It says i have a syntax error on line 206.This is my httpd.conf file startin at line 206 and the a few lines afterwards.

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
If any one can give me some guidance much appreciated thanks Nige.
__________________
Linux User:426178
Reply With Quote
  #2  
Old March 9th, 2007, 08:25 PM
masternige masternige is offline
Senior Member
 
Join Date: Oct 2005
O/S: Linux
Location: Birmingham
Posts: 230
Ok so can anyone tell me this Frontpage by default uses "C:\Documents and Settings\nigel\My Documents\My Webs" is it possible to change this location to "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
I ask this because it is really annoying that when i open Frontpage and click on "File" then "Open" the first place it opens is "My Webs" so i then have to do 20 clicks on the keyboard to locate the file where i wont to save to.
Thanks Nige.
__________________
Linux User:426178
Reply With Quote
  #3  
Old March 11th, 2007, 08:58 AM
masternige masternige is offline
Senior Member
 
Join Date: Oct 2005
O/S: Linux
Location: Birmingham
Posts: 230
Hi i am know 1 week in to my Frontpage antics,and i have found out the answer to my problem.When you open Frontpage if you click on file scroll down to "publish Web" and left click on it a dialog box will open giving you the option to change where you web page will be published.I simply changed it to my apache folder which is at "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs" problem solved.Its amazing how easy it is when you know how.
Thanks Nige.
__________________
Linux User:426178
Reply With Quote
  #4  
Old March 11th, 2007, 04:05 PM
degsy's Avatar
degsy degsy is offline
Cyber Tech Help Moderator
 
Join Date: Jul 2001
Location: North-East, UK
Posts: 22,023
Blog Entries: 1
Thanks for the update
__________________
Cheers,
Degs

Please post back with your results
CTH Terms of Use

CTH Subscriptions :: Adaware Guide :: HijackThis
Reply With Quote
  #5  
Old March 12th, 2007, 02:14 PM
oracle128's Avatar
oracle128 oracle128 is offline
Α Ω
 
Join Date: Oct 2000
O/S: Windows XP Pro
Location: Melbourne, Australia
Age: 24
Posts: 9,401
Quote:
Originally Posted by masternige View Post
My webpage i have created is located at "C:\Documents and Settings\nigel\My Documents\My Webs\myweb" so i commented out where it says
ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2 and replaced it with "C:\Documents and Settings\nigel\My Documents\My Webs\myweb".Ithen scrolled down to where it says "DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" and replaced it with the same line "C:\Documents and Settings\nigel\My Documents\My Webs\myweb" but when i restart apache i get an error message saying windows could not start apache2 on local computer for more ionformation review the system event log,If this is a non microsoft service,contact the service vendor.And refer to service-specific error code 1.But when i click on review error log there is nothing there.So if i click on start,all progs,Apache,configure apache server,Test configuruation.It says i have a syntax error on line 206.
If you want to modify file paths in the Apache config, you must use forward slashes (/) in place of backslashes (\).
__________________
Oracle's backup tutorial

"A lot of people say games are addictive. Well, they're addictive in the sense that anything you like doing you repeat endlessly. But no one would say, 'Mr Kasparov, you have a chess problem,' or 'Tiger Woods, you have a golf addiction.'" - Ian Livingstone, Creative Director, Eidos.

"A problem well stated is a problem half solved" - Charles Franklin Kettering
Reply With Quote
  #6  
Old March 16th, 2007, 07:00 PM
masternige masternige is offline
Senior Member
 
Join Date: Oct 2005
O/S: Linux
Location: Birmingham
Posts: 230
oracle128 maybe if you get a spare mo you could give me an exact example based on the above problem
thanks for your reply Nige.
__________________
Linux User:426178
Reply With Quote
  #7  
Old March 17th, 2007, 06:36 AM
oracle128's Avatar
oracle128 oracle128 is offline
Α Ω
 
Join Date: Oct 2000
O/S: Windows XP Pro
Location: Melbourne, Australia
Age: 24
Posts: 9,401
Quote:
so i commented out where it says
ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2 and replaced it with "C:\Documents and Settings\nigel\My Documents\My Webs\myweb"
It should be
Code:
ServerRoot "C:/Documents and Settings/nigel/My Documents/My Webs/myweb"
Same goes for the other places where you changed the path.
__________________
Oracle's backup tutorial

"A lot of people say games are addictive. Well, they're addictive in the sense that anything you like doing you repeat endlessly. But no one would say, 'Mr Kasparov, you have a chess problem,' or 'Tiger Woods, you have a golf addiction.'" - Ian Livingstone, Creative Director, Eidos.

"A problem well stated is a problem half solved" - Charles Franklin Kettering
Reply With Quote
Reply

Bookmarks

Topic Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:25 AM.

[ RSS ]