Apache 2 error after performing Update on Ubuntu Server - ubuntu-server

root#ubuntu:-$ apachectl restart
Gives me this error:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax
error on line 1 of /etc/apache2/mods-enabled/perl.load: Cannot load
/usr/lib/apache2/modu les/mod_perl.so into server:
/usr/lib/apache2/modules/mod_perl.so: cannot open s
hared object file: No such file or directory Action 'restart' failed.
The Apache error log may have more information.
IN line 140 of apache2.conf there is this:
Include mods-enabled/.load*
Include mods-enabled/.conf*
In the file perl.load there is only one line:
LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
Kindly assist me on how I can rectify this as it was working properly until apache did and update and it wont restart now.

Related

Apache module is not enabled

Attempting to use directives for an Apache module that is not enabled will result in apachectl configtest messages like the following:Example Error Output
(13)Permission denied: AH00957: HTTP: attempt to connect to 127.0.0.1:9090 (127.0.0.1) failed
The Apache error log may have more information.
I tried verifying logs and searched the error in online but unable to find anything. Can someone please help with the same.

Job for httpd.service failed

I am getting this error and sites are not opening now
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
I got this problem after doing this
yum remove php php-cli php-common php-gd php-ldap php-mysql php-odbc php-pdo php-pear php-pecl-apc php-pecl-memcache php-pgsql php-soap php-xml php-xmlrpc
Most probably there is a configuration file left for php in /etc/httpd/conf.d/ that is loaded by default by apache (having the .conf extension). Since you have removed php, php module can't be loaded and httpd throws that error being unable to start.
So go to /etc/httpd/conf.d, see what .conf files you have there and either remove the php.conf file or at least comment the php module in it so it won't be loaded when apache is restarted. Then try again to restart apache by issuing systemctl restart httpd

After edit twig file using theme editor, webisite show http error 500

I am new to opencart. So the case is I was trying to change the layout of the side menu. So I went to theme editor of opencart admin backend and edit the header.twig file. Then my site immediately went down. I tried reset the file but no help. Below are some details.
Opencart version: 3.0.2.0
Template used: Not default template(It is Laparis: Demo 7)
File edited: header.twig(Already reset but no help)
Error message from log:
[28-Sep-2017 02:32:46 UTC] PHP Fatal error: Uncaught exception
'Twig_Error_Syntax' with message 'Unknown "str_replace" function in "__string_template__85be79fc1c90839e75914d8e962e8d511d190b089fb189c9253a6adf4e71ae9f" at line 16.' in /home/gloo/public_html/newgloo/system/library/template/Twig/ExpressionParser.php:574
Stack trace:
#0 /home/gloo/public_html/newgloo/system/library/template/Twig/ExpressionParser.php(351): Twig_ExpressionParser->getFunctionNodeClass('str_replace', 16)
#1 /home/gloo/public_html/newgloo/system/library/template/Twig/ExpressionParser.php(144): Twig_ExpressionParser->getFunctionNode('str_replace', 16)
#2 /home/gloo/public_html/newgloo/system/library/template/Twig/ExpressionParser.php(84): Twig_ExpressionParser->parsePrimaryExpression()
#3 /home/gloo/public_html/newgloo/system/library/template/Twig/ExpressionParser.php(41): Twig_ExpressionParser->getPrimary()
#4 /home/gloo/public_html/newgloo/system/library/template/Twig/ExpressionParser.php(91): Twig_ExpressionParser->parseExpression()
#5 /home/gloo/public_html/newgloo/system/lib in /home/gloo/public_html/newgloo/system/library/template/Twig/ExpressionParser.php on line 574
Another error log from ocartdata/storage/logs:
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/gloo/public_html/newgloo/admin/model/bossthemes/boss_newmegamenu.php:1) in /home/gloo/public_html/newgloo/system/library/response.php on line 36
I thought it might be the cache issue, so I cleared all cache. But still no luck.
Please tell me what can I do to make my site up again. Any help on this is much appreciated. Thanks.

rlm_eap error running freeradius in openwrt

I am running openwrt on beagle bone black board. I am getting following error while running freeradius.
radiusd -X
rlm_eap: SSL error error:02001002:lib(2):func(1):reason(2)
rlm_eap_tls: Error reading certificate file /etc/freeradius2/certs/server.pem
rlm_eap: Failed to initialize type tls
/etc/freeradius2/eap.conf[17]: Instantiation failed for module "eap"
/etc/freeradius2/sites/default[312]: Failed to find "eap" in the "modules" section.
/etc/freeradius2/sites/default[254]: Errors parsing authenticate section.
when i checked there is no "cert" directory present in /etc/freeradius2/. Plz help
Problem was solved after installing freeradius2-democerts_2.2.7-1_omap.ipk
after installing following error might trouble:
Debug: Module: Checking authorize {...} for more modules to load
Error: /etc/freeradius2/sites/default[160]: Failed to find "reject" in the "modules" section.
Error: /etc/freeradius2/sites/default[69]: Errors parsing authorize section.
to resolve this go to /etc/freeradius2/sites/default line no. 160. comment the line which has reject word.

Fatal error: require_once(): Failed opening required 'pre.php' in /usr/share/tuleap/src/www/index.php

I have installed xampp and then tuleap in centos and gave /usr/share/tuleap/src/www as document root in /etc/httpd/conf/httpd.conf
When I hit the url, I am getting the following error:
Warning: require_once(pre.php): failed to open stream: No such file or directory in /usr/share/tuleap/src/www/index.php on line 9
Fatal error: require_once(): Failed opening required 'pre.php' (include_path='.:/opt/lampp/lib/php') in /usr/share/tuleap/src/www/index.php on line 9
I am also seeing that the document root points to /usr/share/tuleap/src/www and pre.php is not in this folder. Instead it is at include/pre.php I am totally confused on this directory structure. I didn't change any code after installing tuleap.
Please let me know how to fix this issue.
Thanks in advance!

Resources