mark15 Posted December 28, 2006 Share Posted December 28, 2006 Hey all,I have php-4.3.9-3.22 with Apache(httpd) 2.0.52-28.ent.centos4 on CentOS4.4. Both of these were included in the OS install. When I open a .php file, at first it was just the garbled code showing up in the browser, now the browser says "The file install.php is of type application/x-httpd-php, and seamonkey does not know how to handle this file. I need to install dokuwiki, and I can't because of this setback.Here are the changes I've made so far.In [b]/etc/httpd/conf/httpd.conf[/b], added:AddType application/x-httpd-php .phpAddType application/x-httpd-php .phtmlAddType application/x-httpd-php-source .phpsPHPIniDir "/etc/httpd/conf"This is what's in the [b]/etc/httpd/conf.d/php.conf[/b] file (called by httpd.conf):# PHP is an HTML-embedded scripting language which attempts to make it# easy for developers to write dynamically generated webpages.#LoadModule php4_module modules/libphp4.so## Cause the PHP interpreter to handle files with a .php extension.#<Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 9524288</Files>AddType application/x-x509-ca-cert .crtAddType application/x-httpd-php-source .phps## Add index.php to the list of files that will be served as directory# indexes.#DirectoryIndex index.phpI have also copied the php.ini file from /etc to /etc/httpd/conf. Am I missing something?? I am really stuck, and would appreciate any help!Thanks,Mike Link to comment https://forums.phpfreaks.com/topic/32085-installconfigure-problems-with-phpapache-on-centos-44/ Share on other sites More sharing options...
mark15 Posted December 29, 2006 Author Share Posted December 29, 2006 Ok, I uninstalled the PHP and Apache I had and installed php 5.2 and apache 2.2.3. Both seem to be working now, but when I try to locally open a php file (install.php for dokuWiki), I get a message from Seamonkey stating that it is of type application/x-httpd-php and does not know what to do with it, and to manually choose a program to open this file.Any ideas?Thanks all. Link to comment https://forums.phpfreaks.com/topic/32085-installconfigure-problems-with-phpapache-on-centos-44/#findComment-149429 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.