PDA

View Full Version : Apache & php + multiple sites



VoS
April 6th, 2005, 01:29 PM
Hey there
i recently got tired of IIS 5.1 (booo)
mainly because i could not have more than 1 website at a time..
so i installed Apache (works perfectly, can view any website on server)
and then installed latest php version. ive tried both msi installer and zip files
right now i have mix, as i when just moving zip files to C:/php and using the recomended php.ini cant get it to work, i installed php msi self installer on top of it ( to same directory) in hopes of it using the apache dlls and stuff with the self installer ( as they dont come with it)
I have added the lines to apache config file as they were described in the php install txt

now when i try to run any .php files it dont work..
i get this error when trying to open phpMyAdmin (to just see if php works)


Forbidden

You don't have permission to access /phpMyadmin69/ on this server.
Apache/2.0.53 (Win32) PHP/5.0.4 Server at xew.mine.nu Port 80

now im wondering what i can do to make it work :)
you can visit site at
xew.mine.nu and phpmyadmin error page at xew.mine.nu/phpmyadmin69
just added the 69 to the end causs i havent figured out how to add password to it yet =P

now to my second question...
in IIS 6.xx you can have multiple websites on the same computer..
it separates em by what DNS you come in off ex
xew.mine.nu opens webserver/site1/
oga.oga.com open webserver/site2/
and so on
how do i do this on apache?


//Thanks VoS
running win xp
and config files are .. here
http://xew.mine.nu/conffiles.zip

amitgeorge
April 6th, 2005, 03:18 PM
this (multiple websites) is allowed in IIS 5 also....

i did it long time back for fun on my PC

VoS
April 6th, 2005, 05:16 PM
this (multiple websites) is allowed in IIS 5 also....

i did it long time back for fun on my PC


mind telling me how you did it?
ive tried (for more time than id like to say) to get this to work, but have only arrived and read at the conclusion that it cannot be done.


//VoS

VoS
April 6th, 2005, 05:17 PM
found this =)


http://www.hairy-spider.com/multisite.aspx


havent tried it yet but it looks promising

EDIT
dont work for me, when trying to configure it according to instruction s on webpage all i get is a blank page.. fun... anyone else have any ideas?

JustJeff
April 6th, 2005, 09:29 PM
In WindowsXP, you're only allowed to have 1 website. In Win2k and Win2k3, you can have many.

It's possible in Apache, too - look at the VirtualHost directive.

VoS
April 7th, 2005, 05:30 PM
anyone know any good guides on how to install the latest php with the latest apache server.
the tutorial here on kirupa dosentwork , since php5 has different files, and it jus dosent work when i do it like they described. No scripts are executed.

//VoS