Project VersionsSearchTabla de ContenidosTema anteriorPróximo temaEsta página |
Instalación¶Las extensiones de PHP requieren un método diferente de instalación a los frameworks o librerias tradicionales. Puedes descargar tanto un paquete binario para tu sistema o compilarlo desde el código fuente.
Windows¶Para usar Phalcon en Windows debes descargar un DLL y ubicarlo en el directorio de extensiones. Edita el php.ini y agrega al final:
Reiniciar el servidor web. El siguiente screencast explica como instalar Phalcon en Windows paso a paso: Guías Relacionadas¶Linux/Solaris/Mac¶On a Linux/Solaris/Mac system you can easily compile and install the extension from the source code: Requirements¶Prerequisite packages are:
Specific packages for common platforms: #Ubuntu
sudo apt-get install git-core gcc autoconf
sudo apt-get install php5-dev php5-mysql
#Suse
sudo yast -i gcc make autoconf2.13
sudo yast -i php5-devel php5-mysql
#CentOS/RedHat
sudo yum install gcc make
sudo yum install php-devel
#Solaris
pkg install gcc-45
pkg install php-53 apache-php53
Compilation¶Creating the extension: git clone git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
Add extension to your php.ini extension=phalcon.so
Restart the webserver. Phalcon automatically detects your architecture, however, you can force the compilation for a specific architecture: sudo ./install 32bits
sudo ./install 64bits
sudo ./install safe
FreeBSD¶A port is available for FreeBSD. Just only need these simple line commands to install it: pkg_add -r phalcon
or export CFLAGS="-O2 -fno-delete-null-pointer-checks"
cd /usr/ports/www/phalcon && make install clean
Installation Notes¶Installation notes for Web Servers: |