Caffeinenyx Posted May 1, 2011 Share Posted May 1, 2011 Hiya, I have set up apache, php5 etc on my computers before, but since I upgraded to 11.04 I get a blank screen when running any PHP file. I have used these PHP files before, so the code is not incorrect. I have check that all packages are installed correctly and restarted apache. This is on two ubuntu computers. I normally use firefox. apache2 php5-mysql libapache2-mod-php5 mysql-server Quote Link to comment https://forums.phpfreaks.com/topic/235277-ubuntu-1104-blank-screen-when-parsing-php-code-used-before-and-fine/ Share on other sites More sharing options...
PFMaBiSmAd Posted May 1, 2011 Share Posted May 1, 2011 What does a 'view source' in your browser show for one of the blank pages? Do .html pages work? Make a simple test .html and browse to it. Quote Link to comment https://forums.phpfreaks.com/topic/235277-ubuntu-1104-blank-screen-when-parsing-php-code-used-before-and-fine/#findComment-1209049 Share on other sites More sharing options...
Caffeinenyx Posted May 2, 2011 Author Share Posted May 2, 2011 html pages work fine Quote Link to comment https://forums.phpfreaks.com/topic/235277-ubuntu-1104-blank-screen-when-parsing-php-code-used-before-and-fine/#findComment-1209328 Share on other sites More sharing options...
Caffeinenyx Posted May 2, 2011 Author Share Posted May 2, 2011 Chromium browser has this: The website encountered an error while retrieving http://localhost/admin.php. It may be down for maintenance or configured incorrectly. Here are some suggestions: Reload this web page later. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request. Quote Link to comment https://forums.phpfreaks.com/topic/235277-ubuntu-1104-blank-screen-when-parsing-php-code-used-before-and-fine/#findComment-1209329 Share on other sites More sharing options...
PFMaBiSmAd Posted May 2, 2011 Share Posted May 2, 2011 Blank php pages and HTTP 500 errors are usually due to fatal parse or fatal runtime errors. Try a simple .php script to see if any php code works - <?php phpinfo(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/235277-ubuntu-1104-blank-screen-when-parsing-php-code-used-before-and-fine/#findComment-1209363 Share on other sites More sharing options...
Caffeinenyx Posted May 5, 2011 Author Share Posted May 5, 2011 Blank screen. Also I have test using older files I use fine on windows and ubuntu 10.10 before I updated to 11.04. Nothing will run, so I assume it is not a parse error. Quote Link to comment https://forums.phpfreaks.com/topic/235277-ubuntu-1104-blank-screen-when-parsing-php-code-used-before-and-fine/#findComment-1211189 Share on other sites More sharing options...
arturo322 Posted September 20, 2011 Share Posted September 20, 2011 Hi i've encountered the same problem the thing is yes you were right it can read .html files and yes it showed the simple phpinfo(); sourcecode but my source codes seems cannot be parsed my codes works on xampp for linux and xampp for windows but it seems not working when i migrated it to the linux apache mysql php applications here's what i've done apt-get update apt-get install php5 mysql-server apache2 apt-get upgrade modified my php.ini file and changed output_buffering off to output_buffering on because i needed it for most of my sourcecodes i tried restarting the apache2 server by sudo /etc/init.d/apache2 restart still no effect i also tried sudo a2enmod php5 and restarted my server it says php5 running Help please :'( Edit: PS and yes im using ubuntu 10.10 Edit Number2: It seems that it has problems when i include this code conn.php <?php $HOST = "localhost"; $USER = "root"; $DBUSERPASS = ""; $DBNAME= "smsd"; $connect= mysql_connect($HOST,$USER,$DBUSERPASS); if(isset($connect)){ $dbselect = mysql_select_db($DBNAME,$connect); if(isset($dbselect)){} else echo "Invalid Database Name"; }else echo "Cannot Connect to Database"; ?> and on index.php i did include("conn.php"); Quote Link to comment https://forums.phpfreaks.com/topic/235277-ubuntu-1104-blank-screen-when-parsing-php-code-used-before-and-fine/#findComment-1270902 Share on other sites More sharing options...
olibariki Posted October 25, 2011 Share Posted October 25, 2011 I had a similar problem and I found that it was related to file permissions. Make sure everything is at least 644. Quote Link to comment https://forums.phpfreaks.com/topic/235277-ubuntu-1104-blank-screen-when-parsing-php-code-used-before-and-fine/#findComment-1282198 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.