• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP module and apache are not working well

openmind

Junior Member
Hi

I need a little help. I think I have done something bad to my computer, especially to Apache2 HTTP server.
When I getting index file via console command GET, i have pure HTML, as I need. But when I try to get it via browser
I receive a window with "You have chosen to open PHTML" file and "what to do" question
I think php module is not loaded, am I right?

Code:
# apache2ctl -l
Compiled in modules:
  core.c
  mod_log_config.c
  mod_logio.c
  prefork.c
  http_core.c
  mod_so.c
should I do something with libapache2-mod-php5? According to aptitude program it is installed. How can i load it in Apache?
Or maybe you can advice something batter?
 
Last edited:
Check /etc/apache2/mods-enabled, there should be a symlink in there for each of the non-static modules that are enabled. Create the symlink and do a full restart of Apache.

Or just purging and reinstalling the module package will likely fix it as well.
 
At first, thank you for answer 🙂

there is content of /etc/apache2/mods-enabled/, I checked all links is fine
Code:
$ ls -m /etc/apache2/mods-enabled/
actions.conf, actions.load, alias.conf, alias.load, auth_basic.load, authn_file.load, authz_default.load, authz_groupfile.load,
authz_host.load, authz_user.load, autoindex.conf, autoindex.load, cgi.load, deflate.conf, deflate.load, dir.conf, dir.load, env.load,
mime.conf, mime.load, negotiation.conf, negotiation.load,[B] php5.conf, php5.load,[/B] python.load, setenvif.conf, setenvif.load, status.conf,
status.load
I reinstalled libapache2-mod-php5, but still not working. Maybe something wrong with configuration, I was thinking maybe there is some way to tell browser that server sanding HTML files, not PHTML?:hmm:
 
Maybe I will reinstall apache, anyway system was pretty dirty, so maybe it is good thing to start with pure system 🙂
 
Back
Top