Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
apache:install-apache-php-on-centos [2011-08-25 18:16:51]
garrett.plasky Approved
apache:install-apache-php-on-centos [2011-08-25 18:18:04]
garrett.plasky Approved
Line 35: Line 35:
 You can change the values passed to the configure lines of Apache and PHP to add/remove software from the build. Apache in this guide is built with DSO support and mod_rewrite as a shared module. PHP is built as an Apache DSO with MySQL, FTP, BCMath, magic quotes, PEAR, sockets, Zlib, and GD with TTF. You can change the values passed to the configure lines of Apache and PHP to add/remove software from the build. Apache in this guide is built with DSO support and mod_rewrite as a shared module. PHP is built as an Apache DSO with MySQL, FTP, BCMath, magic quotes, PEAR, sockets, Zlib, and GD with TTF.
  
-Finally, edit your Apache config:+Finally, edit your Apache config at <c>/usr/local/apache2/conf/mime.types</c> and add the following at the bottom:
  
-<sxh bash>vi /usr/local/apache2/conf/mime.types</sxh>+<sxh apache>application/x-httpd-php php phtml php4</sxh>
  
-Add <c>application/x-httpd-php php phtml php4</c> to the bottom. Now start Apache using <c>/usr/local/apache2/bin/apachectl start</c>.+Now start Apache using 
 + 
 +<sxh bash>/usr/local/apache2/bin/apachectl start</sxh>.
  
 Thats it, you're good to go! You may want to tweak your Apach configuration to suit your specific needs including adding Virtualhosts, however that is outside the scope of this article. Please refer to the [[http://httpd.apache.org/docs/2.2/|Apache Docs]] for that information. Thats it, you're good to go! You may want to tweak your Apach configuration to suit your specific needs including adding Virtualhosts, however that is outside the scope of this article. Please refer to the [[http://httpd.apache.org/docs/2.2/|Apache Docs]] for that information.
 {{tag>centos how-to apache}} {{tag>centos how-to apache}}