LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-07-2006, 12:36 PM   #1
imi@tux
LQ Newbie
 
Registered: Oct 2004
Location: Wasa, Finland
Distribution: debian
Posts: 23

Rep: Reputation: 15
apache 2.2 doesn't process .php... again


Hi happy hackers!

I'm having a debian system and when I updated (with apt-get) to apache 2.2 and php5 I encountered a problem... apache doesn't process php files anymore.

Code:
# /usr/sbin/apache2 -t -D DUMP_MODULES
Loaded Modules:
 core_module (static)
 log_config_module (static)
 logio_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 dir_module (shared)
 env_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 setenvif_module (shared)
 status_module (shared)
 php5_module (shared)
This means that php5 is loaded right?

In my /etc/apache2/apache2.conf I have:
Code:
DirectoryIndex index.html index.htm index.php default.php
and...

Code:
AddType application/x-httpd-php5 .php .php5
I'm pretty sure that I'm editing the right .conf, since typos trigger errors.

Is there anything else that I should check? How can I test that php even is working?
 
Old 11-07-2006, 02:07 PM   #2
imi@tux
LQ Newbie
 
Registered: Oct 2004
Location: Wasa, Finland
Distribution: debian
Posts: 23

Original Poster
Rep: Reputation: 15
Okay, apperantly my pages was cached in my browser. Everything seems to work fine now.

But I changed the row

Code:
AddType application/x-httpd-php5 .php .php5
to

Code:
AddType application/x-httpd-php .php
 
Old 12-16-2006, 07:54 AM   #3
Foomajick
LQ Newbie
 
Registered: Jan 2006
Location: Dublin
Distribution: Mandriva 2006 (desktop), Debian (server)
Posts: 16

Rep: Reputation: 0
I feel like such a fool... I've been apt-get --purging for two weeks now trying to get php5 and apache2.2 working together. Thanks for your post, this is exactly the same problem I had... CLEAR THE BROWSER CACHE!!!!

--eedjit
 
  


Reply



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
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
php will not process http_raw_post under apache/fedora cjokinen Programming 0 12-06-2005 05:13 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:57 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