Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5 Instalacja serwera sieci Web w FreeBSD 6.0 z Apache 2.2, MySQL 5.0 i PHP 5 - część 5
Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server Instalacja Apache 2.2, MySQL 5 i PHP 5 w FreeBSD 6.0 dla niezawodnego Web Server
Part 5 - Installing PHP Hypertext Preprocessor Scripting Language 5 and PHP 5 Extensions Część 5 - Instalowanie PHP Hypertext Preprocessor 5 i języka skryptowego PHP 5 Rozszerzenia
- Install by enter the following commands on FreeBSD OS command line, wait for previous command to finish before running the next command: Zainstaluj przez wpisz następujące polecenia w wierszu polecenia systemu operacyjnego FreeBSD, czekać na poprzednie polecenie, aby zakończyć przed uruchomieniem następnego polecenia:
cd /usr/ports/lang/php5 cd / usr/ports/lang/php5
make install clean make install clean - If you’re prompted, select “use Apache 2.x instead”. Jeśli monit, wybierz opcję "zamiast używać Apache 2.x".
- Continue with the following commands to install PHP5 extensions and modules to enable the support of the modules in Apache: Kontynuuj z następujących poleceń, aby zainstalować PHP5 rozszerzeń i modułów, aby umożliwić wsparcie modułów Apache:
cd /usr/ports/lang/php5-extensions cd / usr/ports/lang/php5-extensions
make config make config - At Options for php5-extension 1.0 menu, select all PHP extensions and modules that you may use with Apache webserver. Opcje na php5-rozszerzenie 1,0 menu, wybierz wszystkie rozszerzenia PHP i moduły, które mogą korzystać z 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. Jest to część konfiguracji PHP, gdzie musisz włączyć funkcje PHP, które są w moduły, takie jak zdolność do zarządzania sesjami użytkowników, interfejs z baz danych i wiele innych. Default extensions such as ctype functions support, HASH Message Digest Framework support, session support and etc have been selected. Domyślne rozszerzenia, takie jak ctype funkcji wsparcia, Hash Message Digest ramowego wsparcie, obsługi sesji i itp zostały wybrane. Other popular extensions that you most likely to be in used are MySQL database support and GD library support. Inne popularne rozszerzenia, które najprawdopodobniej zostaną wykorzystane są w bazie danych MySQL oraz GD wsparcie bibliotek. Use space bar to select or unselect the extensions and press Enter when done. Użyj spacji, aby zaznaczyć lub odznaczyć rozszerzenia i naciśnij klawisz Enter po zakończeniu tej czynności.
- Continue the installation of php5-extensions with the following commands: Kontynuować instalację rozszerzeń-php5 z następującymi poleceniami:
make install clean make install clean
- 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. Jeśli istnieją jakiekolwiek wiadomości o wyskakuje i monituje o wybranie opcji lub niektórych konfiguracjach, możemy po prostu zaakceptować domyślne ustawienia, naciskając klawisz Enter. Some modules that may prompt you for action include php5-gd, php5-mbstring and php5-sqlite. Niektóre moduły, które mogą Cię do działania php5-gd, php5-mbstring i php5-sqlite.
- Edit the Apache configuration file in order to enable Apache web server to load the PHP modules when initialization: Edytuj plik konfiguracyjny Apache'a w celu umożliwienia Apache Web Server, aby załadować moduły PHP przy inicjalizacji:
- Go to Apache configuration file location by cd /usr/local/etc/apache2/ Przejdź do lokalizacji pliku konfiguracyjnego Apache przez cd / usr/local/etc/apache2 /
- Edit Apache configuration file by vi httpd.conf Edytuj plik konfiguracyjny Apache'a przez vi httpd.conf
- Search for LoadModule lines, after the last LoadModule line, but within the same section, add the following 2 lines: Szukaj LoadModule linii, po ostatnim LoadModule linii, ale w ramach tej samej sekcji, należy dodać następujące 2 linie:
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. Opcjonalnie, skopiuj / usr / local / etc / php.ini-zalecane lub / usr / local / etc / php.ini-dist do katalogu / usr / local / etc / php.ini (w tym samym katalogu), które umożliwiają melodii i zmienić domyślne ustawienia zachowań PHP.
- Start the Apache HTTP web server by using apachectl start (or restart Apache HTTP web server by using apachectl restart). Uruchomić serwer WWW Apache za pomocą apachectl start (lub ponownie uruchomić serwer WWW Apache za pomocą apachectl restart). apachectl is located in /usr/local/sbin, if you encounter Command not found problem, try to change directory to its location. apachectl znajduje się w katalogu / usr / local / sbin, jeśli napotkasz command not found problem, spróbuj zmienić katalogu na swoje położenie.
- PHP5 installation done. PHP5 instalacji zrobienia.
A web server has been setup with the FreeBSD with Apache, MySQL and PHP. A serwer WWW został z instalacji FreeBSD z Apache, MySQL i PHP. 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. Dokument do katalogu głównego serwera sieciowego (tam, gdzie powinien umieścić swoje pliki HTML i PHP jest w / usr/local/www/apache22/data / i będziesz potrzebował SecureFTP (SFTP), takich jak klient do WinSCP przesyłanie plików na serwer internetowy bezpiecznie.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WAŻNE: To jest maszyna przetłumaczony strony, które są dostarczane "tak jak są" bez gwarancji. Machine translation may be difficult to understand. Tłumaczenie maszynowe mogą być trudne do zrozumienia. Please refer to Proszę odnieść się do original English article oryginalnego artykułu w języku angielskim whenever possible. ilekroć to możliwe.
Share and contribute or get technical support and help at Udział i wkład lub uzyskać wsparcie techniczne oraz pomoc w My Digital Life Forums Mój Cyfrowy Życie Forum .
Related Articles Powiązane artykuły
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 1 Instalacja serwera sieci Web w FreeBSD 6.0 z Apache 2.2, MySQL 5.0 i PHP 5 - część 1
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 2 Instalacja serwera sieci Web w FreeBSD 6.0 z Apache 2.2, MySQL 5.0 i PHP 5 - część 2
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4 Instalacja serwera sieci Web w FreeBSD 6.0 z Apache 2.2, MySQL 5.0 i PHP 5 - część 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 Instalacja serwera sieci Web w FreeBSD 6.0 z Apache 2.2, MySQL 5.0 i PHP 5 - część 3
- Installing and Configuring DHCP Server (DHCPd) on FreeBSD Instalacja i konfiguracja serwera DHCP (DHCPd) na FreeBSD
- FreeBSD Apache HTTP Accept Filter Error FreeBSD Apache HTTP zaakceptować filtr błąd
- Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4 Sprawy phpBB 2 zainstalować w systemie Windows XP działa na Apache 2, PHP 5 i MySQL 4
- Reset the Root Password of MySQL Server Resetowanie hasła roota MySQL server
- Request URL /server-status or 404 Page Not Found Apache Error Prośba URL / server-status lub 404 Page Not Found Błąd Apache
- Checking Free Disk Space on FreeBSD Server Sprawdzanie wolnego miejsca na dysku na serwer FreeBSD


























November 25th, 2008 10:40 25 listopada 2008 10:40
This is a fine series of articles! Jest to dobrze serii artykułów!
The only real change I would suggest is executing portsnap or cvsup after the base installation, before installing apache, mysql and php. Jedyną prawdziwą zmianę Sugerowałbym jest wykonującego portsnap cvsup lub po podstawy instalacji, przed zainstalowaniem apache, php i mysql.