Welkom op de Nederland Computer Kennisnetwerk!  
 
Zoeken computer kennis
Home Hardware Netwerken Programmering Software Computerstoring Besturingssysteem
Computer Kennis >> Besturingssysteem >> Ubuntu >> Content
Aan de slag met PHP op Ubuntu
Linux - gebaseerde Web development is populair voor vele redenen , PHP is een van hen . Hoewel PHP kan draaien op een Windows- computer met de juiste server en configuratie , is het ontworpen voor Linux . Het acroniem " LAMP " ( Linux - Apache - MySQL - PHP ) verwijst naar de meest voorkomende " stack " van technologieën die door PHP ontwikkelaars . U kunt aan de slag met PHP in Ubuntu door het installeren van de LAMP stack pakket . Wat extra inspanning is nodig om uw bestanden te krijgen in de juiste directory's te gebruiken met de Apache -server , dat wel. Instructies
1

Navigeer naar Terminal van " Applications ", ga dan naar " Accessoires . " Installeer " tasksel " als u Ubuntu 11.04 gebruiken door het intikken van " sudo apt - get install tasksel " in de terminal . Ubuntu 7 tot en met 10 al geleverd met " tasksel . " Type " sudo tasksel install lamp - server " op de LAMP stack te installeren . Volg de aanwijzingen om de installatie te voltooien . Kopen van 2

Ga naar ' Toepassingen ' en vervolgens 'Accessoires , " en open de teksteditor . Maak een eenvoudige HTML- bestand en zijn de PHP functie " phpinfo ( ) " tussen PHP -tags . De code ziet er als volgt uit:

