How To Create A User And Database For a Web App

This is a generic lesson in how to create a user and a database for a web app, such as WordPress, Joomla, Drupal, and lots of others.

Firstly, go to your site followed by /phpmyadmin

You should see something like this:

 

 

 

 

 

 

 

Login with your defined username and password.

You should see a listing of the available databases etc, as shown below:

Click the Privileges tab at the top (ringed in red above)

Click the Add a new User link at the bottom of the User list, as shown below:

You should see something like this:

Enter the user name.

From the Host: dropdown list, select Local – localhost will appear in the text box.

Enter the password (twice)

Click the radio button that says “Create database with same name and grant all privileges”

Click Go.

That’s it! That’s all you ever need to do to create the necessary back-end for any web app you might want to install. The process is so easy, you’ll be able to do it in your sleep.

When it comes time to fill out a web form upon installation of your new web app, use the details you’ve described above.

For example, for WordPress, you need to edit the file called wp-config.php

If I were to create a new WordPress installation using the above details, my wp-config.php would look something like this:


// ** MySQL settings - You can get this info from your web host ** //

/** The name of the database for WordPress */
define('DB_NAME', 'some_user);

/** MySQL database username */
define('DB_USER', 'some_user);

/** MySQL database password */
define('DB_PASSWORD', '******');

/** MySQL hostname */
define('DB_HOST', 'localhost);

That’s really all there is to it.

And the same holds true for any web app that needs some mySQL parameters.

So once you’ve learned this, there’s no stopping you from downloading, installing and configuring the absolute myriad apps available to you.

Try sourceforge.net, freshmeat.net for starters.

What web apps might you want to install on your own self-hosted server?

sql-ledger? Accounting, with an Australian Chart of Accounts. Free? You betcha!

clipbucket? A YouTube clone. Free? You betcha!

joomla? A content management system like WordPress. Free? You betcha!

drupal? A content management system like WordPress. Free? You betcha!

And so on. I’m sure there’s lots of stuff you can find to download and install.

Each one of them will require a user and a database to operate, so I hope this lesson gives you the idea that no matter what you download and install, you have the background now to know that when the package says “create a database”, you’ll know how to proceed.

Have I left anything out? Is there something I missed? Please let me know in the comments.

 

Posted in Uncategorized | Leave a comment

Here’s why you should have your own self-hosted server…

NOT on a standard web hosting account…

I was ready to write off a loss in my server migration. I had, for more than a year, run quietly in the background the cool Thinkup App which had not only archived my twitter activity, but presented it graphically in useful ways.

The thing is it created a monster database, like 900 Mb and so many files in the directory, a copy would not work. The database was too large for the built in export. And the command line failed because Dreamhost does not provide the PHP Zip extensions, and I fumbled around trying to PECL my way into installing them.

http://cogdogblog.com/2012/02/29/phpfog/

No.

 

Web Building

 

 

 

 

 

 

 

Host whatever stuff yourself at home, on your own self-hosted server, and do whatever the hell you damn please. There are no “artifical” limits on your very own hosting (except physical bandwidth, memory and diskspace) but you know that don’t you?

Memory is cheap.

Diskspace is cheap.

Bandwidth is getting cheaper – and lets not forget, your self-hosted website etc at home won’t be getting the traffic like Facebook gets, or Google gets, or Amazon gets, or eBay gets… so why are you paying these hosting companies any money at all? (even if it is just $0.99 per month? But then, you get what you pay for. Caveat emptor)

Web Hosting Customer Service Fail

 

I’d like to think that you’d prefer to learn as much as you can about all this web hosting stuff, and go out there into your community and teach others how to do the same thing.

 

Multiple racks of servers

 

You already have everything you need to run your self-hosted site from home (or work) and it really isn’t that complicated to get it all working.

If you want to go down this path, and after you’ve read the lessons, are there any other questions you have about self-hosted websites / servers?

Please let the community help you!

Leave a comment or a question below, and you’ll have an answer in no time.

 

 

 

 

Enhanced by Zemanta
Posted in Uncategorized | Leave a comment

News for Wednesday April 18, 2012


Web hosting provider Go Daddy announced on Tuesday that it has installed more than two million WordPress websites with its application installer called Hosting Connection.

Fire Your Customer Reading a recent thread on WHT reminded me about something I learned early on when I was operating a web hosting company. Don’t be afraid to fire your customer!

Web hosting company SoftLayer announced on Tuesday it is now offering a new high-performance computing cloud-enabled solution consisting of servers powered by NVIDIA’s graphics processing units.

 

Enhanced by Zemanta
Posted in News, Web Hosting | Tagged , , | Leave a comment

News for Tuesday April 17, 2012

Elastix is a unified communications solution: it not only provides telephony management for your PBX, but it also integrates other communication tools to make the organization environment more productive and efficient, such as faxing, email, instant message, etc. You can read more about Elastix at https://sourceforge.net/blog/potm-201204/

Gallery (http://sourceforge.net/blog/podcast-gallery/) is a web based photo gallery, letting you put your own photos on your own website. It’s been around for a decade, and is a very mature, stable product.

Adminer (http://sourceforge.net/blog/podcast-adminer/) is a database management web application in a single PHP file, so that you can easily drop it in place, and clean up afterwards. It supports several different database engines, and all of their basic functionality.

 

Posted in News, Open-Source, Self-Hosted, SourceForge | Leave a comment

R2D2 Can Help You Plug In All Your USB Devices

Self-hosted Server + R2D2 + USB = Geek.

“Why buy one of those crappy dollar-a-dozen USB hubs when you can have R2D2′s cheery beeping sound effects to keep you company?  Just plug R2D2 in to your computer via his USB cable and he will happily serve up to four USB-powered items while entertaining you with his famous noises.”

Imagine your own self-hosted server with R2D2 on top? What a great look!

Only available at Oh My Geek.

Oh My Geek - Gifts for Unique Geeks!

This has been a community service announcement.

No, not really – its a blatant blog post to get you to click the above “Gifts for Geeks” logo above, and if you buy something, I’ll earn a commission.

So now you know – in the interests of transparency of course!

But isn’t R2D2 cute!?

$40 odd bux. Bargain!

 

 

 

 

 

 

Posted in Uncategorized | Leave a comment