Linux: apache2 do not load php...

mariogamer

Well-Known Member
OP
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
After installing php7,and running sudo service apache2 restart, php script do not load...

For example,when returning php info:

<?php
phpinfo();
?>

Firefox supply me to download the file...

Any idea on how I can fix?
 

mariogamer

Well-Known Member
OP
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
Opening the file with my browser.

Trying with localhost...

--------------------- MERGED ---------------------------

Give me nothing at all...
 
D

Deleted User

Guest
Opening the file with my browser.

Trying with localhost...
Of course it's not gonna work if you drag and drop it. By doing that you're instructing the browser to open the file instead of requesting that apache renders the page then displays it.
 

mariogamer

Well-Known Member
OP
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
Ubuntu 16.04
sudo apt-get install php
Code:
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#    /etc/apache2/
#    |-- apache2.conf
#    |    `--  ports.conf
#    |-- mods-enabled
#    |    |-- *.load
#    |    `-- *.conf
#    |-- conf-enabled
#    |    `-- *.conf
#     `-- sites-enabled
#         `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
# * ports.conf is always included from the main configuration file. It is
#   supposed to determine listening ports for incoming connections which can be
#   customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
#   directories contain particular configuration snippets which manage modules,
#   global configuration fragments, or virtual host configurations,
#   respectively.
#
#   They are activated by symlinking available configuration files from their
#   respective *-available/ counterparts. These should be managed by using our
#   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
#   their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
#   the default configuration, apache2 needs to be started/stopped with
#   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
#   work with the default configuration.


# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Require all denied
</Directory>

<Directory /usr/share>
    AllowOverride None
    Require all granted
</Directory>

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

#<Directory /srv/>
#    Options Indexes FollowSymLinks
#    AllowOverride None
#    Require all granted
#</Directory>




# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
    Require all denied
</FilesMatch>


#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

--------------------- MERGED ---------------------------

Maybe adding a line in apache2.conf... I'll try...
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
Does it work if you host a static HTML page or directly visit the php page? I have had a few installs default to different ways of interpreting things, one which might send PHP down the list.
Find httpd.conf (I hope it has not changed in recent years) and then the DirectoryIndex thing within it, it should be fairly obvious from there how to change priorities for things. Otherwise yeah I am going to start looking at what you have installed, firewall issues.
 

mariogamer

Well-Known Member
OP
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
Static html?

--------------------- MERGED ---------------------------

mods-available:
. deflate.load proxy.conf
.. dialup.load proxy_connect.load
access_compat.load dir.conf proxy_express.load
actions.conf dir.load proxy_fcgi.load
actions.load dump_io.load proxy_fdpass.load
alias.conf echo.load proxy_ftp.conf
alias.load env.load proxy_ftp.load
allowmethods.load expires.load proxy_html.conf
asis.load ext_filter.load proxy_html.load
auth_basic.load file_cache.load proxy_http.load
auth_digest.load filter.load proxy.load
auth_form.load headers.load proxy_scgi.load
authn_anon.load heartbeat.load proxy_wstunnel.load
authn_core.load heartmonitor.load ratelimit.load
authn_dbd.load ident.load reflector.load
authn_dbm.load include.load remoteip.load
authn_file.load info.conf reqtimeout.conf
authn_socache.load info.load reqtimeout.load
authnz_fcgi.load lbmethod_bybusyness.load request.load
authnz_ldap.load lbmethod_byrequests.load rewrite.load
authz_core.load lbmethod_bytraffic.load sed.load
authz_dbd.load lbmethod_heartbeat.load session_cookie.load
authz_dbm.load ldap.conf session_crypto.load
authz_groupfile.load ldap.load session_dbd.load
authz_host.load log_debug.load session.load
authz_owner.load log_forensic.load setenvif.conf
authz_user.load lua.load setenvif.load
autoindex.conf macro.load slotmem_plain.load
autoindex.load mime.conf slotmem_shm.load
buffer.load mime.load socache_dbm.load
cache_disk.conf mime_magic.conf socache_memcache.load
cache_disk.load mime_magic.load socache_shmcb.load
cache.load mpm_event.conf speling.load
cache_socache.load mpm_event.load ssl.conf
cgid.conf mpm_prefork.conf ssl.load
cgid.load mpm_prefork.load status.conf
cgi.load mpm_worker.conf status.load
charset_lite.load mpm_worker.load substitute.load
data.load negotiation.conf suexec.load
dav_fs.conf negotiation.load unique_id.load
dav_fs.load php5.conf userdir.conf
dav.load php5.load userdir.load
dav_lock.load proxy_ajp.load usertrack.load
dbd.load proxy_balancer.conf vhost_alias.load
deflate.conf proxy_balancer.load xml2enc.load

mods-enabled:
. authz_core.load dir.load negotiation.load
.. authz_host.load env.load setenvif.conf
access_compat.load authz_user.load filter.load setenvif.load
alias.conf autoindex.conf mime.conf status.conf
alias.load autoindex.load mime.load status.load
auth_basic.load deflate.conf mpm_prefork.conf
authn_core.load deflate.load mpm_prefork.load
authn_file.load dir.conf negotiation.conf
 

Z-WolF

Member
Newcomer
Joined
Dec 29, 2015
Messages
17
Trophies
0
Age
37
XP
416
Country
Chile
Static html?
yeah, a file ending in .html inside your web folder like "index.html"

normally:

"/var/www/html/index.php" is the first thing you see when you put "http://localhost" in your browser.

if you have a file there with a name that it is not "index.html" or "index.php" then you have to call it differently in your browser:

http://localhost/filename.php
 
  • Like
Reactions: Deleted User

Z-WolF

Member
Newcomer
Joined
Dec 29, 2015
Messages
17
Trophies
0
Age
37
XP
416
Country
Chile
please execute this command
Code:
php -v
and post the result
also execute this one
Code:
ls -lA /etc/apache2/mods*
and post the result (is a long one)
 

mariogamer

Well-Known Member
OP
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
PHP 7.0.4-7ubuntu2 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

mods:

total 536
-rw-r--r-- 1 root root 100 Jan 7 2014 access_compat.load
-rw-r--r-- 1 root root 377 Jan 3 2014 actions.conf
-rw-r--r-- 1 root root 66 Jan 3 2014 actions.load
-rw-r--r-- 1 root root 843 Jan 3 2014 alias.conf
-rw-r--r-- 1 root root 62 Jan 3 2014 alias.load
-rw-r--r-- 1 root root 76 Jan 3 2014 allowmethods.load
-rw-r--r-- 1 root root 76 Jan 3 2014 asis.load
-rw-r--r-- 1 root root 94 Jan 3 2014 auth_basic.load
-rw-r--r-- 1 root root 96 Jan 3 2014 auth_digest.load
-rw-r--r-- 1 root root 100 Jan 3 2014 auth_form.load
-rw-r--r-- 1 root root 72 Jan 3 2014 authn_anon.load
-rw-r--r-- 1 root root 72 Jan 3 2014 authn_core.load
-rw-r--r-- 1 root root 85 Jan 3 2014 authn_dbd.load
-rw-r--r-- 1 root root 70 Jan 3 2014 authn_dbm.load
-rw-r--r-- 1 root root 72 Jan 3 2014 authn_file.load
-rw-r--r-- 1 root root 78 Jan 3 2014 authn_socache.load
-rw-r--r-- 1 root root 74 Nov 8 2014 authnz_fcgi.load
-rw-r--r-- 1 root root 90 Jan 3 2014 authnz_ldap.load
-rw-r--r-- 1 root root 72 Jan 3 2014 authz_core.load
-rw-r--r-- 1 root root 96 Jan 3 2014 authz_dbd.load
-rw-r--r-- 1 root root 92 Jan 3 2014 authz_dbm.load
-rw-r--r-- 1 root root 104 Jan 3 2014 authz_groupfile.load
-rw-r--r-- 1 root root 94 Jan 3 2014 authz_host.load
-rw-r--r-- 1 root root 74 Jan 3 2014 authz_owner.load
-rw-r--r-- 1 root root 94 Jan 3 2014 authz_user.load
-rw-r--r-- 1 root root 3374 Jan 3 2014 autoindex.conf
-rw-r--r-- 1 root root 70 Jan 3 2014 autoindex.load
-rw-r--r-- 1 root root 64 Jan 3 2014 buffer.load
-rw-r--r-- 1 root root 889 Jan 3 2014 cache_disk.conf
-rw-r--r-- 1 root root 89 Jan 3 2014 cache_disk.load
-rw-r--r-- 1 root root 62 Jan 3 2014 cache.load
-rw-r--r-- 1 root root 95 Jan 3 2014 cache_socache.load
-rw-r--r-- 1 root root 115 Jan 3 2014 cgid.conf
-rw-r--r-- 1 root root 60 Jan 3 2014 cgid.load
-rw-r--r-- 1 root root 58 Jan 3 2014 cgi.load
-rw-r--r-- 1 root root 76 Jan 3 2014 charset_lite.load
-rw-r--r-- 1 root root 60 Jan 3 2014 data.load
-rw-r--r-- 1 root root 83 Jan 3 2014 dav_fs.conf
-rw-r--r-- 1 root root 79 Jan 3 2014 dav_fs.load
-rw-r--r-- 1 root root 58 Jan 3 2014 dav.load
-rw-r--r-- 1 root root 68 Jan 3 2014 dav_lock.load
-rw-r--r-- 1 root root 58 Jan 3 2014 dbd.load
-rw-r--r-- 1 root root 522 Jan 3 2014 deflate.conf
-rw-r--r-- 1 root root 84 Jan 3 2014 deflate.load
-rw-r--r-- 1 root root 64 Jan 3 2014 dialup.load
-rw-r--r-- 1 root root 157 Jan 3 2014 dir.conf
-rw-r--r-- 1 root root 58 Jan 3 2014 dir.load
-rw-r--r-- 1 root root 64 Jan 3 2014 dump_io.load
-rw-r--r-- 1 root root 60 Jan 3 2014 echo.load
-rw-r--r-- 1 root root 58 Jan 3 2014 env.load
-rw-r--r-- 1 root root 66 Jan 3 2014 expires.load
-rw-r--r-- 1 root root 72 Jan 3 2014 ext_filter.load
-rw-r--r-- 1 root root 89 Jan 3 2014 file_cache.load
-rw-r--r-- 1 root root 64 Jan 3 2014 filter.load
-rw-r--r-- 1 root root 66 Jan 3 2014 headers.load
-rw-r--r-- 1 root root 176 Jan 3 2014 heartbeat.load
-rw-r--r-- 1 root root 182 Jan 3 2014 heartmonitor.load
-rw-r--r-- 1 root root 62 Sep 23 2014 ident.load
-rw-r--r-- 1 root root 82 Jan 3 2014 include.load
-rw-r--r-- 1 root root 402 Jan 3 2014 info.conf
-rw-r--r-- 1 root root 60 Jan 3 2014 info.load
-rw-r--r-- 1 root root 116 Jan 7 2014 lbmethod_bybusyness.load
-rw-r--r-- 1 root root 116 Jan 7 2014 lbmethod_byrequests.load
-rw-r--r-- 1 root root 114 Jan 7 2014 lbmethod_bytraffic.load
-rw-r--r-- 1 root root 114 Jan 7 2014 lbmethod_heartbeat.load
-rw-r--r-- 1 root root 121 Jan 3 2014 ldap.conf
-rw-r--r-- 1 root root 60 Jan 3 2014 ldap.load
-rw-r--r-- 1 root root 70 Jan 3 2014 log_debug.load
-rw-r--r-- 1 root root 76 Jan 3 2014 log_forensic.load
-rw-r--r-- 1 root root 58 Jan 3 2014 lua.load
-rw-r--r-- 1 root root 62 Jan 3 2014 macro.load
-rw-r--r-- 1 root root 7639 Jan 3 2014 mime.conf
-rw-r--r-- 1 root root 60 Jan 3 2014 mime.load
-rw-r--r-- 1 root root 120 Jan 3 2014 mime_magic.conf
-rw-r--r-- 1 root root 72 Jan 3 2014 mime_magic.load
-rw-r--r-- 1 root root 668 Jan 3 2014 mpm_event.conf
-rw-r--r-- 1 root root 106 Jul 24 2014 mpm_event.load
-rw-r--r-- 1 root root 571 Jan 3 2014 mpm_prefork.conf
-rw-r--r-- 1 root root 108 Jul 24 2014 mpm_prefork.load
-rw-r--r-- 1 root root 836 Jan 3 2014 mpm_worker.conf
-rw-r--r-- 1 root root 107 Jul 24 2014 mpm_worker.load
-rw-r--r-- 1 root root 724 Jan 3 2014 negotiation.conf
-rw-r--r-- 1 root root 74 Jan 3 2014 negotiation.load
-rw-r--r-- 1 root root 865 Oct 27 2015 php5.conf
-rw-r--r-- 1 root root 59 Oct 27 2015 php5.load
-rw-r--r-- 1 root root 87 Jan 3 2014 proxy_ajp.load
-rw-r--r-- 1 root root 347 Jan 3 2014 proxy_balancer.conf
-rw-r--r-- 1 root root 115 Jan 3 2014 proxy_balancer.load
-rw-r--r-- 1 root root 822 Jan 3 2014 proxy.conf
-rw-r--r-- 1 root root 95 Jan 3 2014 proxy_connect.load
-rw-r--r-- 1 root root 95 Jan 3 2014 proxy_express.load
-rw-r--r-- 1 root root 89 Jan 3 2014 proxy_fcgi.load
-rw-r--r-- 1 root root 93 Jan 3 2014 proxy_fdpass.load
-rw-r--r-- 1 root root 189 Jan 3 2014 proxy_ftp.conf
-rw-r--r-- 1 root root 87 Jan 3 2014 proxy_ftp.load
-rw-r--r-- 1 root root 2511 May 28 2015 proxy_html.conf
-rw-r--r-- 1 root root 89 Jan 3 2014 proxy_html.load
-rw-r--r-- 1 root root 89 Jan 3 2014 proxy_http.load
-rw-r--r-- 1 root root 62 Jan 3 2014 proxy.load
-rw-r--r-- 1 root root 89 Jan 3 2014 proxy_scgi.load
-rw-r--r-- 1 root root 97 Jan 3 2014 proxy_wstunnel.load
-rw-r--r-- 1 root root 85 Jan 3 2014 ratelimit.load
-rw-r--r-- 1 root root 70 Jan 3 2014 reflector.load
-rw-r--r-- 1 root root 68 Jan 3 2014 remoteip.load
-rw-r--r-- 1 root root 1190 Jan 3 2014 reqtimeout.conf
-rw-r--r-- 1 root root 72 Jan 3 2014 reqtimeout.load
-rw-r--r-- 1 root root 66 Jan 3 2014 request.load
-rw-r--r-- 1 root root 66 Jan 3 2014 rewrite.load
-rw-r--r-- 1 root root 58 Jan 3 2014 sed.load
-rw-r--r-- 1 root root 99 Jan 3 2014 session_cookie.load
-rw-r--r-- 1 root root 99 Jan 3 2014 session_crypto.load
-rw-r--r-- 1 root root 93 Jan 3 2014 session_dbd.load
-rw-r--r-- 1 root root 66 Jan 3 2014 session.load
-rw-r--r-- 1 root root 1280 Jan 3 2014 setenvif.conf
-rw-r--r-- 1 root root 68 Jan 3 2014 setenvif.load
-rw-r--r-- 1 root root 78 Jan 3 2014 slotmem_plain.load
-rw-r--r-- 1 root root 74 Jan 3 2014 slotmem_shm.load
-rw-r--r-- 1 root root 74 Jan 3 2014 socache_dbm.load
-rw-r--r-- 1 root root 84 Jan 3 2014 socache_memcache.load
-rw-r--r-- 1 root root 78 Jan 3 2014 socache_shmcb.load
-rw-r--r-- 1 root root 66 Jan 3 2014 speling.load
-rw-r--r-- 1 root root 3110 Dec 22 2014 ssl.conf
-rw-r--r-- 1 root root 97 Jan 3 2014 ssl.load
-rw-r--r-- 1 root root 749 Jan 3 2014 status.conf
-rw-r--r-- 1 root root 64 Jan 3 2014 status.load
-rw-r--r-- 1 root root 72 Jan 3 2014 substitute.load
-rw-r--r-- 1 root root 64 Jan 3 2014 suexec.load
-rw-r--r-- 1 root root 70 Jan 3 2014 unique_id.load
-rw-r--r-- 1 root root 423 Jan 3 2014 userdir.conf
-rw-r--r-- 1 root root 66 Jan 3 2014 userdir.load
-rw-r--r-- 1 root root 70 Jan 3 2014 usertrack.load
-rw-r--r-- 1 root root 74 Jan 3 2014 vhost_alias.load
-rw-r--r-- 1 root root 66 Jan 3 2014 xml2enc.load

