0

localhost 500 internal server error.

root@kumar-desktop:/# sudo service apache2 restart
 * Restarting web server apache2                                         [ OK ] 

am searching lot of things but no result..

closed as unclear what you're asking by A.B., Mitch Oct 3 '15 at 17:20

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What is a "lot of things"? – A.B. Sep 29 '15 at 11:33
  • am following this steps : help.ubuntu.com/community/ApacheMySQLPHP#Troubleshooting_Apache but no result – Kumar Ramalingam Sep 29 '15 at 11:34
  • The congregation at this server message is that it is so unspecific. Since theoretically could be just "Something is going wrong!" – When immersed in this message? Which request you have sent to the server. – A.B. Sep 29 '15 at 11:36
  • What is in the log files? – A.B. Sep 29 '15 at 11:36
  • yes. log details. – Kumar Ramalingam Sep 29 '15 at 11:37
0

The congregation at this server message is that it is so unspecific. Since theoretically could be just Something is going wrong!

  1. Remove the file /etc/apache2/conf-available/fqdn.conf via

    sudo mv /etc/apache2/conf-available/fqdn.conf /etc/apache2/conf-available/fqdn.conf.bak
    

    and unlink the configuration

    sudo a2disconf fqdn
    
  2. Restart your server and check if the problem is solved

    sudo service apache2 restart
    
  3. If not, backup your configurations and install apache2 again via

    sudo mv /etc/apache2 /etc/apache2.bak
    sudo apt-get purge apache2
    sudo apt-get install apache2
    
  4. Restart your server and check if the problem is solved

    sudo service apache2 restart
    
  5. If you get a error message like

    The apache2 configtest failed. Output of config test was: apache2:
    Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error
    on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load
    /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2
    modules/mod_alias.so: cannot open shared object file: No such file or
    directory Action 'configtest' failed. The Apache error log may have
    more information.
    

    reinstall apache2-bin via

    sudo apt-get install --reinstall apache2-bin
    

    because the file /usr/lib/apache2/modules/mod_alias.so is part of the package apache2-bin

  6. And now again

    echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf
    sudo a2enconf fqdn
    

Not the answer you're looking for? Browse other questions tagged or ask your own question.