Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache does not recognise .php-files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
parre
n00b
n00b


Joined: 09 Jul 2004
Posts: 10

PostPosted: Tue Mar 29, 2005 1:43 pm    Post subject: Apache does not recognise .php-files Reply with quote

Hi!

I have installed Apache-2.0.53 and mod_php-4.3.10 (+ php-4.3.10). I have APACHE2_OPTS="-D PHP4" in my /etc/conf.d/apache2. Still every time I try to run a .php-file I just get a download dialoge.

Any ideas what might be the problem?
Back to top
View user's profile Send private message
c4
Guru
Guru


Joined: 21 Feb 2004
Posts: 312
Location: Sweden

PostPosted: Tue Mar 29, 2005 3:32 pm    Post subject: Reply with quote

In httpd.conf the line
Code:
Include conf/modules.d/*.conf
under # Extra modules needs to be uncommented.
and then make sure that modules.d/70_mod_php.conf has the php file-types enabled
Code:

<IfModule !sapi_apache2.c>
   LoadModule php4_module    modules/libphp4.so
</IfModule>
<IfModule mod_mime.c>
   AddType application/x-httpd-php .php .phtml .php3 .php4 .phps
</IfModule>

_________________
AMD64 Gentoo Hardened server
AMD64 Xubuntu Desktop
X86 Dreamlinux Vaio laptop
Back to top
View user's profile Send private message
martoni
Apprentice
Apprentice


Joined: 16 Jan 2004
Posts: 244
Location: Tyresö, Sweden

PostPosted: Tue Mar 29, 2005 3:35 pm    Post subject: Reply with quote

Have you looked at this thread?
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Mar 29, 2005 3:46 pm    Post subject: Reply with quote

Moved from Portage & Programming in favour of https://forums.gentoo.org/viewtopic-t-307011.html - thanks martoni!
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum