Apache PHP

Apache PHP

Check loaded apache modules in terminal:
sudo apache2ctl -M

Check if .htaccess file is in use

inside .htaccess on first line write TEST
in webbrowser call the site.
if error, then it is in use

PHP
create following code and save in your sites root folder as phpinfo.php
<?
phpinfo();

?>
go to site and run http://(yoursite)/phpinfo.php

Recomended settings:
https://www.drupal.org/requirements/php

in phpinfo page the following should be set:

section   d8 d7
PHP version min 5.5.9 Rec 5.6.5 Min 5.2.5 – rec 5.5.4
core allow_url_fopen must be OFF or nonexistent must be OFF or nonexistent
core display_errors off off
core max_execution_time min 30 seconds min 30 seconds
core expose_php must be OFF or nonexistent must be OFF or nonexistent
core memory_limit 64MB 32MB
ctype ctype functions enabled  
cURL cURL support enabled (avoid 7.35)  
cURL libSSH Version required for install update required for install update
date date/time support enabled enabled
dom DOM/XML enabled enabled
fileinfo fileinfo support enabled  
filter Input Validation and Filtering enabled enabled
gd GD Support enabled enabled
? magic_quotes_gpc must be OFF or nonexistent must be OFF or nonexistent
? magic_quotes_runtime must be disabled or nonexistent must be disabled or nonexistent
? safe_mode must be disabled or nonexistent must be disabled or nonexistent
? register_globals must be OFF or nonexistent must be OFF or nonexistent
hash hash support enabled enabled
json json support enabled enabled
pcre PCRE (Perl Compatible Regular Expressions) Support enabled enabled
pdo PHP Data Objects(PDO) (specific for your database) (specific for your database)
pecl PECL version of PDO not compatible not compatible
session Session Support enabled enabled
session session.auto_start 0 0
session session.cache_limiter nocache nocache
SimpleXML Schema support enabled enabled
SPL SPL support lots lots
Suhosin APC.include-once-override avoid avoid
Tokenizer Tokenizer Support enabled  
XML XML Support enabled enabled
XML XML Namespace Support enabled enabled
Zend OPcache Opcode caching up and running  
Zend OPcache PHP 5.5+ opcache.save_comment 1  
Zend OPcache PHP 5.5+ opcache.load_comments 1  
MODULE TESTING memory_limit 256