Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Sunday, November 25, 2012

Net beans high CPU process

net bean high cpu process

  • So I was developing some PHP using netbeans 6.9.1 on my i3 ubuntu 10.10 laptop
  • Then I realize the CPU process is too high causing my laptop to easily get hot
  • I have been using netbeans 6.9 for a long time and no problem before
  • This problem just occured and I not really sure the reason (either netbean update or ubuntu update?)
  • Do some google and asking few friend, they said yes there is a report for this problem
  • Anyway, the problem is solve once I install netbeans 7.2.1

Wednesday, October 19, 2011

Using mogrify

Is a tool (using ubuntu) to manipulate image in a batch. For an example is resize the image

Frequent command that I always use
mogrify -resize 800x600 -format jpg * MYIMAGE/*/*/*

This is to resize a folder whith a subfolder (it has 2 subfolder)

Tuesday, March 15, 2011

Ubuntu restore panel to default

Keyword
  • Accident delete top panel
  • Restore panel

Okay, I made a mistake like others always do "DELETE THE TOP PANEL!!"

To recover it back was quite easy, can find on google http://ubuntuforums.org/showthread.php?t=1475584
gconftool-2 --shutdown
rm -rf ~/.gconf/apps/panel
pkill gnome-panel
Hope this will help

Monday, March 14, 2011

Install LAMP on Ubuntu

These is a double posting, the original was from here http://asipi.blogspot.com/2009/10/haih.html

I write it back here because the title and here will be the latest updated place
(Yes I do update these post again if got any changes)


1

Install apache & mysql & phpmyadmin : http://www.howtoforge.com/ubuntu_lamp_for_newbies

*Update 23 Jan 2010
My Software source was from Malaysia and it has problem!. So it set my source to "Main Server" (Software source download from Main Server)


2

Enable the www folder
This will make your be able to add new folder into the localhost
using terminal :

sudo chmod -R 777 '/var/www'

Please note that /var/www is your root for the website
/var/www/smellynomore means http://localhost/smellynomore


3

You will realize that u cant open the phpmyadmin on http://localhost/phpmyadmin
This is because when you see inside /var/www there is no "phpmyadmin" folder

Solve it by referring here http://ubuntuforums.org/showthread.php?t=1036836

Solve by doing this in terminal :

sudo ln -s '/usr/share/phpmyadmin' '/var/www'



4

Additional configuration for the mysql

When you first time install the mySQL, everything is working fine.
But then, after you reboot the PC, the mySQL server cant start.

The mySQL configuration file will be missing after boot
After some haih...checking, you will realize that file inside "/var/run/mysqld" is missing

I solve it by this link, http://ubuntuforums.org/showthread.php?t=386056
Try to chown to "mysql.mysql" if owned by root, and give it a 755
It is because of the folder write permission

How to chown and chmod, please note that I dont know what happen to security issue when I done this, just want to 'make it work!'

sudo chown -R asipo '/var/run/mysqld'
sudo chmod -R 777 '/var/run/mysqld'




5

Load the mod_rewrite module
I google here to solve it http://ubuntuforums.org/showthread.php?t=255556&page=2

Using terminal :

sudo a2enmod rewrite
sudo gedit /etc/apache2/sites-enabled/000-default


After that change AllowOverride None to AllowOverride All

Then, restart Apache

sudo /etc/init.d/apache2 force-reload



6

Additional, command to mySQL server (check, start, restart and stop)
http://abbysays.wordpress.com/2008/05/20/how-to-startstop-mysql-server-on-ubuntu-804/

Setting up the cakePHP 1.2.5
There will be 2 problem
1. Warning (512): /var/www/cakemake/app/tmp/cache/ is not writable [CORE/cake/libs/cache/file.php, line 262]
2. Your tmp directory is NOT writable.

Solve by : Once again chmod 777 is not secure, yeah!

sudo chown -R asipo '/var/www/smellynomore/app/tmp'
sudo chmod -R 777 '/var/www/smellynomore/app/tmp'




7

Install x-debug
http://ubuntuforums.org/showthread.php?t=525257

EDITED #2 (Feb 2011)
I dont know why lately my xdebug does not working. So I edit the php.ini file
I make the all to be "Deleopment mode" because its defaulted to "Production mode"
So I guess that is the reson, plus use this on ERROR Report
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE


