Zend server deployment - zend-framework

I'm deploying sample Zend apps on Zend server, following official tutorials. No matter what I deploy the only thing that I can access is the hello world page (Hello world
says hello).
How can I access real application?
host/address/public and host/address/index.php or other permutations don't work...

When you create your zpk file with Zend Studio there is a deployment.xml file that specifies some vhost settings as well as various other dependencies and triggers.
If you double click this file within Zend Studio you will be presented with a gui that helps you create this file.
The two fields of importance to this question are "Application directory" and "Document Root". If you have a Zend Framework application the most likely settings for this are:
Application Directory: data
Document Root (main public directory): data/public
The document root is the most important part as it defines the directory where apache executes the first file.
You then export the project into a zpk and upload that within Zend Server.
Once uploaded you will be presented with a "Set Installation Details" screen. There you will define the virtual host directory name.
For a simple deployment to your localhost or your server IP you can have the following:
Display Name: Address App
Virtual Host: Default
Path: address
This will then deploy your application to: http://localhost/address or http://192.168.0.*/address
You can also deploy it with a url eg:
Display Name: Address App
Virtual Host: click "add new" then enter the url eg. myaddressapp.com
Path: leave blank
This will then deploy your application to: http://myaddressapp.com. IF you are not deploying to a live site you can fake the url by entering a record in your hosts file
Alternatively, I started writing a blog post a while ago on how to deploy to Zend Server in a VM. This does everything automatically so you dont have to rely on exporting and importing. Here is the work in progress of the post: https://docs.google.com/document/pub?id=1bR58tXWpkezomGiv9cnkySrXxKItoEUQ6E6V9a8n46A

Related

How can i change path to Laravel project?