testpagina <br> < /test > <br> <p> < /head <p> <body> <br> <p> <br> <php phpinfo ( ) > ; ? > <p> < /body > Telefoonkaarten <p> < /html > <br> <p> Sla het bestand met de PHP extensie , zoals " mytest.php . " <br> 3 <p> Open de file manager als uw gebruiker door te gaan naar " Places , " dan " File System . " Navigeer naar uw opgeslagen PHP bestand . Rechtermuisknop op het bestand en selecteer "kopiëren . " <br> <p> Type " sudo nautilus " 4 in om je terminal venster om de file manager te openen als "root ". De " root"-account is de enige met toegang tot de Apache server directories . Navigeer naar de " www " map van " var . " Klik met de rechtermuisknop op de map en selecteer ' Plakken'. <br> 5 <p> Start uw browser en typ " localhost /yourfile.php " in de adresbalk . Uw webpagina wordt geladen , toont een volledige lijst met instellingen informatie over PHP op uw computer . U kunt nu het programma in PHP , en test uw bestanden op Apache vanaf uw computer met Ubuntu . <br> <br></td> </tr> </table> <table border=0 cellSpacing=0 cellPadding=0 width=970 align=center height=90> <tr> <td bgColor=#e7edf4 align=middle><script language='javascript' src='/ad/201310/3.js'></script></td> </tr> </table> <table border=0 cellSpacing=0 cellPadding=0 width=970 align=center height=90> <tr> <td align=left>Previous: <a class='LinkPrevArticle' href='/besturingssysteem/ubuntu/201309/210718.html' >Hoe maak je opnieuw installeren Open Source ATI op Ubuntu </a></li> </td> <td align=right>Next: <a class='LinkNextArticle' href='/besturingssysteem/ubuntu/201309/210720.html' >Een tutorial voor Ubuntu installeren op VirtualBox </a></li> </td> </tr> </table> </td> </tr> </table> <table border=0 cellSpacing=0 cellPadding=0 width=970 align=center height=18> <tr> <td></td> </tr> </table> <table border=0 cellSpacing=0 cellPadding=0 width=970 align=center height=246> <tr> <td height=246 vAlign=top width=199> <table class=bian border=0 cellSpacing=0 cellPadding=0 width=199> <tr> <td height=244 vAlign=top width=197> <table border=0 cellSpacing=0 cellPadding=0 width="100%" bgColor=#dbe3ee> <tr> <td height=29 width="4%"> </td> <td width="96%"><STRONG>Ubuntu</STRONG></td> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0"><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/ubuntu/201309/210429.html" title="Hoe te Murmur Get te openen in Ubuntu " target="_self">Hoe te Murmur Get te openen in…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/ubuntu/201309/211646.html" title="Hoe kan ik een partitie in Ubuntu Creëren " target="_self">Hoe kan ik een partitie in Ubu…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/ubuntu/201309/211092.html" title="Hoe om bestanden in Ubuntu verwijderen Met de Terminal " target="_self">Hoe om bestanden in Ubuntu ver…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/ubuntu/201309/211098.html" title="Hoe te Enable op de Terminal Server Client in Ubuntu " target="_self">Hoe te Enable op de Terminal S…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/ubuntu/201309/210292.html" title="Hoe je Ubuntu Run op een Android telefoon " target="_self">Hoe je Ubuntu Run op een Andro…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/ubuntu/201309/211275.html" title="Hoe maak je een liedje Put op een iPod met behulp van Ubuntu " target="_self">Hoe maak je een liedje Put op …</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/ubuntu/201309/210676.html" title="Hoe je Ubuntu Extend Met Python " target="_self">Hoe je Ubuntu Extend Met Pytho…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/ubuntu/201309/211443.html" title="Hoe te Kubuntu & Ubuntu verwijderen van een harde schijf " target="_self">Hoe te Kubuntu & Ubuntu verwij…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/ubuntu/201309/210736.html" title="Hoe te : SSH sleutels in Ubuntu " target="_self">Hoe te : SSH sleutels in Ubunt…</a></td></tr><tr></tr></table></td> </tr> </table> </td> <td vAlign=top width=12></td> <td vAlign=top width=375> <table class=bian border=0 cellSpacing=0 cellPadding=0 width=375> <tr> <td height=244 vAlign=top> <table border=0 cellSpacing=0 cellPadding=0 width="100%" bgColor=#dbe3ee> <tr> <td height=29 width="4%"> </td> <td width="96%"><STRONG>Related Articles</STRONG></td> </tr> </table> <table border=0 cellSpacing=4 cellPadding=0 width="95%" align=center height=209> <tr> <td height=201 width="33%"><IMG src="/img_xby/n1.jpg" width=111 height=182></td> <td width="67%"><a class='LinkArticleCorrelative' href='/besturingssysteem/windows-xp/201309/237436.html' target="_self">Hoe te Cool Bureaublad Achtergronden voo…</a><br><a class='LinkArticleCorrelative' href='/besturingssysteem/windows-xp/201309/237435.html' target="_self">Hoe maak je Windows XP Fonts Look Better…</a><br><a class='LinkArticleCorrelative' href='/besturingssysteem/windows-xp/201309/237434.html' target="_self">Hoe te bespoedigen Windows XP </a><br><a class='LinkArticleCorrelative' href='/besturingssysteem/windows-xp/201309/237433.html' target="_self">Hoe je Auto Login inschakelen in Windows…</a><br><a class='LinkArticleCorrelative' href='/besturingssysteem/windows-xp/201309/237432.html' target="_self">Hoe je Auto Login inschakelen in Windows…</a><br><a class='LinkArticleCorrelative' href='/besturingssysteem/windows-xp/201309/237431.html' target="_self">Hoe te installeren Windows XP op uw comp…</a><br><a class='LinkArticleCorrelative' href='/besturingssysteem/windows-xp/201309/237430.html' target="_self">Hoe om te upgraden naar Vista uit Window…</a><br><a class='LinkArticleCorrelative' href='/besturingssysteem/windows-xp/201309/237429.html' target="_self">Hoe om bestanden in Windows XP Pro </a><br><a class='LinkArticleCorrelative' href='/besturingssysteem/windows-xp/201309/237428.html' target="_self">Hoe te File Type Associations in Windows…</a><br></td> </tr> </table> </td> </tr> </table> </td> <td vAlign=top width=8></td> <td vAlign=top width=376> <table class=bian border=0 cellSpacing=0 cellPadding=0 width=375> <tr> <td height=244 vAlign=top> <table border=0 cellSpacing=0 cellPadding=0 width="100%" bgColor=#dbe3ee> <tr> <td height=29 width="4%"> </td> <td width="96%"><STRONG>Besturingssysteem Articles</STRONG></td> </tr> </table> <table border=0 cellSpacing=4 cellPadding=0 width="95%" align=center height=207> <tr> <td height=199 width="33%"><IMG src="/img_xby/n2.jpg" width=111 height=182></td> <td width="67%"> <table width="100%" cellpadding="0" cellspacing="0"><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/basic-computer-skills/201309/200539.html" title="Hoe te Codeigniter installeren in Netbeans " target="_self">Hoe te Codeigniter installeren in Netbea…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/windows-vista/201309/231239.html" title="How Do You Maak de cache in Windows Vista ? " target="_self">How Do You Maak de cache in Windows Vist…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/windows/201309/213287.html" title="Hoe om te bepalen Als een foto is gemanipuleerd " target="_self">Hoe om te bepalen Als een foto is gemani…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/basic-computer-skills/201309/200425.html" title="Hoe te installeren Hyper - V R2 " target="_self">Hoe te installeren Hyper - V R2 </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/windows/201309/228376.html" title="Hoe om te achterhalen hoeveel geheugen uw computer is " target="_self">Hoe om te achterhalen hoeveel geheugen u…</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/ubuntu/201309/210519.html" title="Rhythmbox Crashes in Ubuntu 10.04 " target="_self">Rhythmbox Crashes in Ubuntu 10.04 </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/windows/201309/215546.html" title="Hoe te Javascripts Verwijder " target="_self">Hoe te Javascripts Verwijder </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/basic-computer-skills/201309/203295.html" title="Hoe te Aangepaste Pagina met Vista " target="_self">Hoe te Aangepaste Pagina met Vista </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/besturingssysteem/windows/201309/227242.html" title="Hoe te Domain Controller Windows Vervang " target="_self">Hoe te Domain Controller Windows Vervang…</a></td></tr><tr></tr></table></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table border=0 cellSpacing=0 cellPadding=0 width=970 align=center height=10> <tr> <td></td> </tr> </table> <table border=0 cellSpacing=0 cellPadding=0 width=970 align=center height=57> <tr> <td class=bs background=/img_xby/di.jpg align=center>Copyright © Computer Kennis http://www.nldit.com <script language='javascript' src='/ad/201310/5.js'></script></td> </tr> </table> <table border=0 cellSpacing=0 cellPadding=0 width=970 align=center height=10> <tr> <td></td> </tr> </table> </div> </body> </html>