I have troubles to install zend framework in ubuntu 12.04 with virtual host and get the first screen.
1) I have installed zend framework executing sudo apt-get install zend-framework-bin 2) In my folder /home/kostas/develop/ I execute zf create project test 3) In my /etc/hosts file I have 127.0.0.1 test 4) in my /etc/apache2/site-available/test I have the following:
ServerName 127.0.0.1
ServerAlias test
DocumentRoot /home/kostas/develop/test/public/
SetEnv APPLICATION_ENV "development"
Options All
AllowOverride All
Order Allow,Deny
Allow From All
I restart the apache, doesn't work! White browser screen!
Can someone help me?
SOLUTION!!!
1) first of all we need to see apache2 errors which means: /var/log/apache2/error.log
2) we should enable rewrite mode which means:
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
3) we should add the folder library/Zend which is located in Zend Framework tar.gz file that we have downloaded from zend.com in the library folder of our project, in my case:
/home/kostas/develop/test/library
4) we may give correct rights of test folder -R in any case.
That's all! Is working!
SOLUTION!!!
1) first of all we need to see apache2 errors which means: /var/log/apache2/error.log
2) we should enable rewrite mode which means:
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
3) we should add the folder library/Zend which is located in Zend Framework tar.gz file that we have downloaded from zend.com in the library folder of our project, in my case:
/home/kostas/develop/test/library
4) we may give correct rights of test folder -R in any case.
That's all! Is working!