akmkin |
|
![]()
Темы:
18
Сообщения:
178
Участник с: 19 марта 2012
|
Далее. У Вас Должно быть 3 вирта и оди основной хост. В конфиге из вики виртуальны только два, поэтому Копированием->вставкой последнего блока добавляем ещё один. Строчку DocumentRoot "/home/username/yoursites/domainname1.dom/www" меняем на DocumentRoot "/home/archie/Projects/www/e-shop1-images" и <Directory /home/username/yoursites/domainname1.dom/www/> на <Directory /home/archie/Projects/www/e-shop1-images> Это первый виртуальный хост готов Ага. Чтоб Впоследствии не лазить, давайте сразу исправим DirectoryIndex index.htm index.html на DirectoryIndex index.php index.htm index.html чтобы магазины Работали И по этой же схеме Ещё две смс только на domainname3.dom не забудьте сменить Далее. В файле /etc/hosts дописываем : 127.0.0.1 domainname1.dom 127.0.0.1 domainname2.dom 127.0.0.1 domainname3.dom
timere mori ambulantes
|
palpalych |
|
![]()
Темы:
89
Сообщения:
1126
Участник с: 09 августа 2011
|
akmkinон остается по дефолту в /srv/http правильно?
Арчи ~]$ ...as always want ready-made solutions that would make even tastier
|
akmkin |
|
![]()
Темы:
18
Сообщения:
178
Участник с: 19 марта 2012
|
Да, пока да. Видите ли. Основной хост для Вас сейчас - часть не ходовая, т.к. вы собираетесь тестировать сразу несколько различных платформ. Его настроить в "другое" место - две минуты - две строчки в httpd.conf,две в conf/extra/httpd-vhosts.conf и chmod 0775 /где/будет/хост
timere mori ambulantes
|
palpalych |
|
![]()
Темы:
89
Сообщения:
1126
Участник с: 09 августа 2011
|
/etc/httpd/conf/httpd.conf.... DocumentRoot "/srv/http" # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # # # This should be changed to whatever you set DocumentRoot to. # <Directory "/srv/http"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> /etc/httpd/conf/extra/httpd-vhosts.conf (в вики кстати первая строка не закомментирована, на нее выскакивает ошибка) #NameVirtualHost *:80 # используем виртуальные хосты, основанные на доменных именах #this first virtualhost enables: http://127.0.0.1, or: http://localhost, #to still go to /srv/http/*index.html(otherwise it will 404_error). #the reason for this: once you tell httpd.conf to include extra/httpd-vhosts.conf, #ALL vhosts are handled in httpd-vhosts.conf(including the default one), # E.G. the default virtualhost in httpd.conf is not used and must be included here, #otherwise, only domainname1.dom & domainname2.dom will be accessible #from your web browser and NOT http://127.0.0.1, or: http://localhost, etc. # <VirtualHost *:80> DocumentRoot "/srv/http" ServerAdmin [email protected] ErrorLog "/var/log/httpd/127.0.0.1-error_log" CustomLog "/var/log/httpd/127.0.0.1-access_log" common <Directory /srv/http/> DirectoryIndex index.htm index.html AddHandler cgi-script .cgi .pl Options ExecCGI Indexes FollowSymLinks MultiViews +Includes AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/home/archie/Projects/www/e-shop1-image" ServerName e-shop1-image ServerAlias e-shop1-image <Directory /home/archie/Projects/www/e-shop1-image/> DirectoryIndex index.htm index.html index.php AddHandler cgi-script .cgi .pl Options ExecCGI Indexes FollowSymLinks MultiViews +Includes AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/home/archie/Projects/www/e-shop2-opencart" ServerName e-shop2-opencart ServerAlias e-shop2-opencart <Directory /home/archie/Projects/www/e-shop2-opencart/> DirectoryIndex index.htm index.html index.php AddHandler cgi-script .cgi .pl Options ExecCGI Indexes FollowSymLinks MultiViews +Includes AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/home/archie/Projects/www/e-shop3-prestashop" ServerName e-shop3-prestashop ServerAlias e-shop3-prestashop <Directory /home/archie/Projects/www/e-shop3-prestashop/> DirectoryIndex index.htm index.html index.php AddHandler cgi-script .cgi .pl Options ExecCGI Indexes FollowSymLinks MultiViews +Includes AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> 127.0.0.1 linux localhost 127.0.0.1 e-shop1-image 127.0.0.1 e-shop2-opencart 127.0.0.1 e-shop3-prestashop
Арчи ~]$ ...as always want ready-made solutions that would make even tastier
|
akmkin |
|
![]()
Темы:
18
Сообщения:
178
Участник с: 19 марта 2012
|
Ок. перезапустите httpd и проверяйте. работает?
timere mori ambulantes
|
akmkin |
|
![]()
Темы:
18
Сообщения:
178
Участник с: 19 марта 2012
|
palpalychстранно... у меня работает...
timere mori ambulantes
|
palpalych |
|
![]()
Темы:
89
Сообщения:
1126
Участник с: 09 августа 2011
|
ну пхп запустилось, теперь другой вопрос у них установка заточена под денвер - После этого, перейдя по ссылке http://imagecmsshop.loc, вы увидите, что автоматически запустился процесс установки.
Арчи ~]$ ...as always want ready-made solutions that would make even tastier
|
akmkin |
|
![]()
Темы:
18
Сообщения:
178
Участник с: 19 марта 2012
|
набирайте в адресной строке e-shop1-image (Вы ведь домен именно с таким именем создали в httpd-vhosts.conf?) и ентер :) и так с каждым для установки ) у них установка заточена под денвертакого не бывает. Сервер он на то и сервер... Что денвер, что апач... одно...
timere mori ambulantes
|
palpalych |
|
![]()
Темы:
89
Сообщения:
1126
Участник с: 09 августа 2011
|
akmkinтолько пхп и больше ничего нет, т.е пхп из локалхоста выскакивает
Арчи ~]$ ...as always want ready-made solutions that would make even tastier
|
akmkin |
|
![]()
Темы:
18
Сообщения:
178
Участник с: 19 марта 2012
|
Что с e-shop1-image e-shop2-opencart e-shop3-prestashop не работают? только локалхост? Возможно mysql не поднялся
timere mori ambulantes
|