Ajax and Ajax Frameworks

I have been a developer for nearly 20 years and a web developer for about 10 years. Over the years, I have considered creating a blog to share the things I have learned (and am learning) about web design and development, but I never seemed to have the time. When I began learning about web development using Ajax and Ajax Frameworks, I decided to take the time to create this blog.

My intention for this blog is to focus primarily on Ajax Frameworks, but since web development requires knowledge of many technologies, I will occasionally write about things such as CSS, Javascript, PHP, MySQL, Flash, etc.

Lately, I have been using JQuery as my primary Ajax tool. Although I have used other Ajax Frameworks in the past (Dojo Toolkit, Yahoo! User Interface Library, Scriptaculous/Prototype), JQuery has thus far been the easiest to learn. In my first few posts I will discuss some of the JQuery Plugins that I have created. Some of these include: a plugin for Google Maps (jquery.imGoogleMaps), Form validation and submission  (jquery.imValidateForm), Page Populater (jquery.imPagePopulate), and a plugin to create lists (jquery.imList).

While I am still learning about some of the other Ajax Frameworks, I hope that what I have learned will be helpful to others. Just remember, “When you can pull the pebbles from my hand…”

Installing Joomla on Ubuntu

Monday, January 25th, 2010

I’m redesigning my portfolio site and decided to use Joomla. I just installed it on my Ubuntu box. It wasn’t difficult, but it could have been easier.

First I downloaded Joomla from here. I had the option of download a nightly build, but I wanted the latest stable version.

I unzipped the files in a directory on my web server, opened my browser and navigated to where the joomla files were located to begin the installation.

Pre-installation Check

After choosing a language, I started the Pre-installation check. According to the installation, my configuration.php file was not writable.

PHP Version >= 4.3.10  	  Yes    
- Zlib Compression Support 	Yes  
- XML Support 	Yes  
- MySQL Support 	Yes  
MB Language is Default 	Yes  
MB String Overload Off 	Yes   
configuration.php Writable  -	No

I found the file configuration.php-dist in the main Joomla folder. I opened Terminal and navigated to that location to rename the file and change the file permissions:

mv configuration.php-dist configuration.php
chmod 777 configuration.php

I then clicked the Check Again button to re-run the Pre-installation check. All of the checks were now okay.

Database Configuration

I was then asked to enter my database information. I selected MySQL and entered localhost as the host. I then entered the username and password for my MySQL.

The database name must already exist, so I opened phpMyAdmin and created a database. I then came back and entered the database name.

Note: For information on installing PHP, MySQL, and phpMyAdmin on Ubuntu, see my post,
Setting up Ubuntu for Web Development

FTP Connection

Because I’m installing Joomla on my computer, I skipped this step.

Main Configuration

Now I entered my site name, my email address, and an admin password. I then clicked the ‘Install Sample Data’ button. I received an error:

Error: the XML response that was returned from the server is invalid.

After some searching, I found that I should not have created the configuration.php file. I don’t know why this is part of the installation pre-check if it can cause problems. Perhaps it only causes problems on Ubuntu/Linux.

So I renamed configuration.php file back to configuration.php-dist and was able to install the sample data.

But when I clicked the next button, I received two errors:

Notice: Undefined index: DBtype in /home/les/public_html/greenscorpion/installation/installer/models/model.php on line 764

Fatal error: Call to undefined method JException::getNullDate() in /home/les/public_html/greenscorpion/installation/installer/helper.php on line 290

After further reading, I found that I should have created an empty configuration.php file (should be empty and writable).

touch configuration.php
chmod 777 configuration.php

I then removed removed all the database tables that were created and started the installation again. This time, I was able to successfully install Joomla.

I then removed the installation directory (Joomla security feature) and proceeded to the administrative area.

While some of these problems may occur only on Ubuntu/Linux, I was able to install Joomla and I can now work on my first template.

Related posts

One Response to “Installing Joomla on Ubuntu”

CommentLuv Enabled