Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php configure - Server error The website encountered an error while retrieving

Someone just upgraded to PHP 5.4.8 and now I get an error:

Google Chrome:

The website encountered an error while retrieving http://10.10.1.22/. It may be 
down for maintenance or configured incorrectly.

Firefox: Blank all white window

I did some playing around and found if I put just index.html in the /var/www/html, it display's it. But if I put in a fresh copy of joomla I get that error. I get the same error when trying to access phpmyadmin.

Everything was working fine before the upgrade, any idea's on what I need to configure? Suggestions one things I should look at or try.

I believe LAMP is installed.

like image 597
milan Avatar asked Aug 12 '26 01:08

milan


2 Answers

if I put just index.html in the /var/www/html, it display's it. depicts that there is no php configuration problem.

There may be some extension specific issue. You may try with a default Joomla installation and add extensions one at a time until you identify which ones specifically have an issue and then refer to the extension developers - they may not be aware of the issues.

like image 137
000 Avatar answered Aug 14 '26 15:08

000


Html doesn t need server intervention to display.

Try to put a php file instead: index.php

Inside put these codes :

<?php

ini_set('display_errors', 1); 
ini_set('log_errors', 1); 
ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); 
error_reporting(E_ALL);

echo "Hello World!";
echo "php is working";
php_info();

//this should generate an error--->
echo $unknown_var;
    ?>
    <html>
    Html is working
    </html>

This should help you identify what is wrong.

My guess is that your server may need to be restarted.

EDIT

It seems you have a problem with the setting open_basedir

or a .htaccess is preventing you from acccessing your www director.

olso chek the value of doc_root

like image 33
Jeffrey Nicholson Carré Avatar answered Aug 14 '26 16:08

Jeffrey Nicholson Carré