Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5 Inštalácia webového servera na FreeBSD 6.0 s Apache 2.2, MySQL 5.0 a PHP 5 - Časť 5
Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server Inštalácia Apache 2.2, MySQL 5 a PHP 5 na FreeBSD 6.0 pre spoľahlivé Web Server
Part 5 – Installing PHP Hypertext Preprocessor Scripting Language 5 and PHP 5 Extensions Časť 5 - Inštalácia PHP Hypertext Preprocessor skriptovacieho jazyka PHP 5 a Extensions 5
- Install by enter the following commands on FreeBSD OS command line, wait for previous command to finish before running the next command: Inštalácia by zadajte tieto príkazy na FreeBSD OS príkazového riadku, počkajte na predchádzajúcu položku dokončiť pred spustením nasledujúceho príkazu:
cd /usr/ports/lang/php5 cd / usr/ports/lang/php5
make install clean make install čistej - If you're prompted, select “use Apache 2.x instead”. Ak ste vyzvaní, vyberte "použiť Apache 2.x miesto".
- Continue with the following commands to install PHP5 extensions and modules to enable the support of the modules in Apache: Pokračovať s týmito príkazy na inštaláciu PHP5 rozšírenie a moduly, ktoré umožnia podporu modulov v Apache:
cd /usr/ports/lang/php5-extensions cd / usr/ports/lang/php5-extensions
make config urobiť config - At Options for php5-extension 1.0 menu, select all PHP extensions and modules that you may use with Apache webserver. Na možnosti pre php5-predĺženie 1,0 menu vyberte všetky rozšírenia PHP a modulov, ktoré môžete používať s 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. To je súčasťou konfigurácie pre PHP, kde je potrebné, aby sa aktivovala funkcie PHP, ktoré prichádzajú do modulov, ako je schopnosť spravovať užívateľské relácie, prepojenia s databázou a mnoho ďalších. Default extensions such as ctype functions support, HASH Message Digest Framework support, session support and etc have been selected. Implicitné rozšírenie ako ctype funkcie pomoci hash Message Digest rámcovej pomoci, pomoci a zasadnutia atď boli vybrané. Other popular extensions that you most likely to be in used are MySQL database support and GD library support. Ostatné obľúbené rozšírenie, ktoré vám s najväčšou pravdepodobnosťou byť použité, sú v MySQL databázu, servis a GD knižnicu podporujú. Use space bar to select or unselect the extensions and press Enter when done. Použite medzerníka vyberte alebo zrušte výber rozšírenie a stlačte Enter, keď urobil.
- Continue the installation of php5-extensions with the following commands: Pokračovať inštalácie php5-predĺženia s nasledujúcimi príkazmi:
make install clean make install čistej
- 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. Ak existujú nejaké správy o POPs a vyzve vás na výber niektoré možnosti konfigurácie, alebo môžete jednoducho prijať predvolené nastavenia, stlačíte Enter. Some modules that may prompt you for action include php5-gd, php5-mbstring and php5-sqlite. Niektoré moduly, ktoré vás môže vyzvať k akcii patrí php5-gd, php5-mbstring a php5-sqlite.
- Edit the Apache configuration file in order to enable Apache web server to load the PHP modules when initialization: Upravte konfiguračný súbor Apache s cieľom umožniť webový server Apache načítať PHP modulov pri inicializácii:
- Go to Apache configuration file location by cd /usr/local/etc/apache2/ Prejdite na konfiguračný súbor Apache umiestnenie cd / usr/local/etc/apache2 /
- Edit Apache configuration file by vi httpd.conf Upraviť Apache konfiguračný súbor httpd.conf vi
- Search for LoadModule lines, after the last LoadModule line, but within the same section, add the following 2 lines: Hľadanie LoadModule linky, po poslednom LoadModule line, ale v rovnakej sekcii pridajte nasledujúce 2 riadky:
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. Nepovinné kópie / usr / local / etc / php.ini-doporučené alebo / usr / local / etc / php.ini-dist do adresára / usr / local / etc / php.ini (v rovnakom adresári), ktorý vám umožní melódiu a zmeniť predvolené nastavenia správania PHP.
- Start the Apache HTTP web server by using apachectl start (or restart Apache HTTP web server by using apachectl restart). Start Apache HTTP webový server pomocou apachectl start (alebo reštarte Apache HTTP webový server pomocou apachectl restart). apachectl is located in /usr/local/sbin, if you encounter Command not found problem, try to change directory to its location. apachectl sa nachádza v adresári / usr / local / sbin, ak narazíte na veliteľstvo nebol nájdený problém, pokúste sa zmeniť adresár na svoje miesto.
- PHP5 installation done. PHP5 inštalácie hotovo.
A web server has been setup with the FreeBSD with Apache, MySQL and PHP. A web server bol nastavenie s FreeBSD s Apache, MySQL a 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 root pre webový server (ak by ste mali dať vaše HTML a PHP súborov na / usr/local/www/apache22/data / a budete potrebovať SecureFTP (SFTP) klient ako WinSCP nahrať súbory na webový server bezpečne.
IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: Stránka je stroje preložené a poskytované "tak ako sú" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Obráťte sa prosím na original English article Anglický originál článku whenever possible. kedykoľvek je to možné.
Related Articles Súvisiace články
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 3 Inštalácia webového servera na FreeBSD 6.0 s Apache 2.2, MySQL 5.0 a PHP 5 - Časť 3
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4 Inštalácia webového servera na FreeBSD 6.0 s Apache 2.2, MySQL 5.0 a PHP 5 - Časť 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 2 Inštalácia webového servera na FreeBSD 6.0 s Apache 2.2, MySQL 5.0 a PHP 5 - časť 2
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 1 Inštalácia webového servera na FreeBSD 6.0 s Apache 2.2, MySQL 5.0 a PHP 5 - časť 1
- Installing and Configuring DHCP Server (DHCPd) on FreeBSD Inštalácia a konfigurácia DHCP server (dhcpd) na FreeBSD
- Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4 Inštalácia phpBB 2 do Okná XP bežiace na Apache 2, PHP 5 a MySQL 4
- FreeBSD Apache HTTP Accept Filter Error FreeBSD Apache HTTP Prijať Filter Chyba
- Request URL /server-status or 404 Page Not Found Apache Error Žiadosť URL / server-status alebo 404 Strana Nenájdené Apache Chyba
- Reset the Root Password of MySQL Server Reset root hesla na MySQL servera
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page Apache Status (WHM-server-status) do cPanel webhost Manager Vracia Prázdne stránky










































May 13th, 2009 08:18 13. mája 2009 08:18
This php setup doesn't support mysql element. Toto nastavenie php nepodporuje mysql prvok. Drupal can't detect that mysql is running… I hope this could be modified and be of help to others. Drupal nemôže zistiť, že mysql beží ... Dúfam, že toto by mohol byť upravený a pomôcť ostatným.
November 25th, 2008 10:40 25. novembra 2008 10:40
This is a fine series of articles! To je pokuta série článkov!
The only real change I would suggest is executing portsnap or cvsup after the base installation, before installing apache, mysql and php. Jedinú skutočnú zmenu bych navrhnúť je Vykonávajúci portsnap alebo cvsup po základnú inštaláciu, pred inštaláciou Apache, MySQL a PHP.