2011-07-28 2 views
-1

액세스 할 수없는 호스트에 설치해야하는 Zend 응용 프로그램을 개발 중입니다. 두 가지 문제가 있습니다 :동일한 호스트에 여러 Zend 응용 프로그램이 있습니다.

  1. 서버에는 zend-server-ce 설치가 없습니다.
  2. 응용 프로그램은 wordpress 및 Jumla와 같은 다른 CMS'es 옆에 설치해야합니다.

나를 구현하는 데 사용할 수있는 두 가지 방법이 있습니다. 첫 번째는 하위 도메인에 각 CMS를 배치하고 두 번째는 폴더에 각 CMS를 배치하는 것입니다.

blog.host.com --> for Wordpress 
contents.host.com --> for Jumla 
management.host.com --> for zend application 

을하고 두 번째는 할 수있다 :

예를 들어 첫 번째는 다음과 같이 보일 수 있습니다

host.com/blog --> for Wordpress 
host.com/contents --> for Jumla 
host.com/management --> for zend application 

내가 호스트에서 일부 특정 폴더의 문서 루트를 구성 할 수 없습니다. 나는 현재에 /etc/apache2/httpd.conf을 변경 내 로컬 컴퓨터에 가상 호스트를 구성 :

NameVirtualHost *:80 
<VirtualHost *:80> 
     DocumentRoot "/var/www/my_project/name/public" 
     ServerName pl.localhost 
</VirtualHost> 

그래서 내가 아파치 그거야에 액세스하지 않는 호스트에 같은 일을 위해 무엇을해야하는지?

+0

에 대한 optionsAllowOverride

에 대한 아파치 문서를 확인하면 편집하는 방법을 아파치 설정 _on 내가 – Subdigger

+0

I를 it_에 대한 액세스를하지 않는 호스트 대신에해야 할 일이 무엇인지 알고 싶다는 뜻입니다 ... –

답변

-1

나를 위해 - 더 좋은 방법은 하위 도메인을 사용하는 것입니다. 예를 FO

설정 blog.host.com 의 DocumentRoot가 - 젠드 응용 프로그램에 대한

<VirtualHost *:80> 
     DocumentRoot "/var/www/blog.host.com/www" 
     ServerName blog.host.com 
</VirtualHost> 

을을 index.php하는 전체 경로입니다 - 당신의 프로젝트 마녀 README.txt 파일의 모습 문서를 읽기/:

README 
====== 

This directory should be used to place project specfic documentation including 
but not limited to project notes, generated API/phpdoc documentation, or 
manual files generated or hand written. Ideally, this directory would remain 
in your development environment only and should not be deployed with your 
application to it's final production location. 


Setting Up Your VHOST 
===================== 

The following is a sample VHOST you might want to consider for your project. 

<VirtualHost *:80> 
    DocumentRoot "/mnt/winc/www/zend_test/public" 
    ServerName zend_test.local 

    # This should be omitted in the production environment 
    SetEnv APPLICATION_ENV development 

    <Directory "/mnt/winc/www/zend_test/public"> 
     Options Indexes MultiViews FollowSymLinks 
     AllowOverride All 
     Order allow,deny 
     Allow from all 
    </Directory> 

</VirtualHost> 

하지만 -IndexesIndexes 더 나은 세트를 배포하는 파일을 검색 허용하는 경우.

EDIT 1

또한 자세한 정보

+0

웹 서버의 아파치에 대한 액세스 권한이 없습니다! 또한 젠드 라이브러리에 대해 내가 어떻게해야한다고 말하지 않았습니까? –

+0

@Sorush Rabiee 그런 다음 서버에 액세스 할 수 없다면 무엇을 질문해야합니다. 그러면 아무 것도 넣을 수 없습니다. zend libraries에 대해서 ... 프로젝트의/library 폴더 (각 프로젝트 나 최상위 폴더는 http '/ home/subdigger/libs/Zend/Library'를 통해 접근 할 수 없다)에 넣고 include 나 set_include_path처럼 사용하십시오. – Subdigger

+0

서버에 파일을 저장할 수 있지만 가상 호스트에 대해'/ etc/apache/httpd '를 편집 할 수없고 무시할 수 있습니다. –

관련 문제