NOTES → Phalcon 2.0 Install with Virtual Box Running CentOS 6.6 on a Windows 7 Machine


THE INTRO

These are my notes for installing CentOS 6.6 on a VM in Virtual Box and configuring my dev environment. This is not a tutorial, just a bunch of notes, that maybe will help you to configure yours if you run into problems. Good luck.

THE NOTES

  1. Downloaded CentOS Minimum iso from http://repos.lax.quadranet.com/centos/6.6/isos/x86_64/
  2. Downloaded and installed Virtual Box on my local machine
  3. Created a new VM with 2gb of RAM and a 8GB HD
  4. Linked the Controller :IDE (Settings → Storage) to my CentOS iso
  5. Ran VM and followed the installation prompts for CentOS
  6. Added new user to CentOS
  7. Installed the packages listed on : http://docs.phalconphp.com/en/latest/reference/install.html#linux-solaris
  8. Was getting this issue: PYCURL ERROR 6 — “Couldn’t resolve host ‘mirrorlist.centos.org’”
  9. Fixed the issue by going to my network config file for my adapter /etc/sysconfig/network-scripts/ifcfg-eth0 (← That’s a zero)
  10. Changed the NM_CONTROLLED to no. Saved Changes
  11. Reset the network adapter:
ifdown eth0
ifup eth0
  1. Then went into Apache’s httpd.conf file in /etc/httpd/conf/httpd.conf and enabled Virtual Hosts (see https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-6) its a great tutorial on how to set these up
  2. Then I had to change the file /etc/selinux/config file and changed selinux to disabled
SELINUX=disabled

3. saved the file

4. I also had to changed on Virtual Box’s Network settings to Bridged Connection. This allowd me to get a IP address from the router.

then I had to disable iptables so that my dev environment wouldn’t block incoming traffic on the network

sudo service iptables stop

4. once I did this, everything seems to work

EDIT: And after all of this, I found out that we are using Unbuntu lol. Go figure!

Show your support

Clapping shows how much you appreciated Tony Mucci’s story.