Change web root path to a website with crudbooster and Laravel
so, i have a website and the cms behind was done with crudbooster and larvel. when the website was created, the path for it was: /webroot/domainA/site/site/
I want to move this to /webroot/domainB/site/site but when i`m changing the path, whole website is down and not working unless i change back the original path to /webroot/domainA
Where can i change the path of the website to be the one I needed?
domainA - developer server
domainB - client server
This was a fiver.com project, and the person who did it not responding to my emails.
Go to the .env file and change the APP_URL

How to deploy ABP to IIS

I have a ABP template. It is a merged solution for Angular in Full .Net framework. I have already created a published package by right clicking on the Web.Host project and then Publish.
Here is a screenshot of my published folder:
I have also added a website in my local IIS and have pointed it to the wwwroot folder of my published folder as localhost:8081
I have modified the appconfig.json in the wwwroot/assets folder as:
{
"remoteServiceBaseUrl": "http://localhost:8081",
"appBaseUrl": "http://localhost:8081"
}
and have also changed appsettings.json to
"App": {
"ServerRootAddress": "http://localhost:8081/",
"ClientRootAddress": "http://localhost:8081/",
"CorsOrigins": "http://localhost:8081,http://localhost:8081"
},
Do I need to add another Website in IIS for host? If Yes, where should I point it to? Again wwwroot? All the DLLs and appsettings.json are above the wwwroot. Should I bring them all inside the wwwroot?
When I navigate to the localhost:8081 I get "Resource not found" prompt
I noticed that there is a Web.Host.exe file in the Published folder. When change all above settings to localhost:5000 and execute it, it runs the host on localhost:5000 and works fine for both localhost:5000/swagger and localhost:5000/app/
Do I need a website under IIS to execute the Web.Host.exe? If yes, how would I add such website? Where that port 5000 has been set for the .exe file?
If I change the website physical folder to the published folder (which holds the wwwroot folder) I get the following error (seems something is wrong with the web.config file):
You need the .NET Core Hosting Bundle.
Install the .NET Core Hosting Bundle on the hosting system. ...
a. Navigate to the .NET All Downloads page.
b. Select the latest non-preview .NET Core runtime from the list (.NET Core > Runtime > .NET Core Runtime x.y.z). ...
c. On the .NET Core runtime download page under Windows, select the Hosting Bundle Installer link to download the .NET Core Hosting Bundle.
...
Restart the system or execute net stop was /y followed by net start w3svc from a command prompt. Restarting IIS picks up a change to the system PATH made by the installer.
Reference: https://learn.microsoft.com/en-us/aspnet/core/publishing/iis?tabs=aspnetcore2x

Visual Studio 2017 ClickOnce - Unable to view published application

I have an application that I'm trying to publish to my website. The error I'm getting is that when done publishing, it says:
So it looks like it succeeded, but didn't.
My website is located at www.mywebsite.com.
In my build properties, under the publish tab, I click options->deployment, then set deployment webpage title to 'rdl', then I check automatically generate deployment webpage after every publish
I then go through the Publish Wizard:
Specify the location to publish this application: ftp://www.mywebsite.com/
Click next.
Check From a website: Specify the url: http://www.mywebsite.com/
Check Yes, this application will be available online or offline
The final page then states:
The application will be published to:
ftp://www.mywebsite.com/
Users will launch this application from:
http://www.mywebsite.com/
Click Finish
I am then left with the error described in the image above.
When I go to cPanel (my web host), I am able to see the Application Files folder which includes my application folder inside it.My .deploy and .application file are also located there along with any assets I had.
This Application Files folder is on the same level as the public_html folder if that matters.
Any help would be appreciated, I'm not exactly sure where I'm going wrong!

Configure the path (localhost) of the war application to be the root (Java EE)

I want to change the path when I run my war-application locally...
Right now, it is running on the default setting...
http://localhost:8080/myproject-war/
and I want it to be the root, something like:
http://myproject-war.local/
or
http://myproject:8080/
How can I do that???
Note: My app is a Java EE 6 Application with Glashfish using Netbeans 7.3
This post helped me out How do you deploy a WAR that's inside an EAR as the root (/) context in Glassfish?.
First, I added a Standard Deployment Descriptor (application.xml) to the Enterprise Application Project.
Then, change the path of the context root of your web application: <context-root>/myproject-war</context-root> to <context-root>/</context-root> or <context-root />
Finally, (optional) remove or rename the Glashfish index page (or redirect it to the welcome page). located in the Glashfish default folder such as C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1\docroot
Now the page web application will be visible on: http://localhost:8080/
Maybe you are mixing up stuff here - one thing you can and should do is setting the context root of your application. This is done in the server's deployment descriptor - in your case in glassfish-web.xml:
<context-root>/myproject</context-root>
(See The Java EE 6 Tutorial for more details.)
What you're asking in your example URLs is changing the host name, which is not related to your application or application server, but to your machine and OS settings.
You may put something in the OS hosts file (/etc/hosts on Linux, C:\Windows\System32\drivers\etc on Windows), but I don't see the point to do this. Your application runs on some host (may it be localhostor some external server) and this is how your URL starts.
you can put entry in host file. which is located in "C:\WINDOWS\system32\drivers\etc".
127.0.0.1 your_project_name

.htaccess file for Uploading a Zend Framework Project on 1and1

The problem I have is that I am trying to put a Zend Framework web application online and while it works perfectly on my localhost, it has a lot of errors online. I know that there are certain things required for a Zend website to work.
I need the document root to be serwano.com/staging/fbr
I need php5
I need mod rewrite on
I need the document root to be serwano.com/staging/fbr.
I have a testing website with the following folder set up:
/webroot(serwano.com)
/staging
/other test site
/other test site
/fbr
/application
/library
/public
I need help determining what the appropriate .htaccess file would be so that my Zend Web App will work.
You can figure the webroot for a domain to point to any folder insider your FTP upload directory, thus you can do
+ userhome
|- serwano.com
|-- staging
|-- test
|-- production
Then go to your 1&1 control panel and create three subdomains for serwano.com. There should be an option to point each subdomain's webroot to the appropriate folder, e.g.
staging.serwano.com // point it to the staging folder
test.serwano.com // point it to the test folder
www.serwano.com // point it to the production folder
Whether you can use .htaccess and mod_rewrite depends on how your webhosting package is configured. Contact 1&1 (prepare for pain) to find out if that is possible. If it is not possible, Google has a number of results for Zend Framework without .htaccess. You do not need mod_rewrite, nor .htaccess. This is just recommended.