ENHANCEMENT Ticket (pending)

Using ZEND server with PHPCake

Hi, As a former professional programmer on IBM AS/400 and vb(.net) I started playing with php a few weeks ago. After trying the ZEND system I got the feeling I was killing a fly with a elephant. Thats why I searched on the Inet for another framework. The PHPCake seems to be the fastest one and stable enough. I had my Free ZEND server running on a Vmware XP sp 2 machine and it worked like a charm so I decided to create the demo project on that apache server. The ZEND CE server is a free apache server where you only have to set up a free version of mysql or another DB you would like to use. In the follwing text I describe the things I had to change to get the server to work together with 5 extra virtual websites. AFter installing the ZEND server go to the httpd.conf and change the following: find the <Directory /> tag and replace all according to the next lines: <Directory /> Options FollowSymLinks AllowOverride all Order deny,allow </Directory> This will fix the rewrite and the security problems. At the end of the httpd.conf file add the follwing line: include "C:\websites\virtualhosts.conf" Create a folderstructure like c:\Websites\develop1\web c:\Websites\develop1\log repeat this until you reach develop5 after that create another map structure like c:\Websites\tools\web c:\Websites\tools\log In the tools you can install things like phpMyAdmin etc. in the c:\websites you create the text file virtualhosts.conf with this content: ------------------------------------------------------------------------ # Use name-based virtual hosting. NameVirtualHost * <VirtualHost *> ServerName develop1 DocumentRoot "C:\websites\develop1\web\app\webroot" ErrorLog "C:\websites\develop1\logs\error.log" CustomLog "C:\websites\develop1\logs\access.log" combined </VirtualHost> <VirtualHost *> ServerName develop2 DocumentRoot "c:\websites\develop2\web" ErrorLog "c:\websites\develop2\logs\error.log" CustomLog "c:\websites\develop2\logs\access.log" combined </VirtualHost> <VirtualHost *> ServerName develop3 DocumentRoot "c:\websites\develop3\web" ErrorLog "c:\websites\develop3\logs\error.log" CustomLog "c:\websites\develop3\logs\access.log" combined </VirtualHost> <VirtualHost *> ServerName develop4 DocumentRoot "c:\websites\develop4\web" ErrorLog "c:\websites\develop4\logs\error.log" CustomLog "c:\websites\develop4\logs\access.log" combined </VirtualHost> <VirtualHost *> ServerName develop5 DocumentRoot "c:\websites\develop5\web" ErrorLog "c:\websites\develop5\logs\error.log" CustomLog "c:\websites\develop5\logs\access.log" combined </VirtualHost> <VirtualHost *> ServerName tools DocumentRoot "c:\websites\tools\web" ErrorLog "c:\websites\tools\logs\error.log" CustomLog "c:\websites\tools\logs\access.log" combined </VirtualHost> ---------------------------------------------------------------------------------------- After that you run the following to commands on the command prompt: net stop apache2.2-zend net start apache2.2-zend if all went well you now have 5 develop websites and a tool website. The only thing you now have to do is add the following lines to the hosts file: 127.0.0.1 develop1 127.0.0.1 develop2 127.0.0.1 develop3 127.0.0.1 develop4 127.0.0.1 develop5 127.0.0.1 tools Regards, Carlo / Hillie007
on 08.30.09 reported by: Hillie007
on 08.30.09 by Hillie007
  • description was changed
on 08.30.09 by mark_story
Glad to hear you got everything working, but how is this related to generating documentation, and what is the problem? If you'd like to add your experience to the documentation, then please do so at http://book.cakephp.org.