[ ] SQLITE Enable SQLite3 support in apr-util [X] DEVRANDOM Use /dev/random or compatible in aprMarque as opcoes apropriadas para sua necessidade no python26 2.6.6: [X] THREADS Enable thread support [ ] HUGE_STACK_SIZE Use a larger thread stack [ ] SEM Use POSIX semaphores (experimental) [ ] PTH Use GNU Pth for threading/multiprocessing [X] UCS4 Use UCS4 for unicode support [X] PYMALLOC Use python's internal malloc [ ] IPV6 Enable IPv6 support [ ] FPECTL Enable floating point exception handlingDepois de realizado a instalacao, vamos habilitar para o Apache inicializar quando o FreeBSD for reiniciado. Editar o arquivo rc.conf.# ee /etc/rc.confAdicionando ao final do arquivo as linhas abaixo, depois salve o arquivo e saia.# Apache apache22_enable="YES" accf_data_load="YES" accf_http_load="YES"Agora adicione a linha abaixo no /etc/hosts: # ee /etc/hosts 127.0.0.1 "hostname" Depois edite o arquivo httpd.conf: # ee /usr/local/etc/apache22/httpd.confServername "hostname":80Agora vamos iniciar o Apache com o seguinte comando.# /usr/local/etc/rc.d/apache22 start# rehashVamos agora testar o Apache. Use um browser para conectar a:# http://"ip_do_servidor"Se tudo estiver certo sera exibido It works!.3- Instalando o PHPPara instalar o PHP acesse o diretorio:# cd /usr/ports/lang/php52Configure as opcoes de compilacao do PHP 52 com o comando:# make configMarque as opcoes apropriadas para sua necessidade no php52 5.2.14_1:[X] CLI Build CLI version [X] CGI Build CGI version [X] APACHE Build Apache module [ ] DEBUG Enable debug [X] SUHOSIN Enable Suhosin protection system (not for jails) [ ] MULTIBYTE Enable zend multibyte support [ ] IPV6 Enable ipv6 support [ ] MAILHEAD Enable mail header patch [ ] REDIRECT Enable force-cgi-redirect support (CGI only) [ ] DISCARD Enable discard-path support (CGI only) [X] FASTCGI Enable fastcgi support (CGI only) [ ] FPM Enable fastcgi process manager (CGI only)[X] PATHINFO Enable path-info-check support (CGI only)Acesse o diretorio das extensoes do PHP:# cd ../php52-extensions/Configure as opcoes de compilacao do php52-extensions com o comando:# make configMarque as opcoes apropriadas para sua necessidade no php52-extensions 1.4:[ ] BCMATH bc style precision math functions [X] BZ2 bzip2 library support[ ] CALENDAR calendar conversion support [X] CTYPE ctype functions [ ] CURL CURL support [ ] DBA dba support [ ] DBASE dBase library support[X] DOM DOM support [ ] EXIF EXIF support [ ] FILEINFO fileinfo support [X] FILTER input filter support [ ] FRIBIDI FriBidi support [ ] FTP FTP support [X] GD GD library support [X] GETTEXT gettext library support [ ] GMP GNU MP support [X] HASH HASH Message Digest Framework [X] ICONV iconv support [ ] IMAP IMAP support [ ] INTERBASE Interbase 6 database support (Firebird) [X] JSON JavaScript Object Serialization support [ ] LDAP OpenLDAP support [X] MBSTRING multibyte string support [X] MCRYPT Encryption support [X] MHASH Crypto-hashing support [ ] MING ming shockwave flash support [ ] MSSQL MS-SQL database support [X] MYSQL MySQL database support [ ] MYSQLI MySQLi database support [ ] NCURSES ncurses support (CLI only) [ ] ODBC unixODBC support [X] OPENSSL OpenSSL support [ ] PCNTL pcntl support (CLI only) [X] PCRE Perl Compatible Regular Expression support [X] PDF PDFlib support (implies GD) [X] PDO PHP Data Objects Interface (PDO)[ ] PDO_SQLITE PDO sqlite