So excited as I have just started working on Laravel, After working nearly for an year with Plain PHP, I finally Started with a framework.
Friends can you please help me with some of my doubts,,,
I am using Ubuntu as Operating System.
I am using PhpStorm as IDE.
I downloaded Laravel Framework and integrated it in PhpStorm.
I successfully Localhosted laravel Welcome page as localhost/public/index.php
Have done this much so far.. But there is something remaining, the url should be friendly like( localhost/index or localhost/welcome ) but i have to type them fully as ( localhost/public/index.php ).
What is the problem? What am I lacking.
You should not have to use /public/index.php
You should setup your webserver (apache/nginx) to use your /public folder as a web root. A typical Laravel installation will take care of the rest if you're using Apache.
See the "Pretty URLs" section of the documentation: http://laravel.com/docs/5.1/installation
Related
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.
Google App Engine recently added support for modules. And I'm almost certain I remember someone saying you can have modules with different runtimes. Your default app can be Python and a module could be in Java or PHP for example. And the module configuration file does make you specify the runtime for that module.
So why then can I not figure out how to run a PHP module inside a Python app?
I have a dispatch.yaml that contains:
dispatch:
- url: "*/blog*"
module: blog
And a blog.yaml for the module which contains:
module: blog
version: wp
runtime: php
api_version: 1
and a bunch of handlers for Wordpress.
Has anyone else been able to do this successfully?
In this case I want to run a wordpress blog under http:/www.domain.com/blog instead of under a sub-domain for SEO reasons.
It seems the appengine SDK is not using the module because if I try to go to /blog it just gives me a 404 error.
I'll continue to play with this and post an update if I find a solution.
I have everything working now. Google fixed some issues in version 1.8.5 making this possible. It's actually not that hard, you just have to remember to run appcfg.py update_dispatch in order to make the dispatch routing live. And also when deploying do appcfg.py update app.yaml wordpress.yaml
That way both configurations are uploaded and deployed.
Currently git push to deploy is still broken and in order to upload images wordpress wp-admin has to be running on the appspot.com domain which is not too big of a deal.
I wrote a blog post describing everything that I did to make it work:
http://blog.artooro.com/2013/10/09/run-wordpress-as-a-module-on-google-app-engine/
I am trying to get the Zend Framework (ver 9 Studio) to deploy and actually run on my local IIS server.
I have created a very simple little app using the built-in wizard. It works fine if I run it on the Apache server that comes with Zend. But I tried to copy the files over and run it on IIS, and I get errors.
It appears that it is missing the links to the libraries. I've tried manually isolating and grabbing the missing libraries and putting them into the /library folder. This is a good start but I still get other errors down the road.
I found a tutorial out there that comes with an example of a Zend Project that runs in IIS. But, it pretty much has the same problems as the project I created. More missing libraries. The tutorial includes some neat new tricks like a web.config that is supposed to replace the need for the .htaccess that Apache uses.
That's how far I've made it. This is all very frustrating. Does anyone have a simple example like that tutorial promised? If not, just some good information would be helpful.
you need the rewrite module, Rob Allen has a little tutorial to help. The biggest problem is usually the rewrite module, because you have to install it seperately.
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.
I am trying to develop websites using Zend Framework. But I came to a strange problem, the public folder is not showing up. I was suppose to change the apache's configuration to redirect http://localhost/ to http://localhost/public, but there are many projects inside the WWW folder, which has to be accesed.
I can enable the mod_rewrite to bring out the public folder, but I am not allowed to change it while I upload it to the actual web server. Is there anyway to solve this problem?
May be a .htaccess file to change the site root folder would be of help.
This answer is a detailed description of manually setting up your virtual host and configuring a basic ZF app to run. Hopefully it will help.
Update: Given your edited question, perhaps my blog post discussing one approach to deploying a ZF app on shared hosting might be helpful.