Reputation: 1664
It seems I set up everything correctly. I received no errors.
I used zf create project and it created the project no problem.
I went to localhost/site and instead of showing the welcome to zend page it opens the directory and shows me its contents. I have to go to localhost/site/public to see that page.
I tried creating a new public action in the controller and added a file in the view scripts portion but it didn't show up.
The project is located in /var/www/html directory
What could I have forgotten?
Steps I took:
Updated repositories before downloading and installing stuff
Install linux
install apahce
install mysql
install php
install phpmyadmin
install zend framework minimal
install phpunit
install subversion (but did not combine it with zend)
That's about it, I didn't do anything more than that.
Upvotes: 1
Views: 165
Reputation: 60413
By default it is assumed you will run the project from a Virtual Host with the DOCUMENT_ROOT pointed at /path/to/project/public
If you want to run the site in a subdirectory then this subdirectory should only contain the contents of what is currently in public, and you would need to modify the configuration settings to run with this setup.
Check out the Quickstart section "Create a Virtual Host" for more info.
The easier option here is just to create a Virtual Host for the project and add a host entry to /etc/hosts
like:
127.0.0.1 zfproject.local
Upvotes: 3