8

After that, it will read index.html
I dont know how to change it for the thing to refer into index.php

However, this is the index.php code (simple version of mine)

<p><b>Localhost</b></p>
<p>Select folder or file to navigate</p>

<?php

echo "<ul>";
if ($handle = opendir('.')) {
    while (false !== ($file = readdir($handle))) {
        if ($file != "." && $file != "..") {
            echo "<li><a href='$file'>$file<a></li>";
        }
    }
    closedir($handle);
}
echo "</ul>";
?>
If you have been wandering how I put this code into this blog. This is the place http://asipi.blogspot.com/2011/01/write-blog-post-using-tinymce.html

Thus when you open your http://localhost/index.php will get something like this


9

phpMyAdmin login might be annoying, solve it from here http://asipi.blogspot.com/2011/02/disable-phpmyadmin-login.html


10 Edit 28 Nov 2012
To install CURL. I follow this website http://buzznol.blogspot.com/2008/12/install-curl-extension-for-php-in.html

Basically, in terminal type : sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
Then restart the LAMP server, then test it using var_dump(curl_version()); make sure to put -pre- html tag around it

Note that to restart the server. Using this command seems to be even better. Feel like it was relly restarting... sudo /etc/init.d/apache2 restart

Thats all
good luck, kupo!

Thursday, February 17, 2011

Disable phpmyadmin login

PhpMyAdmin is a webbased database management application and it is a very good tool for developer.

But there is one problem if you want to install it localhost which is annoying login after AFK for a while

I have google for these solution and the result wasnt good enough so I post this so I can refer it back

Manage to work it out by referring the manual http://www.phpmyadmin.net/documentation/#servers_user


Nows lets disable the annoying login

Advantage: no annoying
Disadvantage: Less secure, password stored in a file without encrypted

These was tested on Ubuntu machine version 10.10 so I'm not sure about windows
The version of phpmyadmin is 3.3.7deb3build0.10.10.1

1st open the configuration of the phpmyadmin file

sudo gedit /etc/phpmyadmin/config.inc.php



Search for string "/* Authentication type */" (its at line no 35)
Disable the "cookie" auth_type and put these code. It should look like these

/* Authentication type */
//$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'mypasswordissecret';


So you eventually change the auth_type into 'config' and you required to put the username and password for that

To test the annoying login is now disabled, restart your FireFox (reset the cache) and try to direct to the phpmyadmin (In my case I type "http://localhost/phpmyadmin/" in my FireFox URL)

It work when you are not asked for login. KUPO!

p/s: I know the file was /etc/phpmyadmin/config.ini.php is from file /var/www/phpmyadmin/config.inc.php

Edit 29 Nov 2012
For phpMyAdmin 3.4.11 the configuration file for windows was in libraries/config.default.php
here is my setting, for localhost development
$cfg['Servers'][$i]['auth_type'] = 'config'; //Default is cookie
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['nopassword'] = true; //Default is false
$cfg['Servers'][$i]['AllowNoPassword'] = true; //Default is false

Sunday, February 13, 2011

PC cannot start, backup data before format

This is common to Windows users, read cause it useful

Your window affected by virus (or anything) and cannot start. But you got important stuff in the partition and 'formatting' will delete the thing

Dont worry there is a way to "get it back before format" which is by using LIVE CD

Let me cut to the point else read the whole story

Use Ubuntu LIVE CD


What is LIVE CD?
It is like "installing operating system temporarily" and in these case I'm suggesting you to use "Ubuntu Live Pendrive"

What can you do with Temporary Operating System?
You will able to access the partition (as long as not corrupted or damaged) and take anything you want to save first

Real story, I have been helping 2 of my friend because of their PC cannot boot
These happen a long time ago but he remind me about it today

Why pendrive and does it possible?
  1. Yes, you only need 1GB pendrive (is already enough) and LIVE Pendrive is better in term of size and options.
  2. Notebook does not have CD/DVD ROM so pendrive is the solution

How to have these "Ubuntu LIVE Pendrive?"
  1. Go to these website and download it http://www.ubuntu.com/desktop/get-ubuntu/download
  2. Have a pendrive and make it bootable pendrive. The tutorial was on the download link
  3. Go to your "cannot start" PC, put the LIVE Pendrive and start, make sure to change your first boot to CD (I think to CD is already can be detected)
  4. The Ubuntu LIVE Pendrive will loading and you will be using Ubuntu to backup your data before formatting

Friday, February 11, 2011

Disable ubuntu notification

Notification in Ubuntu will be cool if you just Install Ubuntu. But after a while I just be more annoying.

I found out how to take it of from here, quite easy to google actually
http://www.killertechtips.com/2009/04/26/disable-notifications-in-ubuntu-904-jaunty-jackalope/


sudo mv /usr/share/dbus-1/services/org.freedesktop.Notifications.service /usr/share/dbus-1/services/org.freedesktop.Notifications.service.disabled


Restart you PC after that

This is to enable it back (i guess, never try)

sudo mv /usr/share/dbus-1/services/org.freedesktop.Notifications.disabled /usr/share/dbus-1/services/org.freedesktop.Notifications.service

Thursday, February 10, 2011

Ubuntu rip FLV convert to MP3

I want to download Justin Bieber official video from youtube and convert into mp3 so I can hear it in my phone... so this is the step to do it

Able to download/rip the video (.flv file) from youtube

Before this, if you play a video on youtube, the file (.flv) will be store in your "/tmp" (stand for temporary) folder. But now it is missing and I don't know why is it.
I do realize it happen after I update with my Update Manager

So, how do I rip (take) flv video from youtube right now?

The answer is by using Unplug. It is a "Firefox addon" and this addon is also available in Windows.
The link is here https://addons.mozilla.org/en-US/firefox/addon/unplug/

So after you Install Unplug in your Firefox, you can start ripping.
While you play the video right click in any place and menu will appear. Inside the menu will have "Unplug" and click it and download it in any folder

EDITED #2 (Feb 2010)
I search through the forums and found out it moved to here
But these location is more trouble some
/home/asipo/.mozilla/firefox/bf3zqtab.default/Cache

Or these for google chrome
/home/asipo/.cache/google-chrome/Default/Cache


Convert the FLV to MP3 using "FFMPEG"

You need to install FFMPEG and other additional library because your FFMPEG might now be "good enough" to convert into a different format
So you will need to install other library. I refer it here http://ubuntuforums.org/showthread.php?t=1117283

Thus, the code is

sudo apt-get install ffmpeg libavcodec-extra-52

For Ubuntu Maverick Meerkat 10.10, Ubuntu Lucid Lynx 10.04 and Ubuntu Karmic Koala 9.10

To script to convert is (type in terminal)

ffmpeg -i "justin bieber.flv" -acodec libmp3lame -ab 128k "justin bieber.mp3"


This is still not good, now you want to convert a lot flv file to mp3. So in this case you need a bash script aka programming.
The source for this bash script was from here http://ubuntu-virginia.ubuntuforums.org/showthread.php?t=1430243

So the code will be

for f in *.flv
do
ffmpeg -i "$f" -acodec libmp3lame -ab 128k "${f%.flv}.mp3"
done



Use this script and paste into a new document. Rename the document to "flv2mp3.sh"
After that make it executable

chmod -777 flv2mp3.sh


To execute this script use this

./flv2mp3.sh



p/s: Justin bieber is only an example

Tuesday, February 1, 2011

Installer file name

I always forget for ubuntu what is their installer file type name (like .msi for windows)

32 bit .deb (For Debian/Ubuntu)
64 bit .deb (For Debian/Ubuntu)
32 bit .rpm (For Fedora/openSUSE)
64 bit .rpm (For Fedora/openSUSE)

Sunday, January 30, 2011

GIMP save for web image optimize reduce size

If you are using Windows and want to upload huge picture size into the internet (or blog) optimize it first using Adobe Photoshop 'save image as web' feature. It can reduce image size and make your image to load faster!

Story
Im using ubuntu and they dont give adobe photoshop crack for free :(
But I need adobe photoshop 'Save image as web' feature.
Ubuntu only provide me 'GIMP' but I found the same feature as a plug-in

Straight to the source. I copy from here http://www.techzilo.com/install-save-for-web-gimp-plugin-ubuntu/

What is 'Save image for web' ?
Save image for web is a technology to compress the image size so it can load faster in the internet

Weakness
Reduce the image quality. But this wont affect much (unless you have super vision)

Advantages
Image load faster

Conclusion
The advantages overcome the weakness make this a good thing to share!

Others
I was kinda lazy to write the thing back cause the source it self is already 100% fool proof

Thursday, January 20, 2011

Recover delete data or partition using testdisk & photorec

Related name
  • Recover deleted data
  • Recover data in deleted partition


From the last post (http://asipi.blogspot.com/2011/01/merge-harddisk-partition.html), the software have made my friend harddisk partition to go 'missing'. This is how I recover the data in the 'missing' partition back
Straight to the point, use testdisk & photorec link is here http://www.cgsecurity.org/wiki/TestDisk


If you are bored and want to read the whole story, proceed...

What is recovery and what is backup?
Both of them relate with 'keeping your data safe'. Backup is prevent while recovery is cure

Thus,

Backup
Save important data before your harddisk become corrupt

Recover
Get back important data after harddisk become corrupt

Backup is better than recover because, recover not guarantee 100% success but you will never know 'when to do the backup?'

This post focused on recovery
Okay, there is 2 software that I would like to suggest in recovery

1st software, Recuva
This is recommended by my friend and when I see it (not try) I do feel like this software is good. Here is the link http://www.piriform.com/recuva




2nd software, testdisk & photorec
This is the software that I want to promote actually. Here is the listed advantages that I know

Good detecting
Several software cannot detect corrupted harddisk. But this software can!. So when recover my friend harddisk it let me select the corrupted harddisk, the partition to recover

Harddisk format supported
There is alot of harddisk type it can support, typical that I still can remember is NTFS, FAT, Solaris (what is this?) and bla bla bla...

How good this recover?
It recover is 100% good. This is because they scan the harddisk by memory allocation.
Means as long as there is any single bytes in the harddisk will be scan. The problem was it was too good until unwanted data is also recover.
Chance of getting corrupted file is also high (because it was too good, seriously!)

*It cost RM 300 - RM 500 to recover you harddsik (in business). And knowing this cost you RM 1 (your electricity bill and time wasted to read)

Weakness
The first weakness but still not a 'real weakness' for me. Which is this program is in a commandline.Since im a programmer (and used to it), I'm going to said their commandline interface is excellent

Second weakness is it recover all the data as possible. Means your deleted file 1000 years ago is also possible as a result it highly corrupted. This is what happen if you want to perfection in recover

Friday, January 7, 2011

windows or linux(ubuntu)?




In this post is discussing about which OS (operating system) you should use
When I said linux it focused on ubuntu but this might also apply to other Linux OS too

I do belive (im Malaysia) majority is using Windows. So lets start using my believe...

You 100% cannot use ubuntu when
- You are a gamer. Cause most of game was on Windows

If you still insist using ubuntu while you are a gamer
- Yes you can try, install ubuntu inside windows (they called it wubi i think)

You 50% (might can) use ubuntu when
- Using it as home user; surfing, typing and chatting
- Another 50% goes to your 'resistance to change'

Here is my resistance to change from windows to ubuntu
1. Im used to Microsoft office, using open office is weird. This is first time, after 2 month of using it I can say "I like open office a bit more than ms office"

2. Surfing - There is no google chrome. Well can actually download it. Just "Installation in Windows is different in Linux"

3. Chatting - Ubuntu dont have Yahoo Messanger (not sure about MSN). But luckly they have empath or pidgin. You can still chat but less feature compared to YM. The best part using empath is "No advertisement + Faster!"

4. Used software - Let say you used to certain program like 'Yahoo messanger'. This software does not exist in Ubuntu, so either you find alternative or leave it

Repeat, 'you used to windows until you feel like dont want to use linux' is common and this is the most reason of 'dont want to change' aka 'resistance to change'. I myself happen to have this feel



What so good about Linux ? (focused on Ubuntu). Well, this is most likely my experience and opinion.

good thing #1
Better security. All you virus from windows will not work (No virus). Remember better doesn't means impenetrable. But it do better than windows in almost all of the case

How to apply this 'good thing #1' ?

1. If you have a 'home PC' and you kids or parent is using the PC. You PC have high % of getting virus or malware or what ever dangerous stuff. This is the solution and the reason I keep suggesting it to others

2. If you were student and keep getting virus from 'Lab' (this is typical way for Malaysians PC to get virus, usually pendrive is the transfer medium). This linux will solve the problem 100%

3. If you create 2 type of user. The lower user cannot access the other files. Err... this is linux security like folder owner and folder group permission stuff. I never care about this. but in case you have 'sensitive data' Linux can help it

4. You dont need to buy Kaspersky on install antivirus. yeay!


good thing #2
I admin installation in Linux is hard (you need to use command line in special software). but ubuntu make it easy, you have a feature like 'add remove program in windows' but it 10x advance

1. They have 'update manager' this is to install or update driver

2. They have 'add remove software'. It can remove and also ADD! ADD! ADD! ADD! ADD! free software. There is tons of free software outside

How to apply this 'good thing #2' ?

1. My parent like to play solitaire in Windows when free time. If you use ubuntu you can ADD! ADD! ADD! ADD! ADD! games for free and the game is better than windows. This only apply for small and simple game, as I said 'home typical user' (not gamer sejati!)

good thing #3
Faster, better, stronger, harder...
This most likely what I hate on Windows after using Ubuntu

Windows have a little but yet annoying problem when it come with thumbdrive/pendrive
- SLOW
- Cannot eject, something was in use

So if you use Ubuntu you can feel the smoothness in detecting pendrive, eject is easy and transfer file is also FAST!
The main point is 'Stable' I guess

So... thats it I know

Thanks
Myself

trying linux? try ubuntu!

I already test several linux based system and touch it on surface as 'normal user'
Normal means I use it for office, chatting and surfing

Not like awesome hacker or freaky nerd cause they are +10 level higher

So I have test
1. Ubuntu
2. Fedora
3. Redhat
4. SUSE Server Linux <-- not sure correctly spelled

Redhat and SUSE is because of my workplace, so I'm not suggesting you to use it for home. Not it leave either Ubuntu or Fedora

Straight to the point = use ubuntu

Reason?

Lets start with bias
1. I have use ubuntu longer than fedora, so maybe the 'feel' make me suggesting ubuntu

Another reason, semi bias or more like personal experience / opinion
1. Ubuntu have better interface
2. Easily install and update 'FREE BUT NOT ACTUALLY FREE' driver / software
3. Better ERROR display (this is a level newbie 60% - intermediate 40%)

Other than that is nu thin much except I like fedora default wallpaper
By chance, if fedora ambassador is reading this, please do not get angry :D

Ubuntu swap space

If you want to use ubuntu, there is 2 type of typical installation

1. Install in windows (called wubi i think)
2. Install in empty partition (means you format you partition or resize)

For 'I want to try' users. Just take no1 it seriously awesome and easy

For 'I can use ubuntu!' users. Option 2 is additional

Note that if you format window, they will reset the boot loader (not sure the real term) so you ubuntu will not displayed. (I still not reach a level on how to get solve this problem, but do believe it is 99% can be recover)

Installing 1st option require no skill, but 2nd option does require some knowledge

For anyone who didnt know about linux (like me) this might be helpful. Others this is newbie

Lets proceed with 'how to install using the 2nd option'

1. During installation you need to specify 'where you want to install the ubuntu'

They will show 3 option
1. Install side by side (I already forgot about this, but do use it once)
2. Install in whole (format 100% you hdd, all partition)
3. Install in specific

This post is about option 3

When you select option 3, you can choose which partition you want to format and install ubuntu on it

Remind that you need to make 2 partition. 1st is the real partition and the 2nd will be the 'temporary what? i forgot'

1st partition will be a dropdown writing 'ext4'
make 2nd partiton 2G space only! (this is the reason I write this post, cause my newbieness create 10G space yo). They type was 'swap space'

note that there is a debate on how many swap space you should allocate. This 2GB is my opinion after 30min of google

After setting up this 2 partitions just proceed like normal (cause installing ubuntu was easy)

Thursday, November 4, 2010

Redhat I always use command

Last update, 25 April 2011
This is not only for Redhat, but for most of Linux machine (I think)

Source of this command is from here. I keep using them
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4/html/Step_by_Step_Guide/s1-manipulate-current.html
http://redhat.activeventure.com/71/gettingstartedguide/s1-managing-working-with-files.html

This is a good reference for VI - Visual Editor (Command line interface for text editor)
http://www.cs.colostate.edu/helpdocs/vi.html

Check folder size
du -hs /path/to/directory


Check harddisk space
df


List all the content within the current folder (or path)
ls OR ls -all


Remove file
rm thefilename.txt


Move file
mv thefilename.txt /home/asipo/


Delete directory and all its content
rm -rf /home/asipo/backupdocuments


Zip a file or folder
zip -r iWantTheZipFileNameToBeLikeThisOkay.zip theActualFileName.txt


Unzip a file (not sure for folder)
unzip thefilename.zip


Change folder owner
chown -R asipo.asigroup '/var/www/smellynomore/app/tmp'


Change folder permission
chmod -R 777 '/var/www/smellynomore/app/tmp'


Copy all except one folder

shopt -s extglob
cp -r A/!(B) dest_dir


Execute bin file
chmod u+x qt-sdk-linux-x86-opensource-2010.05.1.bin
./qt-sdk-linux-x86-opensource-2010.05.1.bin

Connect to server and control it (Telnet / SHH I think)
ssh -p 22 asipi@langit.com.my

Friday, October 16, 2009

Install LAMP on ubuntu

its 1st time use ubuntu = tension

Install LAMP in ubuntu = haih...

I have moved the latest update to here http://asipi.blogspot.com/2011/03/install-lamp-on-ubuntu.html


1

Install apache & mysql & phpmyadmin : here

*Update 23 Jan 2010
My Software source was from Malaysia and it has problem!. So it set my source to "Main Server" (Software source download from Main Server)


2

Enable the www folder
This will make your be able to add new folder into the localhost
using terminal : sudo chmod 777 '/var/www'
Please note that /var/www is your root for the website
/var/www/smellynomore means http://localhost/smellynomore


3

You will realize that u cant open the phpmyadmin on http://localhost/phpmyadmin
This is because when you see inside /var/www there is no "phpmyadmin" folder
I solve the problem by referring here
Solve by doing this in terminal : sudo ln -s '/usr/share/phpmyadmin' '/var/www'


4

Additional configuration for the mysql
When you first time install the mySQL, everything is working fine.
But then, after you reboot the PC, the mySQL server cant start.
The mySQL configuration file will be missing after boot
After some haih...checking, you will realize that file inside "/var/run/mysqld" is missing
I solve by referring here at try to chown to "mysql.mysql" if owned by root, and give it a 755
Its because of the folder write permission

How to chown and chmod, please note that I dont know what happen to security issue when I done this, just want to 'make it work!'
sudo chown -R asipo '/var/run/mysqld'
sudo chmod -R 777 '/var/run/mysqld'



5

Load the mod_rewrite module
I google here to solve...
Using terminal :
1) sudo a2enmod rewrite
2) sudo gedit /etc/apache2/sites-enabled/000-default
3) Change AllowOverride None to AllowOverride All
4) Restart Apache: sudo /etc/init.d/apache2 force-reload


