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

  1. 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

  2. If you're prompted, select “use Apache 2.x instead”. Ja jūs pamudināja, izvēlieties "izmantošana Apache 2.x vietā".
  3. 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

  4. 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.
  5. 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

  6. 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.
  7. 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:
    1. Go to Apache configuration file location by cd /usr/local/etc/apache2/ Iet uz Apache konfigurācijas failu vietu, cd / usr/local/etc/apache2 /
    2. Edit Apache configuration file by vi httpd.conf Edit Apache konfigurācijas failu ar vi httpd.conf
    3. 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

  8. 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.
  9. 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.
  10. 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.


27 Responses to “Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5” 27 Atbildes uz "instalēšana Web serveri FreeBSD 6,0 ar Apache 2.2, MySQL 5.0 un PHP 5 - Part 5"

Pages: [2] Lapas: [2] 1 1 » » Show All Rādīt visas

  1. data trucker datu sakņkopis
    May 13th, 2009 08:18 Maijs 13, 2009 08:18
    27 27

    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.

  2. fred Fred
    November 25th, 2008 10:40 Novembris 25, 2008 10:40
    26 26

    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.

Pages: [2] Lapas: [2] 1 1 » » Show All Rādīt visas

Leave a Reply Atstāj atbildi

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Jūs varat izmantot šos tagus: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Parakstīties uz komentāriem iezīme ir atspējota. To receive notification of latest comments posted, subscribe to Lai saņemtu paziņojumu par jaunāko komentāri norīkots darbā, abonēt My Digital Life Comments RSS feed Mani Digital Life Comments RSS feed or vai register to receive reģistrēties, lai saņemtu new comments in daily email digest. jauni komentāri ikdienas e-pasta sagremot.
Custom Search

New Articles Jauns pants

Incoming Search Terms for the Article Incoming Meklēt Noteikumi par pants

freeBSD php FreeBSD php - -- php freebsd php FreeBSD - -- freebsd apache mysql php FreeBSD apache mysql php - -- freebsd apache FreeBSD apache - -- apache2 freebsd apache2 FreeBSD - -- freebsd apache php mysql FreeBSD apache php mysql - -- freebsd apache2 FreeBSD apache2 - -- freebsd apache php FreeBSD apache php - -- freebsd php5 FreeBSD php5 - -- freebsd apache mysql FreeBSD apache mysql - -- apache freebsd apache FreeBSD - -- apache php mysql freebsd apache php mysql FreeBSD - -- freebsd apache2 php5 FreeBSD apache2 php5 - -- php apache freebsd php apache FreeBSD - -- php5 freebsd php5 FreeBSD - -- apache php freebsd apache php FreeBSD - -- freebsd apache php5 FreeBSD apache php5 - -- freebsd apache22 php5 FreeBSD apache22 php5 - -- apache php5 freebsd apache php5 FreeBSD - -- apache2 php5 freebsd apache2 php5 FreeBSD - -- freebsd apache22 php FreeBSD apache22 php - -- freebsd php mysql FreeBSD php mysql - -- apache mysql php freebsd apache mysql php FreeBSD - -- install php freebsd instalēt php FreeBSD - -- freebsd apache2 php FreeBSD apache2 php - -- installing apache on freebsd ierīkošanai apache uz FreeBSD - -- freebsd php apache FreeBSD php apache - -- php5 apache2 freebsd php5 apache2 FreeBSD - -- libphp5.so freebsd libphp5.so FreeBSD - -- apache2 php freebsd apache2 php FreeBSD - -- apache22 php apache22 php - -- php5 apache freebsd php5 apache FreeBSD - -- installing apache freebsd ierīkošanai apache FreeBSD - -- freeBSD php5-extensions FreeBSD php5-paplašinājumi - -- install php5 freebsd install php5 FreeBSD - -- freebsd mysql php apache FreeBSD mysql php apache - -- install php on freebsd instalēt php uz FreeBSD - -- freebsd apache install FreeBSD apache instalēt - -- freebsd install apache FreeBSD install apache - -- apache22 php5 apache22 php5 - -- download apache for freebsd download apache uz FreeBSD - -- freebsd install apache2 FreeBSD install apache2 - -- apache 2.2 php5 freebsd apache 2,2 php5 FreeBSD - -- apache22 php5 freebsd apache22 php5 FreeBSD - -- freebsd install apache php FreeBSD install apache php - -- freebsd php5 apache2 FreeBSD php5 apache2 - -- php mysql freebsd php mysql FreeBSD - -- freebsd php extensions FreeBSD PHP paplašinājumus - -- php on freebsd php par FreeBSD - -- Apache2 on FreeBSD Apache2 uz FreeBSD - -- freebsd install apache php mysql FreeBSD install apache php mysql - -- freebsd php5 apache22 FreeBSD php5 apache22 - -- php for freebsd php par FreeBSD - -- install apache freebsd install apache FreeBSD - -- apache mysql freebsd apache mysql FreeBSD - -- freebsd libphp5.so FreeBSD libphp5.so - -- apache22 php freebsd apache22 php FreeBSD - -- freebsd php install FreeBSD PHP instalēt - -- apache 2.2 php freebsd apache 2,2 php FreeBSD - -- installing php on freebsd ierīkošanai php uz FreeBSD - -- all viss - -- freebsd install php5 FreeBSD install php5 - -- freebsd mysql apache php FreeBSD mysql apache php - -- FreeBSD apache 2.2 PHP5 FreeBSD apache 2,2 PHP5 - -- freebsd php port FreeBSD PHP ostas - -- install apache PHP mysql freebsd install apache PHP mysql FreeBSD - -- freebsd php5 apache FreeBSD php5 apache - -- download apache freebsd download apache FreeBSD - -- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 Instalēšana Web serveri FreeBSD 6,0 ar Apache 2.2, MySQL 5.0 un PHP 5 - -- FreeBSD libphp5 FreeBSD libphp5 - -- how to install php on freebsd to, kā uzstādīt php par FreeBSD - -- freebsd php mysql apache FreeBSD php mysql apache - -- install php apache freebsd instalēt php apache FreeBSD - -- FreeBSD + Apache FreeBSD + Apache - -- freebsd php5 port FreeBSD php5 ostas - --