Apache 2.2 or later*
PHP 5*
Zend Framework*
Note: The Zend Framework version installed on your server should
match the Zend Framework version in which you developed your application.
* These components can be installed together by installing Zend Server.
The following instructions will guide you through the process of setting up your Zend Server in order to be able to run Zend Framework-based applications.
Note:
Zend Server is the recommended environment but Zend Framework projects can be run on other servers. Different configuration information might apply.
|
|
|
To set up your server in order to run/debug Zend Framework Projects:
Note: If you are using Zend Server , these settings should be configured by default.
|
Once you copy your Zend Framework project files to the server you will be able to run and debug the project as you would a normal PHP project. |
|
|
|
To configure Zend Server to run a Zend Framework application:
Listen 10089 <VirtualHost *:10089> DocumentRoot "DOCUMENT_ROOT" <Directory "DOCUMENT_ROOT"> Order allow,deny Allow from all AllowOverride all </Directory> </VirtualHost>
# public/.htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /index.php [NC,L] Note: Some web servers may ignore .htaccess files unless otherwise configured. Make sure that your web server is configured to read the .htaccess file in your public directory.
|
Once you copy your Zend Framework project files to the server you will be able to run and debug the project as you would a normal PHP project. |
Apache uses a main configuration file for all its settings, typically this file is called httpd.conf or apache2.conf. The location of this file varies depending on your installation:
Windows:
<install_dir>\Apache2.2\conf\httpd.conf
If you changed the location of your Zend Server installation, your document root will be located at <installation_directory>\ Apache2.2\conf\httod.conf, where <installation_directory> is the location of the directory in which Zend Server is installed.
Linux:
If you installed Zend Server from a repository (DEB or RPM packages), the location of your configuration file is defined by your distribution's Apache packages, and will vary depending on your distribution and configuration.
Common locations include:
Debian / Ubuntu - /etc/apache2/apache2.conf
Fedora Core / RHEL / CentOS - /etc/httpd/httpd.conf
If you installed Zend Server using the generic Tarball package - /usr/local/zend/apache2/conf/httpd.conf.
If you changed the location of your Zend Server installation, your document root will be located at <installation_directory>/ apache2/conf/httpd.conf, where <installation_directory> is the location of the directory in which Zend Server is installed.
|
|
|
Related Links: Developing with Zend Framework |
|
|
©1999-2013 Zend Technologies LTD. All rights reserved.