Subscribe to How-To Geek Mag-subscribe sa Paano-Upang Geek

Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Installing PHP4 and Apache on Ubuntu Pag-install ng PHP4 at Apache sa Ubuntu

If you are doing any kind of PHP development, you'll almost always be using Apache along with it. Kung ikaw ay gumagawa ng anumang uri ng PHP-unlad, makikita mo halos palaging gumagamit ng Apache kasama ang mga ito. Here's the quick and easy way to get PHP up and running on your Ubuntu box. Narito ang mabilis at madaling paraan upang makakuha ng PHP up at tumakbo sa inyong Ubuntu box.

First, you'll want to add the Una, ang gusto ninyong idagdag ang mga extra repositories to Ubuntu's sources.list file. sobrang repositories sa sources.list file na Ubuntu's.

From a command shell, you will run the following commands: Mula sa isang shell command, ikaw ay tatakbo sa mga sumusunod na command:

sudo apt-get install apache2 sudo APT-i-install ang makakuha ng apache2

sudo apt-get install php4 sudo APT-i-install ang makakuha ng php4

sudo apt-get install libapache2-mod-php4 sudo APT-i-install ang makakuha ng libapache2-mod-php4

sudo /etc/init.d/apache2 restart sudo / etc/init.d/apache2 i-restart ang

Note that if apache is already installed you can omit the first line. Tandaan na kung Apache ay naka-install na maaari ninyong luksuhan ang unang linya. Your web files will now be found in /var/www/ Ang iyong web file ay ngayon ay matatagpuan sa / var / www /

Note that this is nearly the same as Tandaan na ito ay halos katulad ng installing PHP5 pag-install ng PHP5 , which is the latest version. , Na kung saan ay ang pinakabagong bersyon.

This article was originally written on 09/14/06 Tagged with: Ang artikulong ito ay orihinal na isinulat sa 09/14/06 Tagged with: Adding Software Pagdaragdag ng Software , , PHP PHP , , SysAdmin SysAdmin , , Ubuntu Ubuntu

Daily Email Updates Araw-araw na Updates Email

You can get our how-to articles in your inbox each day for free. Maaari kang makakuha ng aming kung-paano na mga artikulo sa iyong inbox sa bawat araw para sa libre. Just enter your name and email below: Ilagay lamang ang inyong pangalan at email sa ibaba:


Name: Pangalan:
Email: Email:

Comments (6) Comments (6)

  1. supermansghost supermansghost

    php4 isn't going to be supported after the end of this year, I think php4 ay hindi magiging suportado matapos ang katapusan ng taong ito, sa tingin ko

  2. The Geek Ang Geek

    Yes, that's correct, but a ton of people still use it. Oo, na tama, ngunit isang tonelada ng mga tao pa rin gamitin ito.

  3. Bryce Bryce

    i ran all the commands in terminal on Ubuntu 7.10 and it asked for my password then it said couldn't find package apache2 , what should i do ako ran ang lahat ng mga command sa terminal sa Ubuntu 7.10 at tinanong ang aking password at pagkatapos ay sinabi na ito ay maaaring hindi mahanap ang paketeng apache2, ano ang dapat ko

  4. Ubuntu Beginner Ubuntu beginner

    I installed Linux Ubuntu on 25.7.2008. Ako naka-install sa Linux Ubuntu sa 25.7.2008. A fresh copy. Ang isang sariwang kopya. I completely fromatted my HD. Ako ganap na fromatted aking HD. My computer is working only in Ubuntu. Aking mga computer ay gumagana lamang sa Ubuntu. I want to install PHP4 , Apache and MySQL. Gusto kong i-install ang PHP4, Apache at MySQL. Can any one suggest me the steps involved in doing so? Puwede anumang isa iminumungkahi sa akin ang mga hakbang na kasangkot sa paggawa nito? . .

  5. Tucker Tucker

    all you have to do, is the commands in the terminal of the page you posted on ^. ang lahat ng kailangan mong gawin, ay ang mga utos sa terminal ng mga pahina na iyong nai-post sa ^.

    but what i did was: ngunit kung ano ako did ay:

    sudo apt-get install apache2 sudo APT-i-install ang makakuha ng apache2
    sudo apt-get install php5 sudo APT-i-install ang makakuha ng php5
    sudo apt-get install mysql(this is the part that always gets me messed up, look it up on google, search sudo apt-get install mysql command for ubunut) sudo APT-i-install ang makakuha ng MySQL (ito ay ang mga bahagi na palagi ako makakakuha ng messed up, tumingin ito sa google, search sudo APT-i-install ang makakuha ng MySQL utos para sa ubunut)
    sudo apt-get install webmin sudo APT-i-install ang makakuha ng webmin

    there is another one that is like php-mysql, youll have to look that one up, it lets mysql and php communiacate may isa pa na gusto php-MySQL, youll may sa tumingin na ang isa sa up, ito ay nagbibigay-daan sa MySQL at php communiacate

  6. Chris Chris

    php4 seems not to be there anymore – php5 is good php4 tila hindi dapat may anymore - php5 ay mabuti


Our Friends Ang aming mga Friends
Getting Started Pagsisimula


About How-To Geek Tungkol sa Paano-Upang Geek
What Is That Process? Ano ba ang Proseso Iyon?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.