I have installed Ubuntu 10.10 on my laptop. Happy about my accomplishment i have proceeded on to installing zend framework.
I've downloaded the files, extracted them in my /opt directory, made a link /opt/zend and included /opt/zend/library in my php include_path. I have also configured php-cli's include_path. I have enabled mod_rewrite.
I create my first project, i don't have vhosts enabled (i do not wish to create vhosts for every project), i'm fine with adding /public to my path.
So i have my first project created with zend tool, i test it in my browser it works. I install the Netbeans zend plugin and i create my first controller. I try to view it in my browser, says not found. That is weird.
I download my other projects made in zend, same problem. The index page is loaded but when i try to view other controllers i get a not found error. Could somebody shed some light here? I have no clue what could be the problem.
All my other zend projects are working fine on any shared hosting i use, no configuration needed whatsoever(except database).
Seems that ubuntu's default install of apache is somehow not working with zend...unless you edit your 000-default file under /etc/apache2/sites-enabled. For more details follow this link
Just remember to change every line Allow None to Allow All
Related
I have not every used, or even installed the Zend Framework.
I have inherited a website built in the ZF and only have FTP access to the deployed version that is live.
Is it possible to simply download the files that are live and run then locally within XAMPP, as i have tried this but ther server has lots of short cut director mappings and no ZEND?
I am assuming not, so can i install Zend and then download the site to my local machine for it then to work?
Any assistance on this would be helpful as have no idea about it, whether i need source files or not.
Thanks
Shaun
once you have the project downloaded in xampp. make sure you have composer installed and configured.
delete the vendor folder inside your project then run
composer install
under the root of your application.
I use composer to install symfony-demo. (It's symfony demo project for learning and teaching)
I'm using symfony-demo repository.
I'm on a windows machine. Running php 7.
Installed folder is c:\www\symfony-demo\
Apache is installed and c:\www is root folder.
loading http://localhost/symfony-demo/web works. The symfony application works.
However the assets like "/build/css/app.css" fail to load. The error status is 404 Not Found.
I think this is because I'm in a subdirectory of the root folder.
I've also tested running php bin/console server:run and testing it on 127.0.0.1:8000 but the results are the same. The css and js resources fail to load.
I'm comfortable editing Apache's .htaccess file. What am I missing? How do I either configure Apache or Symfony to find these resources?
The latest GitHub Repository fixed the error. The nightly build of the demo project did not have the assets. It now includes the missing css and js. The fix is mentioned in the commit.
The documentation of the symfony-demo is lacking information about the new build tools it is using. Check out the new api to build the frontend assets in Symfony based on Webpack Encore.
You can find more information in these issues Manage frontend dependencies properly and Manage application assets with the new Symfony asset manager.
I have a question concerning Zend Tool. I am trying to install Zend Framework on a shared hosting (bluehost if that matters). I have unpacked the latest Zend Framework into my public_html folder and added the path of the framework's library to php.ini include_path.
When I try to run zf.sh with any arguments (for example, zf show version) I get an error:
Action 'path_to_zf/bin/zf.php' is not a valid action.
What could be the source of the problem? Thanks.
To run a Zend Framework website on a production server, you should use a development computer to create the website and then upload the website code to the production server using a deployment strategy such as capistrano, a phing script, rsync or even plain old FTP.
On your local development computer, you use zf.sh (or zf.bat on Windows) as per the instructions in the Quick Start. Once you are happy that it works locally, upload to your shared hosting.
To get a PHP environment on your local computer, consider installed WAMP or Zend Server CE.
I just went through this (with BlueHost) myself.
You mentioned that you added the proper path to the include_path in public_html/php.ini. There are a few other things to check.
First: By default, BlueHost servers are configured to use a different php.ini file (located in /etc/) unless there is another php.ini file in the folder that you are running your script from. You can check by running <? php_info(); ?> and looking for the value for Loaded Configuration File.
In order to get every script in every folder to use the php.ini located in public_html/:
From cPanel, under Software/Services click the PHP Info link
Select PHP x.x (Single php.ini) for the same version as is already
selected (to ensure compatibility).
Second: You'll want to make sure you've added an alias to your .bashrc file (see here)
At this point if your problem isn't solved, you'll want to consider a different method of checking whether or not Zend Framework will be available to your .php files:
Save Zend's Installation Checker file and upload it to the root path of your server. Then view it in your browser. It will tell you if you have installed zend framework correctly.
All tests pass for me, so I don't care that I still get the same error as you when testing through ssh via # zf show version.
More on installing Zend: https://developers.google.com/gdata/articles/php_client_lib#php-path-installation
More on BlueHost php config: https://my.bluehost.com/cgi/help/551
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.
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
I am quite new to PHP Environment and I've started learning it so I've installed ZendCore. I was trying to change root directory to separate the root from ProgramFiles like inetpub so I change PHP Server Root and localhost:81/ still works but not run the under the folder I created, instead it points at the same old default folder but the problem is ZendCore is not working and it says No input file specified. when I type in localhost:81/ZendCore/
What should I do?
Well ... first of all I'd stop using Zend Core and Start using Zend Server or Zend Server CE unless there is a compelling reason to use Core. Core is Zend's older product and has been replaced by Zend Server.