Wednesday 27 July 2011

Installing LAMP on Ubuntu 7.10/8.04/8.10 (Linux,Apache,MySQL,PHP)

Lately I’ve been using ubuntu 7.10 for all my projects/daily work.
As a web developer i should have LAMP on my machine and now i would guide you through installing it on yours.

This guide is divided into 3 steps: installing/tesing Apache, PHP and finally MySQL.

Lets start with Apache:
1. Open the terminal (we will be using it through most of my guide) from Applications > Accessories > Terminal
2. Install apache2 using apt-get by typing the following

sudo apt-get install apache2

Note that you should know the root password.
Now everything should be downloaded and installed automatically.
To start/stop apache2 write:

sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop

Your www folder should be in: /var/www/

If everything is OK you should see an ordinary HTML page when you type: http://localhost in your firefox browser

Finished with Apache ? lets conquer PHP:
1. Also in terminal write:

sudo apt-get install php5 libapache2-mod-php5

or any php version you like
2. restart apache

sudo /etc/init.d/apache2 restart

This is it for PHP :D
Wanna test it ? Just create an ordinary PHP page in /var/www/ and run it.
Example:

sudo gedit /var/www/test.php

and write in it: < ?php echo “Hello World”; ?>

Now run it by typing http://localhost/test.php in firefox… You should see your ” Hello World ”
66 % is over, lets continue to installing MySQL:
1. Again and again in terminal execute:

sudo apt-get install mysql-server

2. (optional) If you are running a server you should probably bind your address by editing bind-address in /etc/mysql/my.cnf and replacing its value (127.0.0.1) by your IP address

3. set your root password (although mysql should ask you about that when installing)

mysql> SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(‘xxxxxx’);

4. Try running it

mysql -uroot -pxxx

where xxx is your password.
Note: You can install PHPMyAdmin for a graphical user interface of MySQL by executing

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

5. restart apache for the last time

sudo /etc/init.d/apache2 restart

Congratulions your LAMP system is installed and running :D
Happy Coding

//Jo

UPDATE:
Due to the large number of people emailing about installing/running phpmyadmin.
Do the following:

sudo apt-get install phpmyadmin

The phpmyadmin configuration file will be installed in: /etc/phpmyadmin
Now you will have to edit the apache config file by typing

sudo vi /etc/apache2/apache2.conf

and include the following line:

Include /etc/phpmyadmin/apache.conf

Restart Apache

sudo /etc/init.d/apache2 restart

Another issue was making mysql run with php5
First install these packages:

sudo apt-get install php5-mysql mysql-client

then edit php.ini and add to it this line : ” extensions=mysql.so” if it isnt already there

sudo vi /etc/php5/apache2/php.ini

Restart Apache

sudo /etc/init.d/apache2 restart

Hope this helps :)


copaz SINI

apache2: Could not reliably determine the server’s fully qualified domain name

root@server-bagong:/etc/apache2# /etc/init.d/apache2 reload
* Reloading web server config apache2 apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

jika terjadi error saat restart apache sperti yang saya alami di atas solusinya.

edit file /etc/apache2/httpd.conf

kemudian masukkan “ServerName localhost” simpan konfigurasi & restart apache.


copaz : SINI

Saturday 16 July 2011

Cara Memindahkan Parent Server Symantec di Klien Symantec

Ketika kita punya banyak komputer yang terinstall symantec client yang terhubung dengan komputer syamntec server, maka semua aktivitas dan update antivirus terjamin karena sudah diatur di Symantec Server. Namun ketika kita ingin menginstall ulang komputer Syamntec Server, maka komputer klien tidak bisa terhubung kembali oleh Symantec Server walau Nama komputer dan nama Server Symantec udah disamakan.
Untuk mengubah Parent Server di klien maka ada beberapa hal yang bisa dilakukan :
1. Jika komputer Symantec Server masih bisa digunakan, maka sebelum diinstall ulang, buat komputer server Syamntec Server cadangan . Dengan menggunakan Symantec System Center maka kamu bisa explore Beberapa Parent Server disana dan bisa melakukan drag n drop pc-pc client agar diarahkan ke komputer syamtec server yang dituju. Setelah melakukan drag n drop ke pc symantec server cadangan dan melakukan install ulang komputer Server Symantec, kita dapat melakukan drag n drop lagi pc-pc klien tersebut. Simple bukan ?
2. Jika komputer Symantec Server sudah diinstall ulang, maka cari file di komputer Syamntec Server yang telah diinstall ulang tadi dengan nama Grc.dat di alamat defaultnya C:\Program Files\SAV atau C:\Program Files\Symantec AntiVirus. Copy file tersebut lalu paste file tersebut ke masing masing pc klien ke alamat C:\Documents and Settings\All Users\Application Data\Symantec\Symantec AntiVirus Corporate Edition\7.5\. Setelah itu pc klien di restart dan parent server akan segera berubah. Mungkin saja alamat file tersebut berubah2 tergantung dari versi symantec yang kita gunakan.

Thanks semoga bermanfaat ....

copaz from : http://service1.symantec.com/support/ent-security.nsf/docid/2002101409403448

office 2007:The windows installer service cannot update one or more protected windowsoffice 2007

Kemaren,seperti biasa habis melakukan installasi Windows XP saya menginstall Office 2007.

Pada saat install terjadi permasalahan yaitu “office 2007:The windows installer service cannot update one or more protected windows”yang kemudian secara otomatis program membatalkan proses installasinya.

Hmmm mungkin ada yang error atau windows belum restart setelah banyak program yang diinstall,kemudian komputer pun aq restart,lalu proses installasi diulangi dan hasilnya ? error yang sama kembali tampil.

setelah berusaha beberapa kalieeee,akhirnya aq pun bertanya dengan mbah GOOGLE mengenai error ini. Hanya dalam beberapa detik saja jawabanpun diterima ternyata untuk mengatasi permasalahan di atas langkahnya adalah sebagai berikut:

1. ambil file fpault.dll atau fp4ault.dll yang terletak di dalam cd original XP pada lokasi dan folder I386\FP40EXT.CAB

2. kemudian copykan file tersebut ke dalam folder c:\program files\common files\microsoft shared\web server extensions\40\bin

3. kemudian install lagi office 2007 anda.

mudah2an berhasil….! SELAMAT MENCOBA…


copaz :http://aryanto165.com/2010/03/24/office-2007-the-windows-installer-service-cannot-update-one-or-more-protected-windows/