6

Additional

Command to mySQL server (check, start, restart and stop)


Setting up the cakePHP 1.2.5
There will be 2 problem
1. Warning (512): /var/www/cakemake/app/tmp/cache/ is not writable [CORE/cake/libs/cache/file.php, line 262]
2. Your tmp directory is NOT writable.

Solve by : Once again chmod 777 is not secure, yeah!
sudo chown -R asipo '/var/www/smellynomore/app/tmp'
sudo chmod -R 777 '/var/www/smellynomore/app/tmp'



7

Install x-debug
http://ubuntuforums.org/showthread.php?t=525257

EDITED #2 (Feb 2011)
I dont know why lately my xdebug does not working. So I edit the php.ini file
I make the all to be "Deleopment mode" because its defaulted to "Production mode"
So I guess that is the reson, plus use this on ERROR Report
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE


8

After that, it will read index.html
I dont know how to change it for the thing to refer into index.php

However, this is the index.php code (simple version of mine)

<p><b>Localhost</b></p>
<p>Select folder or file to navigate</p>

<?php

echo "<ul>";
if ($handle = opendir('.')) {
    while (false !== ($file = readdir($handle))) {
        if ($file != "." && $file != "..") {
            echo "<li><a href='$file'>$file<a></li>";
        }
    }
    closedir($handle);
}
echo "</ul>";
?>

If you have been wandering how I put this code into this blog. This is the place http://asipi.blogspot.com/2011/01/write-blog-post-using-tinymce.html

Thus when you open your http://localhost/index.php will get something like this

Thats all
good luck, kupo!