New to Apache and XAMPP, Could use some help

Problems with the Windows version of XAMPP, questions, comments, and anything related.

New to Apache and XAMPP, Could use some help

Postby williamb » 26. August 2005 00:28

I was looking for the documentation both inside and outside of the default help site (http://127.0.0.1/xampp/index.php) to learn how to set up my server further.

Everything is running (FileZilla, Apache2, MySQL, HTTPS, CGI, SSI) and have all been locked down via the security page (http://127.0.0.1/security/index.php).

So far I think the documentation and the ease of getting all this up is very cool and easy...for someone who HAS NEVER done this before...I am impressed at this package.

BUT NOW my issue comes. I would like do do the following and I am not sure where to go from here.
1) Have this Server (Box) listen for 3 maybe more different host names on both port 80 and 443 for multiple sites (3 domains for now)
2) Create a seperate directory for each domain with their own files.
3) One of these domains will run the IPB message board which is all PHP based, so I need to know how to configure for this. (From what I see its all set to go after I get issues 1 and 2 done and upload the board...oh then I need stuff in MySQL)
4) How to configure MySQL accounts for multiple sites and to run with them.

I would appreciate any direction any one can give me...
THANKS!
Will
Learning Apache....be gentle :)
williamb
 
Posts: 6
Joined: 26. August 2005 00:15
Location: San Diego, CA

Postby Wiedmann » 26. August 2005 00:52

1) Have this Server (Box) listen for 3 maybe more different host names on both port 80

VirtualHosts

and 443 for multiple sites

Not possible with one IP.

2) Create a seperate directory for each domain with their own files.

VirtualHosts --> DocumentRoot

3) One of these domains will run the IPB message board which is all PHP based, so I need to know how to configure for this. (From what I see its all set to go after I get issues 1 and 2 done and upload the board...oh then I need stuff in MySQL)

Ask the maker from IPB message board how to install their board (maybe they have in install manual)

4) How to configure MySQL accounts for multiple sites and to run with them.

There is nothing to setup in MySQL for multiple sites. Apache and MySQL are different servers. But you can make for each site a own database and user --> phpMyAdmin
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby williamb » 01. September 2005 19:49

Thanks for your reply Wiedmann, but I am affraid it leaves me still confused.

Since I am using xampp, do I set configurations up in the httpd.conf file? is that the one thats used? If not which one...there seems to be a few of the .conf files there (httpd.conf, httpd.default.conf, mod_auth_mysql.conf, moddav.conf, ssl.conf, ssl.default.conf)

I get that I create a seperate directory for each domain, but how does the config file get set up to use them.... I am not used to the documentation nor have I really setup a web server before...and never apache.

Thanks for the continued help...especially if it comes with a step by step for dummies :roll:

---edit---
I see the virtual example in the httpd.conf file at the end as
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com:80
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

So I am curious how would I set up like the below example to use a different drive for data on a windows 2003 server

<VirtualHost sdsportriders.com:80>
ServerAdmin webmaster@sdsportriders.com
DocumentRoot F:/Sites/SoCal/IBP_forums_2.0.4/wwwroot/htdocs
ServerName sdsportriders.com:80
ErrorLog F:/Sites/SoCal/IBP_forums_2.0.4/wwwroot/htdocs-error_log
CustomLog F:/Sites/SoCal/IBP_forums_2.0.4/wwwroot/htdocs-access_log common
</VirtualHost>

<VirtualHost socalsportriders.com:80>
ServerAdmin webmaster@socalsportriders.com
DocumentRoot F:/Sites/SoCal/IBP_forums_2.1/wwwroot/htdocs
ServerName socalsportriders.com:80
ErrorLog F:/Sites/SoCal/IBP_forums_2.1/wwwroot/htdocs-error_log
CustomLog F:/Sites/SoCal/IBP_forums_2.1/wwwroot/htdocs-access_log common
</VirtualHost>

Is this correct, am I on the right path ?? I have 4 other sites to run as well, so should I continue in this manor? What else do I need to do?

Thanks again
Learning Apache....be gentle :)
williamb
 
Posts: 6
Joined: 26. August 2005 00:15
Location: San Diego, CA


Return to XAMPP for Windows

Who is online

Users browsing this forum: Bonniem and 63 guests