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 Namestitev PHP4 in Apache na Ubuntu

If you are doing any kind of PHP development, you'll almost always be using Apache along with it. Če delaš vse vrste razvoja PHP, boste skoraj vedno uporablja Apache skupaj z njim. Here's the quick and easy way to get PHP up and running on your Ubuntu box. Tukaj je hiter in enostaven način za PHP gor ter tekmovanje v teku naprej vaš okno Ubuntu.

First, you'll want to add the Najprej boste želeli dodati extra repositories to Ubuntu's sources.list file. ekstra odlagališča za sources.list Ubuntu dokumentacije.

From a command shell, you will run the following commands: Od ukaz lupine, boste prost dostop sledeč zapoved:

sudo apt-get install apache2 sudo apt-get install apache2

sudo apt-get install php4 sudo apt-get namestite PHP4

sudo apt-get install libapache2-mod-php4 sudo apt-get namestite libapache2-mod-PHP4

sudo /etc/init.d/apache2 restart sudo / etc/init.d/apache2 znova

Note that if apache is already installed you can omit the first line. Upoštevajte, da če je že nameščen apache lahko izpustite prvi vrstici. Your web files will now be found in /var/www/ Vaša spletna datotek bo sedaj mogoče najti v / var / www /

Note that this is nearly the same as Upoštevajte, da je to skoraj enako kot installing PHP5 namestitev PHP5 , which is the latest version. , Ki je najnovejša različica.

This article was originally written on 09/14/06 Tagged with: Ta članek je bil prvotno napisan na 09/14/06 Tagged with: Adding Software Dodajanje Software , , PHP PHP , , SysAdmin SysAdmin , , Ubuntu Ubuntu

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (6) Komentarji (6)

  1. supermansghost supermansghost

    php4 isn't going to be supported after the end of this year, I think PHP4 se ne bo podprla po koncu tega leta, mislim, da

  2. The Geek Geek

    Yes, that's correct, but a ton of people still use it. Ja, to je pravilno, vendar tone ljudi, ki še vedno uporabljajo.

  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 sem tekel vse ukaze v terminalu na Ubuntu 7,10 in jo prosila za geslo, potem je rekel ne more najti paketa apache2, kaj naj naredim

  4. Ubuntu Beginner Ubuntu Začetnik

    I installed Linux Ubuntu on 25.7.2008. Namestil sem Linux Ubuntu na 25.7.2008. A fresh copy. Svež izvod. I completely fromatted my HD. Popolnoma fromatted moj HD. My computer is working only in Ubuntu. Moj računalnik deluje le v Ubuntu. I want to install PHP4 , Apache and MySQL. Hočem namestiti PHP4, Apache in MySQL. Can any one suggest me the steps involved in doing so? Ali lahko kateri koli od predlagamo mi korake, vključenih v to? . .

  5. Tucker Tucker

    all you have to do, is the commands in the terminal of the page you posted on ^. vse, kar morate storiti, je ukaze v terminal strani, ki ste napoteni na ^.

    but what i did was: ampak kaj sem storil je bil:

    sudo apt-get install apache2 sudo apt-get install apache2
    sudo apt-get install php5 sudo apt-get install 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-get install mysql (to je tisti del, ki me vedno gets zajebal, poglej gor na google, iskanje sudo apt-get install mysql ukaz za ubunut)
    sudo apt-get install webmin sudo apt-get namestite Webmin

    there is another one that is like php-mysql, youll have to look that one up, it lets mysql and php communiacate obstaja še eden, ki je kot php, mysql, youll have to look to izmislil, to omogoča, mysql in php communiacate

  6. Chris Chris

    php4 seems not to be there anymore – php5 is good PHP4 se zdi, da ne bo več tam - php5 je dobra


Leave a Comment Pustite komentar




Leave your Pustite friendly prijazen comment here. comment here.

If you have a computer help question, Če imate računalnik pomagati vprašanje, click here to leave it on the forums kliknite tukaj, da ga pustijo na forumih instead. namesto.

Note: Your comment may not show up immediately on the site. Opomba: Tvoj komentar morda ne pokažejo takoj na mestu.

Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
mDNSResponder.exe mDNSResponder.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.