Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 WAMP Help
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DtY




PostPosted: Fri Aug 21, 2009 9:15 pm   Post subject: WAMP Help

I helped my friend install WAMP on his computer, he's never set up any servers before, and I haven't used WAMP in a few years, and don't have access to a Windows computer. I don't know him IRL, so I don't have access to his computer to set it up. He has it installed, and started it, and can see the landing page at localhost. I tried to help him find the htdocs folder, and he found two: c:\wamp\www\ and c:\wamp\Apache2.2.11\htdocs. I told him to create a file called something.html in the first, and see if it would load in the browser, it got a 404, same with the other directory.
Does someone with WAMP experience know what needs to be done?

Thanks
Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: Fri Aug 21, 2009 9:19 pm   Post subject: RE:WAMP Help

Have him edit his config file (should be available in the Start menu) and look for DocumentRoot. That tells Apache where the publicly-served files will be stored. Or, so it does on my Linux install...
Tony




PostPosted: Fri Aug 21, 2009 9:48 pm   Post subject: RE:WAMP Help

I would have thought the only reason to run a Windows server was for IIS / .Net stack... why would anyone choose to go the WAMP route? If he has never set up a server before, maybe he should go with a more popular choice; if anything, then just for a greater support availability.

Anyway, Apache configuration file is typically called httpd.conf, start by finding that. There will likely be multiple copies of that file -- an actual file in use + various "backups" or defaults.

Quote:

# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
DtY




PostPosted: Fri Aug 21, 2009 9:55 pm   Post subject: RE:WAMP Help

DemonWasp: Thanks, I'll have him do that Very Happy

Tony: He's just going to start learning PHP, so this is a personal server, on his own computer. Don't worry, I'd never advise someone to setup any kind of public server on a windows computer.
rdrake




PostPosted: Fri Aug 21, 2009 10:01 pm   Post subject: RE:WAMP Help

Meh, put lighttpd, PostgreSQL, and PHP in a virtual machine. VirtualBox is free.

If he screws up the configuration then it's not a big deal, he can just restore a snapshot of the VM and get back to work.
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: