Joomla 1.7 installation with XAMPP problem solved

1 11 2011

Hi, Recently Joomla 1.7 was released and obviously that is an excellent product. And new features also added. If you need any guide regarding installation these articles may help you , I think.

How to install and configure Joomla 1.6 with XAMPP on Ubuntu 11.04

Though this is Joomla 1.6, there are not different between installation of 1.6 and 1.7, So thought not to add a new post on it.

In Joomla installation on XAMPP some guys are talking Joomla is giving some errors with XAMPP. Actually they are not errors, they are warnings. Is the nature of the software to give warnings. In standalone software solutions we normally do something called “error handling”, right!. We need to care about Errors but we don’t need to care warnings too much. So simply we can ignore them. Now the problem arises, “how to turn off the warnings”, I think now I have entered to our today’s topic :D.

First you need to find php.ini configuration file on your XAMPP installation. It may be located at your

(In windows) C:\xampp\php\php.ini

(In Ubuntu Linux) /opt/lampp/etc/php.ini

Then open it on a suitable text editor.

Now find error_reporting on php.ini ( Ctrl+F ) and change it’s value to


There are three options on error_reporting. By default this value may have E_ALL & ~E_NOTICE or E_ALL | E_STRICT

  • Default Value: E_ALL & ~E_NOTICE
  • Development Value: E_ALL | E_STRICT
  • Production Value: E_ALL & ~E_DEPRECATED

In first two cases, XAMPP will show errors and Warnings. These things are not good when considering Production Level. That means , a live web site should not give errors for user. But it may useful considering development of web site.

And you need to find display_errors on php.ini file and change it’s value to

display_errors = off  to make it clearly work! Now save the work and restart the XAMPP server. Joomla will work without any errors. 😀


Thank you

Gihan De Silva


How to install and configure Joomla 1.6 with XAMPP on Ubuntu 11.04

23 06 2011

Hi, today I’m going to show you how to install Joomla 1.6 and configure it with XAMPP. Joomla is a nice open source software that allows you to create web pages easily. To getting start with Joomla first you need to install XAMPP on your computer. If you haven’t install it yet, read my post about “How to install XAMPP on ubuntu 11.04” and install it first.

If you have already installed XAMPP, then download the newest version of Joomla or any Joomla version.

Download Joomla 1.6 from here!

After downloading the file , copy it to the location File System–>opt–>lampp–>htdocs (/opt/lampp/htdocs).

Then extract it and remove

Then rename the folder Joomla_1.6.3-Stable-Full_Package as joomla

Then start XAMPP using command: sudo /opt/lampp/lampp start on terminal(clrt+T).

Now go to firefox and type http://localhost/joomla and enter. If everything works fine. The displaying page will look like this.

This is the first page of installation process, select your language that you want to be installed from the list an click OK. Then it will move to the Pre-installation check page.

In here if something mark as No in the upper table, you should take action to solve it. if every thing says YES, click Next. Then it will move to the Licence page.

It says about GNU GENERAL PUBLIC LICENSE. Read the licence 😉 and click Next. Then it will move to the Database page.

Fill these fields like this:

Database type: MySQL

Host name: localhost

User name: root

Password: ***** (This is the password which you configured XAMPP security for the mysql. if you didn’t set password, just leave it)

Database name: install or somename

Table prifix: jos_ (by default)

Old database process: Backup

Then click Next. Then it will move to the FTP configuration page.

Leave it!, because the settings for the FTP Configuration can be entered, or edited after installation.It’s easy for us.So click Next.It will be move to the Configuration page.

Fill these field like this and keep details in a safe place.

Site Name: myJoomlaSite or somename

Your E-mail: give a email address

Admin username: admin  (by default)

Admin password: ***** (give a password)

Confirm Admin password: ***** (retype Admin password)

Then Click Install Sample Data, after clicking it will be shown Sample Data installed successfully.

Then click Next. It will move to the Finish page. In here remove installation folder button.

Without doing this the installation process will not be completed. In earlier versions of Joomla, this step must be taken in manually. But in Joomla1.6 it’s much easy to do with a button 🙂 . After clicking the remove installation folder button, you should see the message Installation folder successfully removed.

Then click the button Administrator and you should be able to login with the username: admin and the password you gave.

If you did everything correctly, it will look like this… 😀

And the site login look like this… 😀

Ok Now you can go on with Joomla 1.6    Any time you can start Joomla just typing this on your browser’s Address bar : http://localhost/joomla  (XAMPP should have started before..) 😀 😀

Thank you

Enjoy it

Gihan Malan De Silva

Some Useful important things about XAMMP for Linux

14 06 2011

Hi, today I’ll mention some important things on XAMPP.

How to set XAMPP to start up programs

(XAMPP will automatically starts with the computer starts)

First login as root user

Now press (Clrt+Alt+T) to open Terminal window
then type sudo -s -H
then enter this command,
command: sudo ln -s /opt/lampp/lampp /etc/init.d/lampp

                    sudo update-rc.d -f lampp defaults

Uninstall XAMPP

First login as root user. then use this on terminal,

command: rm -rf /opt/lampp



command: /opt/lampp/lampp start


command: /opt/lampp/lampp stop

Stop and start XAMPP

command: /opt/lampp/lampp restart

Start only the Apache

command: /opt/lampp/lampp startapache

Start the Apache SSL support

command: /opt/lampp/lampp startssl

Start only the MySQL database

command: /opt/lampp/lampp startmysql

Start the ProFTPD server

command: /opt/lampp/lampp startftp

Stop the Apache

command: /opt/lampp/lampp stopapache

Stop the Apache SSL support

command: /opt/lampp/lampp stopssl

Stop the MySQL database

command: /opt/lampp/lampp stopmysql

Stop the ProFTPD server

command: /opt/lampp/lampp stopftp

Start a small security check programm

command: /opt/lampp/lampp security


Important Files and Directories

The XAMPP commands home—>                 /opt/lampp/bin/
The Apache Document Root directory—>   /opt/lampp/htdocs/
The Apache configuration file—>                 /opt/lampp/etc/httpd.conf
The MySQL configuration file—>                /opt/lampp/etc/my.cnf
The PHP configuration file—>                       /opt/lampp/etc/php.ini
The ProFTPD configuration file—>              /opt/lampp/etc/proftpd.conf
The phpMyAdmin configuration file—>     /opt/lampp/phpmyadmin/

If you have any doubt about any post feel free to comment and get solved tham.


Gihan Malan De Silva.

How to install XAMPP on Linux (Ubuntu 11.04) Part #2

13 06 2011

Ok this is the second part of the previous post.If you haven’t read the first part “How to install XAMPP on Linux (Ubuntu 11.04)” please read it before come to this 😀 . Today I’ll tell you how to configure MySQL databases (phpMyAdmin). Because is not set to your Linux username so,you are not still allowed to goto the phpMyadmin page.

First you should get open the terminal and login as root user.

Now press (Clrt+Alt+T) to open Terminal window
then type sudo -s -H

command: cd /opt/lampp/phpmyadmin

Now you are in the phpmyadmin directory, you need to change the ownership of the file to your own Linux username.

command:chown your_user_name:your_user_name

Ok now there is one thing to do.That’s Configure Linux XAMPP Security

In this case too you need to login as root user(only if already logout).Now lets set up the security.

command: /opt/lampp/lampp security

Then the terminal will be ask some questions , type “YES” to all and set password to all. Important thing is write them down in a safe place.

After configuring security the database configuration file alteration automatically happened ,so  you need to change the ownership back to your username as did earlier.

command: cd /opt/lampp/phpmyadmin

command:chown your_user_name:your_user_name

Now you are done with configuring XAMPP 😀 . Restart the XAMPP with this command

command: /opt/lampp/lampp restart

Now check out your overall installation process. First you need to clear your entire browsing history and cache.

Type this on your browser : http://localhost/ then click on “Status” link. If all the things are done correctly, you will see a message like this.

XAMPP Status

XAMPP Status

Now you should be able to login to phpMyAdmin without any trouble. Login with your MySQL username and password that you gave at security configuration.

Important! :

  • phpMyAdmin has to accounts for MySQL as user names root and pma, but both have one password, that you gave. If login as root user, you will be able to have all privileges. But if you log in as pma user privileges will be limited and you are not allowed to create databases (only create tables and access the database).
  • Do not overwrite or delete default files inside your htdocs, becasue they are very important.If you do s XAMPP may be crashed.


If you have any doubt about any post feel free to comment and get solved tham.


Gihan Malan De Silva.


How to install XAMPP on Linux (Ubuntu 11.04)

9 06 2011

Hi, this is my second post.In first post I mentioned about how to run & configure XAMPP on windows computer. XAMPP may be the best server to PHP. Now its time to move into Linux. Currently I’m using Ubuntu 11.04 Natty Narwhal edition. Based on that I’ll show you how to install XAMPP on Linux OS.

Earlier day the Linux version of XAMPP called as LAMPP. But it comes as XAMPP with more improvements.

Ok, First of all you need to download the XAMPP for Linux form Apachi Friends.
here is the link for it :

Before installation , its better to have a MD5 check.To do that you need to login as root user.
1) Now press (Clrt+Alt+T) to open Terminal window
then type sudo -s -H
it will ask your password after that
2) type md5sum xampp-linux-1.7.4.tar.gz
the displaying MD5 should be 7d83c9829d8c79d43ea607e5b009dc58

3) Now you should extract the downloaded archive file to /pot directory

command: tar xvfz xampp-linux-1.7.4.tar.gz -C /opt

You shouldn’t use any extracting tool to extract the archive, it won’t work.And if you already installed a XAMPP version, it will overwritten by this command.Now XAMPP is installed below the /opt/lampp directory.

Now you can check whether XAMPP is working.

command: sudo /opt/lampp/lampp start
you will see a message like this

Ok now XAMPP is working 😀 .But still there is a problem. Your php testing folder is “htdocs”. You can simply move into it  File System–>opt–>lampp–>htdocs

You will noticed that it won’t allow you to put .php file or any thing. Because you haven’t owe the permission yet. Because it belongs to root user.

Change the ownership XAMPP to your user account!

In this case also you need to login as root user.
Now press (Clrt+Alt+T) to open Terminal window
command: sudo -s -H

Now move to lampp folder
command: cd /opt/lampp/

command: chown -R yourUserName:yourUserName htdocs

Important: Here yourUserName is just your user account name of Linux

Also you need to associate ownership of your Linux username with the Apache configuration. In this case move to “etc” folder:

command: cd /opt/lampp/etc/
Now you are in the etc directory. Type gedit httpd.conf. This will show the Linux text editor.

command: gedit httpd.conf

But be careful when editing; a single mistake can make the Apache web server inoperable.
Then find (press Ctrl+F) the following line in that text file..

The text file look like this…

User nobody

Group nogroup


Change this to:

User yourUserName

Group nogroup



A picture of the text file on my computer…

Now you can reboot the computer..
After that open the terminal (Ctrl+Alt+T)

then start XAMPP
command: sudo /opt/lampp/lampp start

Then go to firefox type this on address bar http://localhost/
It will take you to the XAMPP welcome page..
Now you can start programming php scripts.. put your PHP script files into “htdocs” folder as I mentioned earlier.
If your php script name is test.PHP ,type this on address bar of firefox.

If you are a beginner and want an test php script.Here it is…

See you in post with How to configure MySQL database (phpMyAdmin) in XAMPP

Enjoy it

How to run XAMPP server on Windows with a flash drive..(portable XAMPP)

9 06 2011

Hi, First of all I’d like to say welcome you all to my site.. This is my first post. . The reason that I decided to write this post, recently I came across some difficulties when I  try to run PHP scripts on a computer that I haven’t administrative privileges to install any software. Anyway I think I will help you too..

First of all you need to download XAMPP for windows as 7zip archive from Apache Friends.

here is the link :

Welcome to Xampp with PHP!

To have php programming with this portable version of XAMPP extract 7zip archive into a flash drive( pen drive )

1)first open your pen drive

2)open xampp folder

3)”run” setup_xampp.bat

4)then automatically command prompt open & wait until it says “press any key to continue…….”

5)But if run this on second time any other computer the message will be said “Refresh previous installation press 1 “then press 1 and then it will be said “press any key to continue…….”

5)now open xampp-control.exe

6)then tic the Apache service and “Start” it..

7)then tic the Mysql server and “Start” it…

8)now you are ready to go with that..

9)type this url on a web browser http://localhost/ or in here you can find the XAMPP welcome & configuration page.

10)now find the folder named “htdocs”.. this is the place where you put your php files for testing..

11)to run your php type the .php after http://localhost/

12)if the test file is test.PHP the url should be http://localhost/test.PHP

//test.PHP (A simple test.php script)



echo “Hello World, this is test php page!”;



Enjoy it.. 😀

I don’t have installed windows so I take these screen shots on Panda‘s laptop. Thanks to Panda.

If you have any idea and comments feel free to comment them. It will help me to improve my blog. See you in next post with “How to install XAMPP on Linux (Ubuntu 11.04)“.


Gihan Malan De Silva.