LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-30-2006, 01:56 PM   #16
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46

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
 
Old 01-30-2006, 03:10 PM   #17
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
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.. (;
 
Old 01-31-2006, 04:28 AM   #18
Sp@rticus
LQ Newbie
 
Registered: Aug 2005
Location: Johannesburg, SA
Distribution: SUSE 9.3
Posts: 13

Original Poster
Rep: Reputation: 0
Smile 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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 9.3/apache2/php4 - Firefox tries to download index.php, other *php pages work stefanlasiewski SUSE / openSUSE 1 01-18-2006 06:12 PM
When I try to download a script (.sh) or even other files, the browser opens it... pujolasdf Linux - Newbie 5 03-24-2005 01:49 PM
Download Manager - download BIG files AndrewMSConvert Linux - General 3 11-09-2003 06:26 AM
Browser closes on download tangaz Linux - Software 4 10-25-2003 08:14 AM
irc broken; trys to connect to localhost.. tux_rox Linux - Software 2 06-23-2003 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration