apt-get update
apt-get install git-core gcc autoconf make
apt-get install php5-dev php5-mysql
Now clone the phalcon git repository
git clone git://github.com/phalcon/cphalcon.git
cd cphalcon/build
Run the install file:
./install
Once installation completed, you can see output messages
Installing shared extensions: /usr/lib/php5/20131226/
Installing header files: /usr/include/php5/
Now edit your php.ini file for enabling phalcon
nano /etc/php5/apache2/php.ini
Add the phalcon extension at the end of the file:
extension=phalcon.so
Restart apache to make changes effect
service apache2 restart
Create a info.php file under your document root and paste the line
<?php phpinfo(); ?>
Run the info.php in web browser. Search for the keyword 'phalcon' in the resultant page. If you are finding it phalcon has been successfully configured. Otherwise you need to enable the module.
cd /etc/php5/mods-available
touch phalcon.ini
nano phalcon.ini
Add these lines and save
[phalcon]
extension = phalcon.so
Now make a phalcon symbolic link in apache2/conf.d folder
cd /etc/php5/apache2/conf.d
Now create a symbolic link 20-phalcon.ini
ln -s /etc/php5/mods-available/phalcon.ini 20-phalcon.ini
Restart apache to take effect
service apache2 restart
Now reload the info.php file on browser, you can see the phalcon module is showing there.
Sometimes you need to enable apache mod_rewrite module. To enable mod_rewrite:
a2enmod rewrite
Reboot apache to take effect
service apache2 restart
Still your phalcon project is not loading??
You need to make sure Allow Overrides is set to All under the /var/www
For doing this follow the steps:
a2dissite 000-default.conf
service apache2 reload
nano 000-default.conf
Add these lines within
<VirtualHost *:80>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<VirtualHost *:80>
a2ensite 000-default.conf
service apache2 reload
apt-get install git-core gcc autoconf make
apt-get install php5-dev php5-mysql
Now clone the phalcon git repository
git clone git://github.com/phalcon/cphalcon.git
cd cphalcon/build
Run the install file:
./install
Once installation completed, you can see output messages
Installing shared extensions: /usr/lib/php5/20131226/
Installing header files: /usr/include/php5/
Now edit your php.ini file for enabling phalcon
nano /etc/php5/apache2/php.ini
Add the phalcon extension at the end of the file:
extension=phalcon.so
Restart apache to make changes effect
service apache2 restart
Create a info.php file under your document root and paste the line
<?php phpinfo(); ?>
Run the info.php in web browser. Search for the keyword 'phalcon' in the resultant page. If you are finding it phalcon has been successfully configured. Otherwise you need to enable the module.
cd /etc/php5/mods-available
touch phalcon.ini
nano phalcon.ini
Add these lines and save
[phalcon]
extension = phalcon.so
Now make a phalcon symbolic link in apache2/conf.d folder
cd /etc/php5/apache2/conf.d
Now create a symbolic link 20-phalcon.ini
ln -s /etc/php5/mods-available/phalcon.ini 20-phalcon.ini
Restart apache to take effect
service apache2 restart
Now reload the info.php file on browser, you can see the phalcon module is showing there.
Sometimes you need to enable apache mod_rewrite module. To enable mod_rewrite:
a2enmod rewrite
Reboot apache to take effect
service apache2 restart
Still your phalcon project is not loading??
You need to make sure Allow Overrides is set to All under the /var/www
For doing this follow the steps:
a2dissite 000-default.conf
service apache2 reload
nano 000-default.conf
Add these lines within
<VirtualHost *:80>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<VirtualHost *:80>
a2ensite 000-default.conf
service apache2 reload
Comments
Post a Comment