LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Browser trys to download php files (https://www.linuxquestions.org/questions/linux-software-2/browser-trys-to-download-php-files-409293/)

KimVette 01-30-2006 01:56 PM

Actually on SuSE the preferred location to load the php module is in /etc/sysconfig/apache2

Look for a line reading:

Code:

APACHE_MODULES="access actions  {and so forth. . . it can be a long list and yours will be different from mine} rewrite setenvif {. . .}"
Make sure that php4 is included in that line, and php5 if you're intending to run php 5.x

Once you make that change you will need to restart apache. Do:

Code:

rcapache2 restart

Artanicus 01-30-2006 03:10 PM

make uninstall should work, but it wont break anything if you don't uninstall it.

When you install it with YaST, you'll loose the nice simple httpd.conf layout and it will be spread allover your system, so then reading the SuSE specific docs will be neccesary.. Back when I had SuSE I just ended up running apache by chrooting my slackware disk, the configspread was too compilcated for me.. (;

Sp@rticus 01-31-2006 04:28 AM

Browser trys to download php files
 
ok, did what Artanicus suggested and Installed from YAST, way easier although I feel I would have learnt more doing it via source than from YAST, but I suppose I could do it again on another machine via source! It still tried to dowload the PHP file but then when I edited /etc/sysconfig/apache2 as KimVette suggested. I added PHP4 and PHP5 just in case and restarted apache. Does this file now replace the httpd.conf file or is it to be used in conjunction with httpd.conf...will have to read the SUSE help docs as suggested!

Well it works now ;) both on php files ;) and on html,htm files ;) this is gr8 Thanks so much for all the help from everybody!!!! :) :) Now all I need to do is install MySql and phpMyAdmin!

But once again thanks for all the help!


All times are GMT -5. The time now is 04:49 AM.