php - How to setup virtual host using Wamp Server properly? -


i need here in creating virtual host in wampserver. in office can create virtual hosts when try create in laptop doesn't work. still can't figure out what's wrong. here's did.

  1. i copy wordpress file in folder. path of project

    • e:\subversion\chelle.wpblog.local
  2. i edit host file

    • c:\windows\system32\drivers\etc\hosts
    • i added end of file

      127.0.0.1 chelle.wpblog.local

  3. next enable virtual host in apache

    • c:\wamp\bin\apache\apache2.4.4\conf\httpd.conf
    • i uncomment this

      include conf/extra/httpd-vhosts.conf

  4. next setup virtual host in wamp

    • c:\wamp\bin\apache\apache2.4.4\conf\extra\httpd-vhosts.conf
    • i add @ bottom

    <virtualhost *:80> servername chelle.wpblog.local serveralias chelle.wpblog.local documentroot "e:/subversion/chelle.wpblog.local/" <directory "e:/subversion/chelle.wpblog.local/"> options indexes followsymlinks multiviews allowoverride order allow,deny allow all
    </directory> </virtualhost>

  5. last restart wampserver , open chelle.wpblog.local in browser. , doesn't display. display google search results.

i installing zend framework on local wamp using apache server. first go , decide domain name local url. ex->zend_tutorial go , open file located @ "c:\windows\system32\drivers\etc\"

hosts

write

127.0.0.1 (use 1 tab space) zend_tutorial

then go folder located @

d:\wamp\bin\apache\apache2.2.17 (whatever version) \conf\

and open file

httpd.conf

and search text

include conf/extra/httpd-vhosts.conf

and uncomment removing # tag start of line.save file , close it. go folder located @

d:\wamp\bin\apache\apache2.2.17\conf\extra

and open file

httpd-vhosts.conf

and paste code below @ last in file

<virtualhost *:80>     serveradmin webmaster@localhost     documentroot "d:\wamp\www"     servername localhost     errorlog "logs/localhost-error.log"     customlog "logs/localhost-access.log" common </virtualhost>  <virtualhost *:80>     servername zend_tutorial    documentroot "d:\wamp\www\(your project folder name)\public"     setenv application_env "development"     <directory "d:\wamp\www\(your project folder name)\public">         directoryindex index.php         allowoverride         order allow,deny         allow     </directory> </virtualhost> 

and restart wamp, write zend_tutorial in browser , see things working.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -