Zend Core Administrator Problem - php

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.

Related

Zend Skeleton framework not displaying using Php

I am working through the ZEND Skeleton installation described here
I am running it on an Apache server (in my home network) on Ubuntu 16.10
When I switched off the server yesterday the installation was working correctly, and displaying the expected Zend pages, as per the documentation.
To clarify - I need to know why the previously working installation on Apache has stopped rendering the pages in Php
I bookmarked these links in my browser. When I booted the server this morning and went to those links I get the result shown in the image below:-
Local browser URL (192.168.1.201/zendtest1/)
Zend Skeleton index
It appears that in switching off and on the machine the Zend installation has stopped accessing Php to render out the page in the browser.
Does anyone have any experience of this, or any suggestion as to what may have occurred?
The document root of a ZF2/ZF3 project is public, so you should use one of the strategies exposed in the quick start to either:
set the proper document root on your server
use the php development server
use vagrant and a VM
use docker
You could also access the address with typing /public at the end, that will probably not work at some point for your assets though. Then you will need to fix your basepath.

disable auto-building of specific directory

I have eclipse 3.7.2 to work on PHP projects that are on remote Linux servers that can be accessed by SSH.
I installed eclipse RSE (Remote System Explorer) and I used it to add a remote project and configured it as a PHP project.
best practices for Zend Framework 2 projects is to include the used Zend Framework version within the sources of the application, but what happens then is that whenever I reopen eclipse it tries to build the project and validate the entire zend framework directory.
how can I choose that the auto builder will ignore that directory since it's not something that I modify. in general I have no idea why it needs to validate that directory every time and it does not check for md5 on the directory content before trying to validate every time. but it this can't be fixed, i need to ignore the entire zend framework directory foom auto building.
using Eclipse 3.7.2 with PHP plugin.
using Zend Framework 2.0 beta4 with basically the skeleton application and modules that are provided from the zend framework site.
thank you! :)
In the latest ZendSkeletonApplication, you'll see in index.php that you can place ZF2 outside of the project as long as you set the ZF2-PATH environment variable.
it seems that it's possible to do that.
i just need to right click on the directory i want to exclude from auto-building.
then to go to Build Path => Exclude.
this excludes the directory from auto-building and resolves the issue.

How to find out if Zend Framework, Zend Server are installed on my machine?

I'm reading Reference Guide::Create Your Project. And it's written there:
In order to create your project, you must first download and extract Zend Framework.
After you have installed Zend Server, the Framework files may be found
under C:\Program Files\Zend\ZendServer\share\ZendFramework on
Windows. The include_path will already be configured to include Zend
Framework.
I didn't download Zend Framework or installed Zend Server (I have XAMPP installed with Apache and have localhost and can load php files in browser. I don't need any more server, I think). I just downloaded and instaled Zend Studio 9 and after the instalation I went this way:
File --> New --> Example...
and chose Zend Framework Example Project and named my project "zend_project_example".
Then it was written that somthing was being instaled and it took quite a long time. Then I got this tree in the PHP Explore folder. And I even opened the Controller code from Zend Framework Library:
So it seems I have ZF, but I don't have anything in:
C:\Program Files\Zend\ZendServer\share\ZendFramework.
In fact I only have Zend Studio 9 folder threre: C:\Program Files\Zend\Zend Studio 9.0.2.
No any \ZendServer\share\ZendFramework
And in the Reference it is written:
Open a terminal (in Windows, Start -> Run, and then use cmd). Navigate
to a directory where you would like to start a project. Then, use the
path to the appropriate script, and execute one of the following:
% zf create project quickstart
I doesn't work for me. I can't do any steps farther in the Reference Guide. What should I have to solve and what should I have to do next to follow the Referance right way?
Thank you.
Zend Studio is just an IDE - an environment which is supposed to make developer's life easier. You need a server to run your projects on localhost. You quoted
After you have installed Zend Server,
and you wrote
I didn't download Zend Framework or installed Zend Server,
You can't expect the tutprail to work if you don't do what it says.
http://www.zend.com/en/downloads/
this is to download link for zend server and which would you like preferred you choose and you save manually and double click on setup file easy to install on your system

Zf.php is not a valid action error on a shared hosting

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

zend framework not working in ubuntu

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

Categories