You are not logged in.
Pages: 1
Okay so I was trying to setup my phpmyadmin so that I could access it while away from home.
I followed this tutorial https://www.linode.com/docs/databases/m … phpmyadmin now since following it I can no longer access my website except for the webmin part.
I have tried restarting apache2 but it keeps failing, does anyone know what has gone on??
I already had apache2 and phpmyadmin installed prior to following this tutorial, I have tried uninstalling mcrypt as well as I thought that might be the issue, but can not resolve it..
Any help is appreciated.
Last edited by bjmag94 (2018-08-31 14:15:59)
Offline
^
1. What about apache 'access' and 'error' log files? Any useful info there?
2. Create simple html-only (no PHP!) and try to (re)start apache without php
3. If '2.' works, then enable php in apache, disable mcrypt extension in php (or disable all php extensions), and try the most simple page 'index.php':
<?php phpinfo(); ?>
If this works, and doesn't work with mcrypt, then mcrypt is the culprit.
Now, above is very crude (as opposite of 'detailed') description/guidelines, because I have no idea what is your OS, and how did you exactly install apache and/or php and/or mcrypt. (Not that it would matter, because I have used apache/php/phpmyadmin/... only on FreeBSD.) Look at it as a 'general guide how to debug apache/php web server problems'.
I just hope you now what you are doing ...
Postpone all your duties; if you die, you won't have to do them ..
Offline
^
1. What about apache 'access' and 'error' log files? Any useful info there?2. Create simple html-only (no PHP!) and try to (re)start apache without php
3. If '2.' works, then enable php in apache, disable mcrypt extension in php (or disable all php extensions), and try the most simple page 'index.php':
<?php phpinfo(); ?>
If this works, and doesn't work with mcrypt, then mcrypt is the culprit.
Now, above is very crude (as opposite of 'detailed') description/guidelines, because I have no idea what is your OS, and how did you exactly install apache and/or php and/or mcrypt. (Not that it would matter, because I have used apache/php/phpmyadmin/... only on FreeBSD.) Look at it as a 'general guide how to debug apache/php web server problems'.
I just hope you now what you are doing ...
I am running BL 8 currently using my phone as I am away I installed php and apache2 a while back so I no longer remember how.
But installed mcrypt a few hours ago using the webmin command shell and copied and paste the code from the link I provide in the thread.
I'll try your methods
Offline
Just a html page wont work either.
I have disabled mcrypt and still nothing
Offline
bjmag94 wrote:Just a html page wont work either.
I have disabled mcrypt and still nothingThe log files and error messages will tell you exactly what is wrong; please post those first.
# Customizable error responses come in three flavors:
# 1) plain text
# 2) local redirects
# 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#
#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections. We use
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /usr/share/apache2/error/include/ files and copying them to /your/include/path/,
# even on a per-VirtualHost basis. If you include the Alias in the global server
# context, is has to come _before_ the 'Alias /error/ ...' line.
#
# The default include files will display your Apache version number and your
# ServerAdmin email address regardless of the setting of ServerSignature.
#
# WARNING: The configuration below will NOT work out of the box if you have a
# SetHandler directive in a <Location /> context somewhere. Adding
# the following three lines AFTER the <Location /> context should
# make it work in most cases:
# <Location /error/>
# SetHandler none
# </Location>
#
# The internationalized error documents require mod_alias, mod_include
# and mod_negotiation. To activate them, uncomment the following 37 lines.
#<IfModule mod_negotiation.c>
# <IfModule mod_include.c>
# <IfModule mod_alias.c>
#
# Alias /error/ "/usr/share/apache2/error/"
#
# <Directory "/usr/share/apache2/error">
# Options IncludesNoExec
# AddOutputFilter Includes html
# AddHandler type-map var
# Order allow,deny
# Allow from all
# LanguagePriority en cs de es fr it nl sv pt-br ro
# ForceLanguagePriority Prefer Fallback
# </Directory>
#
# ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
# ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
# ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
# ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
# ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
# ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
# ErrorDocument 410 /error/HTTP_GONE.html.var
# ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
# ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
# ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
# ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
# ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
# ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
# ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
# ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
# ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
# </IfModule>
# </IfModule>
#</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Offline
[root@www ~]# systemctl restart apache2 Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details. [root@www ~]# systemctl status apache2.service ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Drop-In: /lib/systemd/system/apache2.service.d └─forking.conf Active: failed (Result: exit-code) since Sat 2018-09-01 10:04:06 AEST; 22s ago Process: 21455 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE) Sep 01 10:04:06 www.criminal-city.com apache2[21455]: Starting web server: apache2 failed! Sep 01 10:04:06 www.criminal-city.com apache2[21455]: The apache2 configtest failed. ... (warning). Sep 01 10:04:06 www.criminal-city.com apache2[21455]: Output of config test was: Sep 01 10:04:06 www.criminal-city.com apache2[21455]: AH00526: Syntax error on line 39 of /etc/phpmyadmin/apache.conf: Sep 01 10:04:06 www.criminal-city.com apache2[21455]: Argument for 'Require all' must be 'granted' or 'denied' Sep 01 10:04:06 www.criminal-city.com apache2[21455]: Action 'configtest' failed. Sep 01 10:04:06 www.criminal-city.com apache2[21455]: The Apache error log may have more information. Sep 01 10:04:06 www.criminal-city.com systemd[1]: apache2.service: control process exited, code=exited status=1 Sep 01 10:04:06 www.criminal-city.com systemd[1]: Failed to start LSB: Apache2 web server. Sep 01 10:04:06 www.criminal-city.com systemd[1]: Unit apache2.service entered failed state.
root@www ~]# systemctl restart apache2 Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details. [root@www ~]# systemctl status apache2.service ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Drop-In: /lib/systemd/system/apache2.service.d └─forking.conf Active: failed (Result: exit-code) since Sat 2018-09-01 10:04:06 AEST; 22s ago Process: 21455 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE) Sep 01 10:04:06 www.criminal-city.com apache2[21455]: Starting web server: apache2 failed! Sep 01 10:04:06 www.criminal-city.com apache2[21455]: The apache2 configtest failed. ... (warning). Sep 01 10:04:06 www.criminal-city.com apache2[21455]: Output of config test was: Sep 01 10:04:06 www.criminal-city.com apache2[21455]: AH00526: Syntax error on line 39 of /etc/phpmyadmin/apache.conf: Sep 01 10:04:06 www.criminal-city.com apache2[21455]: Argument for 'Require all' must be 'granted' or 'denied' Sep 01 10:04:06 www.criminal-city.com apache2[21455]: Action 'configtest' failed. Sep 01 10:04:06 www.criminal-city.com apache2[21455]: The Apache error log may have more information. Sep 01 10:04:06 www.criminal-city.com systemd[1]: apache2.service: control process exited, code=exited status=1 Sep 01 10:04:06 www.criminal-city.com systemd[1]: Failed to start LSB: Apache2 web server. Sep 01 10:04:06 www.criminal-city.com systemd[1]: Unit apache2.service entered failed state.
This may help a little more
Last edited by bjmag94 (2018-09-01 00:09:07)
Offline
please use code tags, and tell us what exasctly you posted there (or include the commands).
Offline
AH00526: Syntax error on line 39 of /etc/phpmyadmin/apache.conf: Sep 01 10:04:06 www.criminal-city.com apache2[21455]: Argument for 'Require all' must be 'granted' or 'denied'
So: A phpmyadmin config file is left over, and there's a syntax error in that file. If you didn't already, try to purge the phpmyadmin config files
apt-get purge phpmyadmin
'purge' will remove configuration files of the that package, too.
Alternatively: Find out how this file is being inclued (is it symlinked in /etc/apache2/ or one of its subdirectories?) and remove or fix it.
Offline
Pages: 1