Archive | Open Source RSS feed for this section

How to connect to a MySQL database with PHP in 6 Steps

The 6 Step Plan Step 1 – Connecting to a MySQL database You need your MySQL username, password and server address (most likely localhost or 127.0.0.1). Create a .php file and open and close the php code with tags before the html, you can put regular html after it. Open the file in a browser [...]

Read more

How to Install mcrypt for php on Mac OSX Lion 10.7 Development Server

The mcrypt extension is missing. Please check your PHP configuration. The above error appears after you successfully get phpMyAdmin up and running on OS X, generally you don’t have to worry about it, you only need to address the error if you are going to use a web application that requires it, for example Magento, the shopping [...]

Read more
mysql-optimisation-osx

Optimising MySQL on OS X 10.7 Lion with mysqltuner.pl

Once you have installed MySQL onto OS X / OS X server, MySQL will basically run OK under a light load. If you want to change some variables in the database settings via the configuration file you will notice that there isn’t one there, filed normally in /etc.  This is the default behaviour as a [...]

Read more

How to Change the MySQL root Password in Linux or OSX via Command Line

If you have forgot, can’t remember or want to break in….. how to change the mysql root password from the command line in either Linux or OS X: Stop MySQL Start it in safe mode: This will be an ongoing command until the process is finished so open another shell/terminal window, log in without a [...]

Read more

Start Stop MySQL from the Command Line Terminal, OSX, Linux

On OS X to start/stop MySQL from the command line: On Linux start/stop from the command line: Some Linux flavours offer the service command too or Tweet

Read more
lion-osx-dns-nameserver-change

Use a Different DNS Nameserver with Dig and NslookUp

Use a different nameserver to look up dns information or check that your nameserver is acting OK  - use the public Google ones at: 8.8.8.8 8.8.4.4 For dig use it like so: For nslookup: For nslookup interactively: $ nslookup > server 8.8.8.8 Default server: 8.8.8.8 Address: 8.8.8.8#53 > bbc.com Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: [...]

Read more

How to Disable the default Linux Firewall and use CSF

Some of the firewall scripts that come with various hosting companies can leave a lot to be desired, and tackling IP tables head on can be intimidating, here is how to disable the default firewall and use an industry standard one which provides bot a CLI and GUI through WHM. CSF is Config Server Firewall, [...]

Read more

Fastest Way to install WordPress on OSX Lion 10.7 and 10.6

This tutorial assumes a certain degree of comfort in the command line Terminal for installing WordPress on Mac OS X Lion or Snow Leopard but the commands below will get the job done. Before proceeding WordPress needs a couple of things to get going and those things are an AMP stack  - Apache, MySQL and [...]

Read more

Fastest Way of Installing Drupal 7.12 on Mac OS X 10.7 , 10.6

Fastest Way to install the latest Drupal 7 version on Mac OS X Lion 10.7 Drupal is a quality CMS application and is as simple or complex as your needs vary, it runs on the same foundations that Mac OS X Lion or Snow Leopard provides. This tutorial assumes a certain degree of comfort in [...]

Read more

Installing phpMyAdmin on Mac OSX 10.7 Lion & 10.6 Snow Leopard

To get simplified administration done and command line free MySQL work, phpMyAdmin comes to the rescue, to get it running as part of your local development set up on OS X, a couple of steps need to be preconfigured. These steps will work on both OS X 10.7 Lion and 10.6 Snow Leopard. Download phpMyAdmin, [...]

Read more