I have my Laravel5 project done in the localhost. I made a new Instance and used Ubuntu. Installed Apache2, PHP5.6, MySQL, PHP Mcrypt. Everything seems fine, but how can I put my project with its database on the server?
Related
I am not yet used Laravel and I am just curios if the Homestead can be used on other PHP frameworks like CodeIgniter?
Homestead runs on Ubuntu within a Virtual Machine. It comes with the following software installed:
Ubuntu 14.04
Git
PHP 7.0
HHVM
Nginx
MySQL
Sqlite3
Postgres
Composer
Node (With PM2, Bower, Grunt, and Gulp)
Redis
Memcached
Beanstalkd
Pretty much anything a webserver needs to run any kind of PHP framework. If there's something missing for the framework you're using, you can install it.
You can of course use it for any php related project. But be careful when configuring the Homestead.yaml file to correctly set the path to your projects.
sites:
- map: laravel.app
to: /home/vagrant/Code/laravel/public
- map: codeigniter.api
to: /home/vagrant/Code/codeigniter
You can also setup multiple databases if you need to.
Simply don't forget to run bash init.sh and vagrant provision each time you modify the config file.
I have Composer installed on my computer to manage the dependencies, but I am on a shared hosting account without SSH access to install Composer. How would I go about uploading this project to the server without Composer?
The project is a PHP project with Amazon and other libraries and APIs.
Don't worry, you don't need composer on your production server, in this case.
What you can do, if not done already, is run composer update on ANOTHER (maybe local) dev machine and test your application.
If everything is OK, upload all files (yes, vendor and all) to your host.
What is the benefit of using Vagrant (via homestead) instead of using WAMP server on Microsoft Windows?
I found that configuring homestead and vagrant is harder than installing WAMP. Isn't it?
Laravel Vagrant is a homestead for development environment.
Its easy to install server requirements and including many dependencies in out command.
Ubuntu 14.04
PHP 5.6
HHVM
Nginx
MySQL
Postgres
Node (With Bower, Grunt, and Gulp)
Redis
Memcached
Beanstalkd
Laravel Envoy
Fabric + HipChat Extension
You don't needs to spend your time for configuring web server locally for this.
I think in windows better is Wamp, but in case of Ububtu and Mac, the Vagrant (Homestead) is better than others...
I have ubuntu 14.04 and LAMPP is installed. I was learning Laravel 4, but get a lot of confusion on it's documentation, below I list few of issue.
How to install laravel?
what I did :
copy github repository into /opt/lampp/htdocs/larva and run composer install, Laravel is installed and I can access it with http://localhost/larva
What is homestead? is that another way to install laravel or this is additional thing?
What is artisan? if I use artisan then do we need to use homestead also?
what I did ( in terminal )
cd /opt/lampp/htdocs/larva
php artisan serve
it started the service and I can access laravel with htpp://localhost:8000 BUT if i close this terminal then URL is lost
and there is one other way is using vagrant? do we need to use vagrant if we installed it already?
one more thing is Nginx?
overall these vagrant, Nginx, Homestead, artisan,and composer methods create such a mess.
Please clear the clouds and please do not mention what is vagrant Nginx and all. I just want to know that do I need to do something with Homestead and vagrant if i have installed using git repository and composer way?
Thanks
Laravel Homestead is an official, pre-packaged Vagrant "box" that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine.
Artisan is the name of the command-line interface included with Laravel. It provides a number of helpful commands for your use while developing your application. It is driven by the powerful Symfony Console component.
When you close the terminal, you are stopping the service on port 8000. You always can create a virtual host, and point its root to your larval installation /public directory
you dont have to use vagrant to run laravel. Vagrant is just your 'bridge' to Virtual Mashine.
If you installed LAravel via composer and you got it work on localhost:8000 then you dont need neither homestead or vagrant
Unable to install typo3 neos on openshift.
my git repository https://github.com/ynagarjuna1995/neos
but when I execute rhc create app appname php-5.3 mysql-5.1 --from-code=https://github.com/ynagarjuna1995/neos
it has initialized the gear .but no result .
Please make repository of Typo3 Neos to install on Openshift
I'm going to try TYPO3 Neos on OpenShift too (and then share my expirience of course), but haven't done it yet.
Any particular reason you try this with (almost deprecated) PHP 5.3? Have you tried PHP 5.4/5.5? Neos works perfectly on PHP 5.5.