isaac_golding Posted January 26, 2005 Report Share Posted January 26, 2005 Under the versions below with a fresh install of apache2 and mod_php5 I'm unable to get php files to load properly. They are offfered to the browser as downloadable files. Mandrake 10.1 apache2-2.0.50-7.2.101mdk apache2-mod_php5 Has anybody else run into this problem and a possible fix for it? Quote Link to comment Share on other sites More sharing options...
tyme Posted January 27, 2005 Report Share Posted January 27, 2005 First, try restarting apache: service httpd restart should restart it, IIRC If restarting doesn't do it, then go here and follow step #11 (httpd.conf may be located somewhere else). Restart apache when you're done. Quote Link to comment Share on other sites More sharing options...
isaac_golding Posted January 27, 2005 Author Report Share Posted January 27, 2005 (edited) I went and looked for the same general reference from step #11 and found the following: This was found in /etc/httpd/conf.d/70_mod_php5.conf and was referenced by httpd2.conf <IfDefine HAVE_PHP5> <IfModule !mod_php5.c> LoadModule php5_module extramodules/mod_php5.so </IfModule> </IfDefine> <IfModule mod_php5.c> PHPINIDir /etc </IfModule> <IfModule mod_mime.c> AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php5 AddType application/x-httpd-php .phtml AddType application/x-httpd-php-source .phps </IfModule> So just for fun i added : LoadModule php5_module extramodules/mod_php5.so directly into httpd2.conf and received the following error: service httpd restartStarting httpd2: Syntax error on line 214 of /etc/httpd/conf/httpd2.conf: Only first PHPINIDir directive honored per configuration tree - subsequent ones ignored [FAILED] so php5 is loading. I'm just getting the file offered to me as a downloadable file instead of it being executed. Further info is as follows. The web server loads. The generic mandrake welcome page loads when viewing http://localhost so images and html pages work fine. Only php seems to be dead in the water. My entire apache and php5 package list is below. PHP5 RPMS apache2-mod_php5 2.0.50_5.0.2-1mdk System/Servers The PHP5 HTML-embedded scripting language for use with apache2. libphp5_common5 5.0.2-1mdk Development/Other Shared library for PHP5 php5-ctype 5.0.2-1mdk System/Servers Ctype extension module for PHP php5-ftp 5.0.2-1mdk System/Servers FTP extension module for PHP php5-gettext 5.0.2-1mdk System/Servers Gettext extension module for PHP php5-ini 5.0.2-1mdk Development/Other INI files for PHP php5-pcre 5.0.2-1mdk System/Servers PCRE extension module for PHP php5-posix 5.0.2-1mdk System/Servers POSIX extension module for PHP php5-session 5.0.2-1mdk System/Servers Session extension module for PHP php5-sysvsem 5.0.2-1mdk System/Servers SysV sem extension module for PHP php5-sysvshm 5.0.2-1mdk System/Servers SysV shm extension module for PHP php5-yp 5.0.2-1mdk System/Servers NIS (yp) extension module for PHP APACHE RPMS apache-conf 2.0.50-4mdk System/Servers Configuration files for Apache apache2 2.0.50-7.2.101mdk System/Servers The most widely used Web server on the Internet. apache2-common 2.0.50-7.2.101mdk System/Servers Files common for apache2 and apache2-mod_perl installations apache2-mod_php5 2.0.50_5.0.2-1mdk System/Servers The PHP5 HTML-embedded scripting language for use with apache2. apache2-modules 2.0.50-7.2.101mdk System/Servers Standard modules for apache2 If more information is needed please let me know. I'm not an expert but im getting there. :-) Edited January 27, 2005 by isaac_golding Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.