title: installing php and apache on Amazon EC2 instances
body: <p>I am trying to install PHP on amazon ec2 instances but when I run the following command:
  sudo yum -y install httpd php54-fpm php54-common </p>
  
  <p>it gives me the following errors:</p>
  
  <pre><code>     Loaded plugins: priorities, security, update-motd, upgrade-helper
      Setting up Install Process
      Resolving Dependencies
     --&gt; Running transaction check
     ---&gt; Package httpd.x86_64 0:2.2.25-1.0.amzn1 will be installed
     --&gt; Processing Dependency: httpd-tools = 2.2.25-1.0.amzn1 for package: httpd-2.2.25-     1.0.amzn1.x86_64
     --&gt; Processing Dependency: apr-util-ldap for package: httpd-2.2.25-1.0.amzn1.x86_64
     ---&gt; Package php54-common.x86_64 0:5.4.17-2.41.amzn1 will be installed
     ---&gt; Package php54-fpm.x86_64 0:5.4.17-2.41.amzn1 will be installed
      --&gt; Running transaction check
    enter code here ---&gt; Package apr-util-ldap.x86_64 0:1.4.1-4.14.amzn1 will be installed
     ---&gt; Package httpd-tools.x86_64 0:2.2.25-1.0.amzn1 will be installed
  --&gt; Processing Conflict: httpd24-tools-2.4.6-2.47.amzn1.x86_64 conflicts httpd-tools &lt; 2.4.6
  --&gt; Processing Conflict: php54-common-5.4.17-2.41.amzn1.x86_64 conflicts php-common &lt; 5.4.17-2.41.amzn1
  --&gt; Finished Dependency Resolution
  Error: httpd24-tools conflicts with httpd-tools-2.2.25-1.0.amzn1.x86_64
  Error: php54-common conflicts with php-common-5.3.27-1.0.amzn1.x86_64
   You could try using --skip-broken to work around the problem
   You could try running: rpm -Va --nofiles --nodigest
  </code></pre>
  
  <p>Thanks in advance.</p>