Skip to content

Instantly share code, notes, and snippets.

@larzconwell
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save larzconwell/f99a31fe9666ae3f6869 to your computer and use it in GitHub Desktop.

Select an option

Save larzconwell/f99a31fe9666ae3f6869 to your computer and use it in GitHub Desktop.

Revisions

  1. larzconwell revised this gist Nov 10, 2014. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -3,11 +3,9 @@
    1. Create a directory to hold your code.
    2. Open Bowery.
    3. Create a new application.
    1. Click the image called "php 5.5 with composer".
    2. Empty the command to run input, since we'll be using the apache daemon.
    1. Search for an image named "PHP 5.5 Apache" and click it.
    2. Empty the command to run input, since we'll be using the apache httpd.
    3. Set the remote directory to "/var/www/html".
    4. Set the local directory to the directory your code lives in.
    4. Wait until the application is running.
    5. Open the command input
    5. Run "apt-get install -y apache2 libapache2-mod-php5"
    6. Create your php code in the directory created in step 1.
  2. larzconwell revised this gist Nov 10, 2014. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -3,11 +3,11 @@
    1. Create a directory to hold your code.
    2. Open Bowery.
    3. Create a new application.
    - Click the image called "php 5.5 with composer".
    - Empty the command to run input, since we'll be using the apache daemon.
    - Set the remote directory to "/var/www/html".
    - Set the local directory to the directory your code lives in.
    1. Click the image called "php 5.5 with composer".
    2. Empty the command to run input, since we'll be using the apache daemon.
    3. Set the remote directory to "/var/www/html".
    4. Set the local directory to the directory your code lives in.
    4. Wait until the application is running.
    5. Open the command input
    - Run "apt-get install -y apache2 libapache2-mod-php5"
    5. Run "apt-get install -y apache2 libapache2-mod-php5"
    6. Create your php code in the directory created in step 1.
  3. larzconwell created this gist Nov 10, 2014.
    13 changes: 13 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # Steps

    1. Create a directory to hold your code.
    2. Open Bowery.
    3. Create a new application.
    - Click the image called "php 5.5 with composer".
    - Empty the command to run input, since we'll be using the apache daemon.
    - Set the remote directory to "/var/www/html".
    - Set the local directory to the directory your code lives in.
    4. Wait until the application is running.
    5. Open the command input
    - Run "apt-get install -y apache2 libapache2-mod-php5"
    6. Create your php code in the directory created in step 1.
    16 changes: 16 additions & 0 deletions index.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    <?php

    $host = "localhost";
    $user = "root";
    $pass = "changeme";

    $conn = mysql_connect($host, $user, $pass);
    if (!$conn) {
    echo "Couldn't connect to mysql\n";
    } else {
    echo mysql_get_server_info() . "\n";
    }

    mysql_close();

    ?>