NOTES → Installing Phalcon on Unbuntu 14.10 in Virtual Box on a Win 7 OS.


These are my notes from install of Unbuntu Server 14.10 on a VM so I can run a local instance for Phalcon. Commands and other important information is in bold.


  1. Created New VM box on Virtual Box
  2. Set to Ubuntu 64 Bit
  3. Downloaded Ubuntu 14.10 Server. Mounted the iso via (Settings → Storage → Controller:IDE
  4. Changed the Network Adapter to Bridge Adapter.
  5. Booted up VM and followed Ubuntu Installation Prompts.
  6. Installed LAMP following this tutorial ( )
  7. Added a virtual host by copying the file 000-default.conf in the directory /etc/apache2/sites-available to phalcon.conf. Then I configured my -ssl phalcon.conf to match my desired parameters
  8. restarted the web service sudo service apache2 restart
  9. Went to IP address and Ubuntu Default page displays
  10. Enabled file by running sudo a2ensite phalcon.conf this creates a symlink to your file in sites-available and puts the link in sites-enabled.
  11. I reloaded the apache2 service sudo service apache2 reload
  12. I had to delete the 000-default.conf from the sites-enabled folder because it was conflicting with my new phalcon.conf file.
  13. Once that is deleted, restart apache2, and then go to your servers IP in your browser, you should see (if you put a index.php) in the DocumentRoot, the index.php file and its contents
  14. I installed git sudo apt-get install git
  15. Then I cloned my repo
  16. I git cloned the Phalcon repo and installed Phalcon
  17. cd cphalcon/build
  18. sudo ./install
  19. I added to the phalcon.ini file in /etc/php5/mods-available/phalcon.ini
  20. created symlink to phalcon.ini sudo ln -s /etc/php5/mods-available/phalcon.ini /etc/php5/apache2/conf.d/phalcon.ini
  21. I had to create my own cert for testing in SSL below is the code
 openssl genrsa -des3 -out server.key 2048
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
sudo cp server.crt /etc/ssl/certs
sudo cp server.key /etc/ssl/private

22. Created Symlinks ssl.load , ssl.conf, socache_shmcb.load from /etc/apache2/mods-available/ to /etc/apache2/mods-enabled

23.Restarted Apache

24. So far it seems to work.

Like what you read? Give Tony Mucci a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.