/etc/apache2/mods-enabled:
total 0
lrwxrwxrwx 1 root root 36 Aug 27 2015 access_compat.load -> ../mods-available/access_compat.load
lrwxrwxrwx 1 root root 28 Aug 27 2015 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 Aug 27 2015 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 Aug 27 2015 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Aug 27 2015 authn_core.load -> ../mods-available/authn_core.load
lrwxrwxrwx 1 root root 33 Aug 27 2015 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 33 Aug 27 2015 authz_core.load -> ../mods-available/authz_core.load
lrwxrwxrwx 1 root root 33 Aug 27 2015 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Aug 27 2015 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 Aug 27 2015 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 Aug 27 2015 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 30 Aug 27 2015 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 Aug 27 2015 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 Aug 27 2015 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 Aug 27 2015 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 Aug 27 2015 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 29 Aug 27 2015 filter.load -> ../mods-available/filter.load
lrwxrwxrwx 1 root root 27 Aug 27 2015 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 Aug 27 2015 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 Jan 16 19:31 mpm_prefork.conf -> ../mods-available/mpm_prefork.conf
lrwxrwxrwx 1 root root 34 Jan 16 19:31 mpm_prefork.load -> ../mods-available/mpm_prefork.load
lrwxrwxrwx 1 root root 34 Aug 27 2015 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 Aug 27 2015 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 31 Aug 27 2015 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 Aug 27 2015 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 29 Aug 27 2015 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 Aug 27 2015 status.load -> ../mods-available/status.load

Edit: I must leave,sorry...
 
Last edited by mariogamer,

Z-WolF

Member
Newcomer
Joined
Dec 29, 2015
Messages
17
Trophies
0
Age
37
XP
416
Country
Chile
theres the problem, you have installed php7 (appears as php5 in the available ones) but you dont have it enabled.

execute this:

Code:
sudo a2enmod php5
and then
Code:
systemctl restart apache2
that should fix it
 
  • Like
Reactions: Deleted User

mariogamer

Well-Known Member
OP
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: $6 for 2 pounds though shits expensive