I have got these errors when i hit the browser
exception ‘UnexpectedValueException’ with message ‘The stream or file “/var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/logs/mautic_prod-2016-08-08.php” could not be opened: failed to open stream: Permission denied’ in /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php:4426
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: Stack trace:
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #0 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(88): Monolog\Handler\StreamHandler->write(Array)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #1 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php(4360): Monolog\Handler\RotatingFileHandler->write(Array)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #2 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php(4849): Monolog\Handler\AbstractProcessingHandler->handle(Array)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #3 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php(4956): Monolog\Logger->addRecord(500, ‘Uncaught PHP Ex…’, Array)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #4 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/vendor/symfony/http-kernel/EventListener/ExceptionListener.php(89): Monolog\Logger->critical(‘Uncaught PHP Ex…’, Array)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #5 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/vendor/symfony/http-kernel/EventListener/ExceptionListener.php(45): Symfony\Component\HttpKernel\EventListener\ExceptionListener->logException(Object(Exception), ‘Uncaught PHP Ex…’)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #6 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/bundles/CoreBundle/EventListener/ExceptionListener.php(38): Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #7 [internal function]: Mautic\CoreBundle\EventListener\ExceptionListener->onKernelException(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), ‘kernel.exceptio…’, Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #8 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php(2741): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), ‘kernel.exceptio…’, Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #9 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php(2656): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, ‘kernel.exceptio…’, Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #10 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/bootstrap.php.cache(3242): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(‘kernel.exceptio…’, Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #11 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/bootstrap.php.cache(3178): Symfony\Component\HttpKernel\HttpKernel->handleException(Object(Exception), Object(Symfony\Component\HttpFoundation\Request), 1)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #12 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/bootstrap.php.cache(3323): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #13 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/bootstrap.php.cache(2513): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #14 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/AppKernel.php(131): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #15 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/middlewares/CORSMiddleware.php(91): AppKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #16 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/middlewares/CatchExceptionMiddleware.php(43): Mautic\Middleware\CORSMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #17 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/middlewares/Prod/SetMauticHeaderMiddleware.php(41): Mautic\Middleware\CatchExceptionMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #18 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/middlewares/VersionCheckMiddleware.php(56): Mautic\Middleware\Prod\SetMauticHeaderMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #19 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Mautic\Middleware\VersionCheckMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #20 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/vendor/stack/run/src/Stack/run.php(13): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #21 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/index.php(30): Stack\run(Object(Stack\StackedHttpKernel))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #22 {main}
I have run these command on my server
chown -R ocradmin:psacln app/cache
chown -R ocradmin:psacln app/logs
rm -rf app/cache/
rm -rf app/logs/
chmod 777 app/cache
chmod 777 app/logs
Please help me.
I have got these errors when i hit the browser
exception ‘UnexpectedValueException’ with message ‘The stream or file “/var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/logs/mautic_prod-2016-08-08.php” could not be opened: failed to open stream: Permission denied’ in /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php:4426
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: Stack trace:
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #0 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(88): Monolog\Handler\StreamHandler->write(Array)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #1 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php(4360): Monolog\Handler\RotatingFileHandler->write(Array)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #2 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php(4849): Monolog\Handler\AbstractProcessingHandler->handle(Array)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #3 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php(4956): Monolog\Logger->addRecord(500, ‘Uncaught PHP Ex…’, Array)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #4 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/vendor/symfony/http-kernel/EventListener/ExceptionListener.php(89): Monolog\Logger->critical(‘Uncaught PHP Ex…’, Array)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #5 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/vendor/symfony/http-kernel/EventListener/ExceptionListener.php(45): Symfony\Component\HttpKernel\EventListener\ExceptionListener->logException(Object(Exception), ‘Uncaught PHP Ex…’)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #6 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/bundles/CoreBundle/EventListener/ExceptionListener.php(38): Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #7 [internal function]: Mautic\CoreBundle\EventListener\ExceptionListener->onKernelException(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), ‘kernel.exceptio…’, Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #8 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php(2741): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), ‘kernel.exceptio…’, Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #9 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod/classes.php(2656): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, ‘kernel.exceptio…’, Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #10 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/bootstrap.php.cache(3242): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(‘kernel.exceptio…’, Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #11 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/bootstrap.php.cache(3178): Symfony\Component\HttpKernel\HttpKernel->handleException(Object(Exception), Object(Symfony\Component\HttpFoundation\Request), 1)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #12 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/bootstrap.php.cache(3323): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #13 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/bootstrap.php.cache(2513): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #14 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/AppKernel.php(131): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #15 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/middlewares/CORSMiddleware.php(91): AppKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #16 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/middlewares/CatchExceptionMiddleware.php(43): Mautic\Middleware\CORSMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #17 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/middlewares/Prod/SetMauticHeaderMiddleware.php(41): Mautic\Middleware\CatchExceptionMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #18 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/middlewares/VersionCheckMiddleware.php(56): Mautic\Middleware\Prod\SetMauticHeaderMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #19 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Mautic\Middleware\VersionCheckMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #20 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/vendor/stack/run/src/Stack/run.php(13): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #21 /var/www/vhosts/octopusreach.com/aem.octopusreach.com/index.php(30): Stack\run(Object(Stack\StackedHttpKernel))
[Mon Aug 08 09:24:49 2016] [warn] [client 220.158.206.5] mod_fcgid: stderr: #22 {main}
I have run these command on my server
chown -R ocradmin:psacln app/cache
chown -R ocradmin:psacln app/logs
rm -rf app/cache/*
rm -rf app/logs/*
chmod 777 app/cache
chmod 777 app/logs
Please help me.
Yes I am sure
[root@vps269941 ~]# ps aux | egrep ‘(apache|httpd)’
apache 7897 0.0 0.7 370816 14684 ? S Aug09 0:00 /usr/sbin/httpd
apache 10107 0.0 0.5 238140 10088 ? S Aug07 0:12 /usr/sbin/httpd
apache 10108 0.0 0.8 371084 15648 ? S Aug07 0:00 /usr/sbin/httpd
apache 10109 0.0 0.8 371092 15676 ? S Aug07 0:01 /usr/sbin/httpd
apache 10110 0.0 0.8 371084 15096 ? S Aug07 0:01 /usr/sbin/httpd
apache 10111 0.0 0.8 371084 15632 ? S Aug07 0:00 /usr/sbin/httpd
apache 10112 0.0 0.8 371084 15700 ? S Aug07 0:00 /usr/sbin/httpd
apache 10113 0.0 0.7 370948 14876 ? S Aug07 0:00 /usr/sbin/httpd
apache 10114 0.0 0.8 371080 15728 ? S Aug07 0:00 /usr/sbin/httpd
apache 10115 0.0 0.8 371092 15768 ? S Aug07 0:00 /usr/sbin/httpd
root 10494 0.0 0.0 103312 912 pts/0 S+ 07:50 0:00 egrep (apache|htt pd)
root 31451 0.0 1.3 370684 24792 ? Ss Aug06 0:20 /usr/sbin/httpd
I am confuse which user Apache is running as ?
[root@vps269941 app]# ls -al
total 172
drwxr-xr-x 8 ocradmin psacln 4096 Aug 9 00:44 .
drwxrwxr-x 9 ocradmin psacln 4096 Aug 9 00:41 …
-rw-r–r-- 1 ocradmin psacln 143 Jul 12 21:56 AppCache.php
-rw-r–r-- 1 ocradmin psacln 17656 Jul 12 21:56 AppKernel.php
-rw-r–r-- 1 ocradmin psacln 396 Jul 12 21:56 autoload.php
-rw-r–r-- 1 ocradmin psacln 102325 Jul 12 22:01 bootstrap.php.cache
drwxr-xr-x 24 ocradmin psacln 4096 Jul 12 21:56 bundles
drwxr-xr-x 3 ocradmin psacln 4096 Jul 12 22:01 cache
drwxr-xr-x 2 ocradmin psacln 4096 Jul 12 22:02 config
-rwxr-xr-x 1 ocradmin psacln 1188 Jul 12 21:56 console
-rw-r–r-- 1 ocradmin psacln 13 Jul 12 21:56 .htaccess
drwxr-xr-x 2 ocradmin psacln 4096 Aug 10 07:03 logs
drwxr-xr-x 4 ocradmin psacln 4096 Jul 12 21:56 middlewares
drwxr-xr-x 2 ocradmin psacln 4096 Jul 12 21:56 migrations
-rw-r–r-- 1 ocradmin psacln 6 Jul 12 21:56 version.txt
Please help
I have run
chown -R apache:apache /var/www/vhosts/octopusreach.com/aem.octopusreach.com
chmod -R 755 var/www/vhosts/octopusreach.com/aem.octopusreach.com
rm -rf app/cache/*
$ sudo sh -c ‘echo 1 >/proc/sys/vm/drop_caches’
$ sudo sh -c ‘echo 2 >/proc/sys/vm/drop_caches’
$ sudo sh -c ‘echo 3 >/proc/sys/vm/drop_caches’
But still i got error
exception ‘RuntimeException’ with message 'Unable to create the cache directory (/var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod)
in /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/AppKernel.php:519
Please help
The file is too large can’t paste fully
MaxKeepAliveRequests 100
KeepAliveTimeout: Number of seconds to wait for the next request from the
same client on the same connection.
KeepAliveTimeout 15
Server-Pool Size Regulation (MPM specific)
MaxClients: maximum number of server processes allowed to start
MaxRequestsPerChild: maximum number of requests a server process serves
StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000worker MPM
ThreadsPerChild: constant number of worker threads in each server process
MaxRequestsPerChild: maximum number of requests a server process serves
StartServers 4 MaxClients 300 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0Change this to Listen on specific IP addresses as shown below to
prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#Listen 12.34.56.78:80
Listen 7080
Dynamic Shared Object (DSO) Support
To be able to use the functionality of a module which was built as a DSO you
to be loaded here.
Example:
LoadModule foo_module modules/mod_foo.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so
The following modules are not loaded by default:
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
Load config files from the config directory “/etc/httpd/conf.d”.
Include conf.d/*.conf
ExtendedStatus controls whether Apache will generate “full” status
information (ExtendedStatus On) or just basic information (ExtendedStatus
Off) when the “server-status” handler is called. The default is Off.
#ExtendedStatus On
If you wish httpd to run as a different user or group, you must run
httpd as root initially and it will switch.
User/Group: The name (or #number) of the user/group to run httpd as.
. On SCO (ODT 3) use “User nouser” and “Group nogroup”.
. On HPUX you may not be able to use shared memory as nobody, and the
suggested workaround is to create a user www and use that user.
NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
when the value of (unsigned)Group is above 60000;
don’t use Group #-1 on these systems!
User apache
Group apache
Section 2: ‘Main’ server configuration
in which case these default settings will be overridden for the
virtual host being defined.
ServerAdmin: Your address, where problems with the server should be
e-mailed. This address appears on some server-generated pages, such
as error documents. e.g. admin@your-domain.com
ServerAdmin root@localhost
You will have to access it by its address anyway, and this will make
redirections work in a sensible way.
#ServerName www.example.com:80
UseCanonicalName: Determines how Apache constructs self-referencing
ServerName directive.
UseCanonicalName Off
DocumentRoot: The directory out of which you will serve your
documents. By default, all requests are taken from this directory, but
symbolic links and aliases may be used to point to other locations.
DocumentRoot “/var/www/html”
First, we configure the “default” to be a very restrictive set of
features.
Options FollowSymLinks AllowOverride NoneThe following directives modify normal HTTP response behavior to
handle known problems with browser implementations.
BrowserMatch “Mozilla/2” nokeepalive
BrowserMatch “MSIE 4.0b2;” nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch “RealPlayer 4.0” force-response-1.0
BrowserMatch “Java/1.0” force-response-1.0
BrowserMatch “JDK/1.0” force-response-1.0
The following directive disables redirects on non-GET requests for
Same deal with Apple’s DAV filesystem and Gnome VFS support for DAV.
BrowserMatch “Microsoft Data Access Internet Publishing Provider” redirect-carefully
BrowserMatch “MS FrontPage” redirect-carefully
BrowserMatch “^WebDrive” redirect-carefully
BrowserMatch “^WebDAVFS/1.[0123]” redirect-carefully
BrowserMatch “^gnome-vfs/1.0” redirect-carefully
BrowserMatch “^XML Spy” redirect-carefully
BrowserMatch “^Dreamweaver-WebDAV-SCM1” redirect-carefully
Allow server status reports generated by mod_status,
with the URL of http://servername/server-status
Change the “.example.com” to match your domain to enable.
#<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from .example.com
#
Still get error
I have run those command you give me
exception ‘RuntimeException’ with message 'Unable to create the cache directory (/var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/cache/prod)
in /var/www/vhosts/octopusreach.com/aem.octopusreach.com/app/AppKernel.
[root@vps269941 /]# httpd -v
Server version: Apache/2.2.15 (Unix)
Server built: Jul 18 2016 15:24:00