Showing posts with label bluehost. Show all posts
Showing posts with label bluehost. Show all posts

2014-02-08

Level Up - Webmaster: Installing Laravel and Composer on Bluehost

These steps will get you though getting Laravel up and running on your Bluehost server, though these instructions should be a good enough how-to for other shared hosting providers as well.

This was my first time experiencing (and hearing of) Laravel and Composer and had to look at many websites to figure this information out. Below is a walkthrough of all the steps I would have needed in one location. For more advanced and specific informations, I provide links at the end. But, the steps shown should be enough to get going quickly from scratch.

1.  SSH into your server at ~/bin/
2. Ensure that you have PHP 5.3.7+ on your server. Composer requires 5.3.2+ and Laravel requires PHP 5.3.7+. You can check with which php and which php-cli
3. Install Composer: Run the command curl -s http://getcomposer.org/installer | php
4. Test that the installation worked by running php-cli composer.phar
5. Install Laravel: Run the command php-cli composer.phar create-project laravel/laravel --prefer-dist
Note: Step 5 may take a minute or two, there are many dependencies that have to also be installed for Laravel.

Extra steps
6. Look at this file for project-specific adjustable values: app/config/app.php and bootstrap/paths.php
7. See my next post for more walkthrough

More info:
- Laravel installation instructions
- Laravel configuration instructions
- Then, the Quickstart


Error: "warning: composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI"
Fix: Use the command php-cli instead of php.


~ Danial Goodwin ~



2013-03-20

Connect to Remote Database

Today, I tried three popular programs of connecting to a remote database. In this post I will compare the pros and cons of each of the methods. My motivation was to find a method to share access to a single database and not be able to see or access any other databases on my server. [My server (Bluehost), doesn't allow access to phpMyAdmin without going through CPanel.]

First, the summary:
 - I would use HeidiSQL for speed, responsiveness, and ease of use.
 - I would use phpMyAdmin if I wasn't on my own computer with HeidiSQL installed.
 - I wouldn't use MySQL Workbench at this time nor recommend for beginners.


HeidiSQL:
 - Very quick to learn
 - Shows exactly what I need to get started. (See lower-right window in the HeidiSQL screenshot below)
 - Very clean method of organizing everything.
 - Con: Must be downloaded first in order to work.

http://www.heidisql.com/


PhpMyAdmin:
 - Available with just about every server; on CPanel.
 - When setting up a remote login for team members, it took just 5 minutes. All I had to do was download the files from the site and upload it to my server. Then anybody can access the URL and see the login page.
 - Con: Seems a little show at times.

http://www.phpmyadmin.net/home_page/


MySQL Workbench:
 - Harder to begin with.
 - Couldn't easily show table data.
 - When first starting, user is presented with a flood of information which was a turn off for me.
 - The interface may seem a little cleaner at first, but that comes at a cost of not being able to find functionalities quickly and easily. In order to efficiently use this MySQL Workbench, user needs to spend time looking through all the menus and right-clicking everything. My first thought about the program was that it was missing basic functionalities like being able to show data from the tables. But, I eventually found the function.
 - The screenshot below show this program using null to describe the data in the first row. Having null values in each cell is different that not having any rows of data...

http://www.mysql.com/products/workbench/



I'd love to hear your comments, reviews, and comparisons of these and other programs.

~ Simply Advanced ~

Disclaimer: I only tested each of these programs for about 5-10 minutes before drawing a conclusion. So, this can be used as a judgement for learning curve.