Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5 Diegimas web serveris FreeBSD 6,0 su Apache 2.2, MySQL 5.0, PHP 5 - 5 dalis
Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server Įdiegti Apache 2.2, MySQL 5 ir PHP 5 FreeBSD 6.0 Reliable Web Server
Part 5 – Installing PHP Hypertext Preprocessor Scripting Language 5 and PHP 5 Extensions 5 dalis - įdiegimas PHP Hypertext Preprocessor scripting language 5 ir PHP 5 Extensions
- Install by enter the following commands on FreeBSD OS command line, wait for previous command to finish before running the next command: Įdiegti, įvesti šias komandas į FreeBSD OS komandinės eilutės, laukiame Ankstesnis komandą Baigti prieš pradedant kitą komandą:
cd /usr/ports/lang/php5 CD / usr/ports/lang/php5
make install clean make install švarus - If you're prompted, select “use Apache 2.x instead”. Jei esate raginami, pasirinkite "naudoti Apache 2.x vietoj".
- Continue with the following commands to install PHP5 extensions and modules to enable the support of the modules in Apache: Toliau šias komandas įdiegti PHP5 extensions ir moduliai, kad būtų galima Apache modulių palaikymas:
cd /usr/ports/lang/php5-extensions CD / usr/ports/lang/php5-extensions
make config padaryti konfigūracijos - At Options for php5-extension 1.0 menu, select all PHP extensions and modules that you may use with Apache webserver. Į Options php5-extension 1,0 meniu, pasirinkite visas plėtinių PHP ir modulių, kuriuos galima naudoti su Apache webserver. This is a part of the configuration for PHP, where you need to enable features of PHP that come in modules, such as ability to manage user sessions, interface with databases and many others. Tai yra apie PHP, konfigūracijos dalis kur jums reikia įjungti funkcijas PHP, kad ateiti į modulius, tokius kaip gebėjimas valdyti vartotojo sesija, sąsaja su duomenų bazėmis ir daugelis kitų. Default extensions such as ctype functions support, HASH Message Digest Framework support, session support and etc have been selected. Numatytasis plėtinių, pavyzdžiui ctype funkcijas paramą, HASH Message Digest bendrosios paramos sesija parama ir tt buvo pasirinktas. Other popular extensions that you most likely to be in used are MySQL database support and GD library support. Kiti populiarūs pratęsimų, kad jūs greičiausiai būti naudojama yra MySQL duomenų bazės pagalba ir GD bibliotekos paramos. Use space bar to select or unselect the extensions and press Enter when done. Naudokite tarpo klavišą, norėdami pasirinkti arba atžymėti jų išplėtimą ir paspauskite "Enter", kai baigsite.
- Continue the installation of php5-extensions with the following commands: Toliau diegti php5-Extensions šias komandas:
make install clean make install švarus
- If there are any message the pops up and prompts you to select some options or configurations, you can just accept the default settings by pressing Enter. Jei yra bet koks pranešimas pasirodys ir paragina jus pasirinkti keletą variantų arba konfigūracijos, galite tiesiog priimti numatytuosius parametrus, paspauskite "Enter". Some modules that may prompt you for action include php5-gd, php5-mbstring and php5-sqlite. Kai kurie moduliai gali paskatinti jus imtis veiksmų: php5-gd, php5-mbstring ir php5-sqlite.
- Edit the Apache configuration file in order to enable Apache web server to load the PHP modules when initialization: Redaguoti Apache konfigūracijos failą, kad būtų galima Apache web serverio apkrovos PHP modulius, kai initialization:
- Go to Apache configuration file location by cd /usr/local/etc/apache2/ Grįžti į Apache konfigūracijos failo vietą, CD / usr/local/etc/apache2 /
- Edit Apache configuration file by vi httpd.conf Redaguoti Apache konfigūracijos failą httpd.conf VI
- Search for LoadModule lines, after the last LoadModule line, but within the same section, add the following 2 lines: Ieškoti LoadModule linijas, po paskutinio LoadModule linijos, tačiau per tą patį skyrių, pridėkite šias 2 eilutes:
AddType application/x-httpd-php .php AddType application / x-httpd-php. Php
AddType application/x-httpd-php-source .phps AddType application / x-httpd-php-source. Phps
- Optionally, copy /usr/local/etc/php.ini-recommended or /usr/local/etc/php.ini-dist to /usr/local/etc/php.ini (in same directory), which will enable you to tune and change the default settings of behaviours of PHP. Jei norite, kopijuoti / usr / local / etc / php.ini-recommended arba / usr / local / etc / php.ini-dist į / usr / local / etc / php.ini (į tą patį katalogą), kurios leis Jums sureguliuoti ir pakeisti numatytuosius parametrus veikos PHP.
- Start the Apache HTTP web server by using apachectl start (or restart Apache HTTP web server by using apachectl restart). Paleiskite Apache HTTP žiniatinklio serverio naudojant apachectl pradėti (arba paleiskite Apache HTTP žiniatinklio serverio naudojant apachectl restart). apachectl is located in /usr/local/sbin, if you encounter Command not found problem, try to change directory to its location. apachectl yra / usr / local / sbin, jei jums kyla Command not found problemą, pabandykite pakeisti katalogo į savo vietą.
- PHP5 installation done. PHP5 montavimas padaryti.
A web server has been setup with the FreeBSD with Apache, MySQL and PHP. Serverio buvo nustatyti naudojant kartu su Apache, MySQL ir PHP FreeBSD. The document root of the web server (where you should put your HTML and PHP files is at /usr/local/www/apache22/data/ and you will need a SecureFTP (SFTP) client such as WinSCP to upload your files to web server securely. Dokumentas šaknies interneto serveryje (kur reikia įdėti savo HTML ir PHP failai yra / usr/local/www/apache22/data / ir jums reikia SecureFTP (SFTP) kliento, pavyzdžiui, WinSCP įkelti failus į interneto serverį saugiai.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 3 Diegimas web serveris FreeBSD 6,0 su Apache 2.2, MySQL 5.0, PHP 5 - 3 dalis
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4 Diegimas web serveris FreeBSD 6,0 su Apache 2.2, MySQL 5.0, PHP 5 - 4 dalis
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 2 Diegimas web serveris FreeBSD 6,0 su Apache 2.2, MySQL 5.0, PHP 5 - 2 dalis
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 1 Diegimas web serveris FreeBSD 6,0 su Apache 2.2, MySQL 5.0, PHP 5 - 1 dalis
- Installing and Configuring DHCP Server (DHCPd) on FreeBSD Diegimas ir konfigūravimas DHCP serveris (dhcpd) FreeBSD
- Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4 Įdiekite phpBB 2, Windows XP veikia Apache 2, PHP 5, MySQL 4
- FreeBSD Apache HTTP Accept Filter Error FreeBSD, Apache HTTP accept filtro klaida
- Request URL /server-status or 404 Page Not Found Apache Error Prašymas URL / serverio statuso arba 404 Page Not Found Apache klaida
- Reset the Root Password of MySQL Server Atstatyti slaptažodį root MySQL Server
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page Apache statusas (WHM-server-status) Cpanel Serverio vadybininkas grąžinimai Blank Page










































May 13th, 2009 08:18 13 gegužė 2009 08:18
This php setup doesn't support mysql element. PHP diegimo nepalaiko mysql elementas. Drupal can't detect that mysql is running… I hope this could be modified and be of help to others. Drupal negali nustatyti, kad mysql veikia ... Aš tikiuosi, kad tai gali būti modifikuoti ir pagalbos kitiems.
November 25th, 2008 10:40 25 lapkritis 2008 10:40
This is a fine series of articles! Tai gerai serijos straipsnių!
The only real change I would suggest is executing portsnap or cvsup after the base installation, before installing apache, mysql and php. Vienintelis realus pokytis siūlyčiau vykdo portsnap arba CVSup po bazinių įrenginių, prieš diegdami Apache, MySQL ir PHP.