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.
- Created New VM box on Virtual Box
- Set to Ubuntu 64 Bit
- Downloaded Ubuntu 14.10 Server. Mounted the iso via (Settings → Storage → Controller:IDE
- Changed the Network Adapter to Bridge Adapter.
- Booted up VM and followed Ubuntu Installation Prompts.
- Installed LAMP following this tutorial (https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu )
- 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
- restarted the web service sudo service apache2 restart
- Went to IP address and Ubuntu Default page displays
- 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.
- I reloaded the apache2 service sudo service apache2 reload
- I had to delete the 000-default.conf from the sites-enabled folder because it was conflicting with my new phalcon.conf file.
- 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
- I installed git sudo apt-get install git
- Then I cloned my repo
- I git cloned the Phalcon repo and installed Phalcon
- cd cphalcon/build
- sudo ./install
- I added extension=phalcon.so to the phalcon.ini file in /etc/php5/mods-available/phalcon.ini
- created symlink to phalcon.ini sudo ln -s /etc/php5/mods-available/phalcon.ini /etc/php5/apache2/conf.d/phalcon.ini
- 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
24. So far it seems to work.