I am in the beginning phase of trying out Laravel. I downloaded composer and have the Laravel installer on my web server. I want to just create a website with a CMS using Laravel 5 just so I can get a solid understanding of it. I am trying to figure out where to install the files. The docs say to install it in a directory using this command: "Laravel new ". This is where I am a little confused. Wouldn't I want this in the root directory of the website I will be creating? I tried to install it there but it doesn't work.
Where do I install the files so I can use it do build a CMS?
Basically you install laravel from composer, and point the root of your webserver to /public directory.
Related
I got this issue when I've tried to install Laravel !!
composer create-project --prefer-dist laravel/laravel blog
[Composer\Downloader\TransportException]
The "http://packagist.org/p/provider-2017-04%24cc0b63f9292683fc4f978a14aca71a0c07b2025b938e199310663bcc64ced957.json" file could not be downloaded (HTTP/1.1 404 No
t Found)
If you all care is to just get a running Laravel without getting in too much deep that how it get installed, I would suggest you choose another way which does the same thing i.e use Laravel Installer instead of composer.
Via Laravel Installer
First, download the Laravel installer using Composer:
composer global require "laravel/installer"
Make sure to place the $HOME/.composer/vendor/bin directory (or the equivalent directory for your OS) in your $PATH so the laravel executable can be located by your system.
Once installed, the laravel new command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed:
laravel new blog
More info:
https://laravel.com/docs/master
I install a new Laravel project and I have been applied Many changes on it for my own purposes. for Example my custom admin panel design and related css and javascript files.
In addition to, I added some packages that are required on whole project.
Now , if I want to Start a new Project , I must to install a fresh laravel Project and add those files and packages manually again that It takes a lot of time.
Is there a way that I could store this base laravel project on it (for example Github) and install it via composer?
Yes, you can use Github to create a private/public repository then when you start e new project you clone that repository and then use composer install command to get the dependencies.
Yes, it's possible.
Here are all the steps :
git clone xxx.git
composer install (make sure you have included .env.example in your git for the app key)
npm install
bower install
php artisan migrate (if, I hope, you use migrations)
gulp
And you are ready to work on your project.
I created a project with Laravel and downloaded from git via this command:
git clone -b develop git://github.com/laravel/laravel.git
The file size was about 21MB,
I want to know should I download Laravel for every project with this command?
What you have done is cloned the framework itself, which you should only do if you're going to fork and develop the Laravel core.
What you should do instead is use Composer to install your Laravel projects. You'll also be using Composer for other dependency-related actions in said projects (including autoload). This is the proper way of installing a fresh Laravel framework for developing a website:
composer create-project laravel/laravel --prefer-dist
http://laravel.com/docs/installation
Then, any future Laravel projects you create will be loaded from your Composer cache without needing to re-download.
The Composer package also sets up all your vendor-related .gitignore information and includes several other really useful management features. This is important, because you only want to keep your application-specific code under git version control, not the framework itself or any other dependencies. (Otherwise, your diffs and commits will get polluted with the dependencies' development changes.)
Once you've created a repository for your project, and installed Laravel with Composer, and created your first few commits (with some migrations, models, and controllers, for instance), cloning your project usually works something like this:
cd /clone-here
git clone /myproject # Location of current project
# /clone-here now has only the application-specific files from /myproject. It is
# still missing the framework itself and other dependencies.
composer install # Composer now looks at the dependencies in
# /clone-here/composer.json and installs them into /clone-here/vendor
# including the Laravel framework.
# Now the framework and other dependencies are good to go.
php artisan migrate # Laravel makes all your DB schemas from your migrations
php artisan db:seed # Seed your lovely new DB tables
It's really elegant and fun once you get used to it.
Edit:
See Sheikh's answer to save some time in the Composer install process!
Already Leng gave a nice answer.
Installing Laravel since version-4.1* via Laravel Installer is faster than composer
First, download the Laravel installer PHAR archive. For convenience,
rename the file to laravel and move it to /usr/local/bin. Once
installed, the simple laravel new command will create a fresh Laravel
installation in the directory you specify. For instance, laravel new
blog would create a directory named blog containing a fresh Laravel
installation with all dependencies installed. This method of
installation is much faster than installing via Composer.
I need clear instructions for installing Zend Framework2 on a web host.
The hosting company is Ipage. Ipage already has Zend Engine installed, so it should support Zend Framework2.
Ipage does not provide ssh, so an ssh installation method would not work. I can only install by FTP'ing the files to the host.
I have Zend Framework Full Package as a zip file. In the zip file are bin, library, and resource folders. I have uploaded all those files to the server.
Issues:
I think there are path settings I need to set, and I need help with those.
after installation, I need to check if Zend Framework is working; is there a way to check that?
Here is what I have so far:
Downloaded ZendFramework - 2.2.1.zip
Extracted all the files from bin, library, and resource folders and uploaded them to the host.
I am stuck here, any help would be good.
You can follow these simple steps:
1) Use Composer to install Zend Framework on your local machine. This will generate the required autoloading etc for you.
2) Upload the files via FTP to your host.
Detail:
You must setup a local development envorinment on your machine, if you're using windows install something like Wamp/Xamp. This will install PHP/Apache etc for you.
To begin we will install the Skelleton Application to get started. Grab a copy from here:
https://github.com/zendframework/ZendSkeletonApplication
you can either download the package, or use one of the methods in the config, Git etc. Git would be recommended, but I am assuming you don't have this installed, so downloading the package is fine.
bring up a terminal window (in windows hit windows key + r and type cmd). change to the directory you placed the package.
now use composer to do your installation for you, type this:
cd my/project/dir
cd ZendSkeletonApplication
php composer.phar self-update
php composer.phar install
Now you should be ready to upload to your server (I have skipped howto seutp your local environment etc).
Upload the whole directory structure to your web server, making sure the public folder in in your document root on the server. It should now work :)
I am new to joomla1.6.I install joomla1.6 in my folder named joomla inside the www folder on wampserver.Then i create my first site.Is it needed to install joomla1.6 again for creating the second site?is it needed to install joomla1.6 again&again for each site?
That sounds like you're searching for the multi-sites extensions: Multiple Sites in the extension repository.