Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5 Instalēšana Web serveri FreeBSD 6,0 ar Apache 2.2, MySQL 5.0 un PHP 5 - 5.daļa
Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server Instalēšana Apache 2.2, MySQL 5 un PHP 5 FreeBSD 6,0 par Reliable Web Server
Part 5 – Installing PHP Hypertext Preprocessor Scripting Language 5 and PHP 5 Extensions 5.daļa - instalēšana PHP hiperteksta Preprocessor Scripting Language 5 un PHP 5 Pagarinājumi
- Install by enter the following commands on FreeBSD OS command line, wait for previous command to finish before running the next command: Install ar ievada šādus komandas par FreeBSD OS komandrindas, pagaidiet iepriekšējo komandu pabeigt pirms ekspluatācijas nākamo komandu:
cd /usr/ports/lang/php5 cd / usr/ports/lang/php5
make install clean padarīt instalēt tīru - If you're prompted, select “use Apache 2.x instead”. Ja jūs pamudināja, izvēlieties "izmantošana Apache 2.x vietā".
- Continue with the following commands to install PHP5 extensions and modules to enable the support of the modules in Apache: Turpināt ar šādu komandas uzstādīt PHP5 paplašinājumi un moduļus, lai nodrošinātu atbalstu no moduļu Apache:
cd /usr/ports/lang/php5-extensions cd / usr/ports/lang/php5-extensions
make config padarīt config - At Options for php5-extension 1.0 menu, select all PHP extensions and modules that you may use with Apache webserver. Pēc iespējas php5-pagarinājums 1,0 izvēlnē izvēlieties visu PHP paplašinājumus un moduļu, ka Jums var izmantot ar Apache tīmekļa serveri. 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. Tas ir daļa no konfigurācija PHP, ja Jums ir nepieciešama, lai dotu iespēju iezīmes PHP, kas nonāk moduļus, piemēram, spēja pārvaldīt lietotāja sesijas, saskarne ar datu bāzes un daudzi citi. Default extensions such as ctype functions support, HASH Message Digest Framework support, session support and etc have been selected. Default paplašinājumus, piemēram, ctype funkcijas atbalstu, Hash Sludinājuma Digest pamatprogrammas atbalstu, sesija atbalstu un etc ir atlasīti. Other popular extensions that you most likely to be in used are MySQL database support and GD library support. Citi populāri paplašinājumi, ka jūs, visticamāk, ka tiek MySQL datubāze atbalstu un GD bibliotēkas atbalstu. Use space bar to select or unselect the extensions and press Enter when done. Izmantojiet starpdevējs izvēlēties vai noņemiet pagarinājumus un nospiediet Enter, kad izdarīts.
- Continue the installation of php5-extensions with the following commands: Turpināt uzstādīšanu php5-paplašinājumus ar šādu komandas:
make install clean padarīt instalēt tīru
- 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. Ja ir kādi ziņojumu NOP un uzvedņu jums izvēlēties dažas iespējas vai konfigurācijas, jūs varat akceptēt noklusējuma iestatījumus, nospiežot Enter. Some modules that may prompt you for action include php5-gd, php5-mbstring and php5-sqlite. Daži moduļi, kas var prompt jums ierosinājumi php5-gd, php5-mbstring un php5-sqlite.
- Edit the Apache configuration file in order to enable Apache web server to load the PHP modules when initialization: Rediģējiet Apache konfigurācijas failu, lai varētu Apache tīmekļa servera ielādēt PHP moduļus, kad inicializēšanu:
- Go to Apache configuration file location by cd /usr/local/etc/apache2/ Iet uz Apache konfigurācijas failu vietu, cd / usr/local/etc/apache2 /
- Edit Apache configuration file by vi httpd.conf Edit Apache konfigurācijas failu ar vi httpd.conf
- Search for LoadModule lines, after the last LoadModule line, but within the same section, add the following 2 lines: Meklēt LoadModule līniju, pēc tam, kad pēdējā LoadModule līnija, bet tajā pašā iedaļā, pievieno šādu 2 līnijas:
AddType application/x-httpd-php .php AddType pieteikuma / x-httpd-php. Php
AddType application/x-httpd-php-source .phps AddType pieteikuma / 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. Izvēles kopēt / usr / local / etc / php.ini ieteiktais vai / usr / local / etc / php.ini-raj uz / usr / local / etc / php.ini (vienā katalogs), kas ļaus Jums melodija un mainīt noklusējuma uzstādījumus, uzvedības gadījumos PHP.
- Start the Apache HTTP web server by using apachectl start (or restart Apache HTTP web server by using apachectl restart). Sākt Apache HTTP interneta serveri, izmantojot apachectl sākt (vai restart Apache HTTP interneta serveri, izmantojot apachectl restart). apachectl is located in /usr/local/sbin, if you encounter Command not found problem, try to change directory to its location. apachectl atrodas / usr / local / sbin, ja jums rodas Command nav atrasts problēmas, mēģiniet mainīt direktoriju uz tās atrašanās vietu.
- PHP5 installation done. PHP5 uzstādīšana darīts.
A web server has been setup with the FreeBSD with Apache, MySQL and PHP. Tīmekļa servera ir setup ar FreeBSD ar Apache, MySQL un 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. Dokumentu saknes Web servera (ja jūs būtu jūsu HTML un PHP faili ir / usr/local/www/apache22/data / un jums būs nepieciešams SecureFTP (SFTP) klients, piemēram, WinSCP augšupielādēt failus uz interneta servera droši.
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 3 Instalēšana Web serveri FreeBSD 6,0 ar Apache 2.2, MySQL 5.0 un PHP 5 - 3.daļa
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4 Instalēšana Web serveri FreeBSD 6,0 ar Apache 2.2, MySQL 5.0 un PHP 5 - 4.daļa
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 2 Instalēšana Web serveri FreeBSD 6,0 ar Apache 2.2, MySQL 5.0 un PHP 5 - 2.daļa
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 1 Instalēšana Web serveri FreeBSD 6,0 ar Apache 2.2, MySQL 5.0 un PHP 5 - 1.daļa
- Installing and Configuring DHCP Server (DHCPd) on FreeBSD Instalēšana un konfigurēšana DHCP Server (DHCPd) par FreeBSD
- Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4 Install phpBB 2 Windows XP darboties ar Apache 2, PHP 5 un MySQL 4
- FreeBSD Apache HTTP Accept Filter Error FreeBSD Apache HTTP Accept Filtrs kļūdu
- Request URL /server-status or 404 Page Not Found Apache Error Pieprasījums URL / servera statusu vai 404 Page Not Found Apache kļūdu
- Reset the Root Password of MySQL Server Reset to Root paroli MySQL Server
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page Apache statuss (WHM serveris statusa) in cPanel WebHost Manager Returns Blank Page










































May 13th, 2009 08:18 Maijs 13, 2009 08:18
This php setup doesn't support mysql element. Šī php setup neatbalsta mysql elementu. Drupal can't detect that mysql is running… I hope this could be modified and be of help to others. Drupal nevar atklāt, ka mysql ir palaists ... Es ceru, ka tas varētu būt pārveidots un ir palīdzēt citiem.
November 25th, 2008 10:40 Novembris 25, 2008 10:40
This is a fine series of articles! Šī ir smalka vairāki panti!
The only real change I would suggest is executing portsnap or cvsup after the base installation, before installing apache, mysql and php. Vienīgais reālas pārmaiņas es ieteiktu ir izpildes portsnap vai cvsup pēc bāzes uzstādīšana, pirms instal apache, mysql un php.