Reggy

Topic: Site - Blank page?! Need Help!

Hi All,

I have uploaded all contents of public folder to the hosting directory. And also database has been created using txt file attached.

But, when i try to access to my site..its blank..no error msg etc. Any idea? What should i do, any changes needed on files etc? .htaccess?

Please help.

http://supremetechnical.com/jobs_sites/

Last edited by Reggy (2010-06-29 05:10:06)

putypuruty

Re: Site - Blank page?! Need Help!

Hi,

You see a blank page because you have a 500 Internal Server Error.

Can you tell us which Apache version you are running? If it's Apache 1.3, you'll have to use the .htaccess files from the /docs/install-apache-1.3 folder. Else, you should turn errors on from inside config.envs.php and see if you get any errors.

Another thing that could be wrong is the line Options +FollowSymlinks in the .htaccess file - you can try commenting out (put a # char in front of the line). If you get it working, I think you'll need a RewriteBase /jobs_sites line in the root .htaccess file and a RewriteBase /jobs_sites/admin in the admin .htaccess file.

Reggy

Re: Site - Blank page?! Need Help!

this is how my .htaccess looks like:

#AddType application/x-httpd-php5 .php

RewriteEngine on
#Options +FollowSymlinks

RewriteBase /

RewriteBase /jobs_sites

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/$ index.php?page=$1 [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/$ index.php?page=$1&id=$2 [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ index.php?page=$1&id=$2&extra=$3 [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ index.php?page=$1&id=$2&extra=$3&referer=$4 [L]

ErrorDocument 404 /page-unavailable/

.htacess admin:
#AddType application/x-httpd-php5 .php

RewriteEngine on
#Options +FollowSymlinks

RewriteBase /admin
RewriteBase /jobs_sites/admin
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . index.php [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/$ index.php?page=$1 [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/$ index.php?page=$1&id=$2 [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ index.php?page=$1&id=$2&extra=$3 [L]

ErrorDocument 404 /page-unavailable/

From cpanel. Apache version: Apache version      2.2.15

config.envs:
// live (http://supremetechnical.com/jobs_sites)
$__instances['live'] = array(
    'prefix' => 'supremetechnical.com',
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => 'supremet_supreme',
    'db_password' => 'xxxxxx',
    'db_name' => 'supremet_jobs',
    'db_prefix' => '',
    'app_url' => 'http://supremetechnical.com/jobs_sites',
    'ini_error_reporting' => E_ALL,
    'ini_display_errors' => 'On',
    'location' => 'online',
    'environment' => 'prod',
    'rewrite_mode' => 'apache_mod_rewrite'
);

thanks for your reply..but i still need to come back later.

Last edited by Reggy (2010-06-29 10:21:22)

Reggy

Re: Site - Blank page?! Need Help!

Now i get this error:

Fatal error: Smarty error: unable to write to $compile_dir '/home/supremet/public_html/jobs_sites/_templates/default/_cache'. Be sure $compile_dir is writable by the web server user. in /home/supremet/public_html/jobs_sites/_includes/smarty/libs/Smarty.class.php on line 1093

Reggy

Re: Site - Blank page?! Need Help!

Now,

pls visit http://supremetechnical.com/jobs_sites/ and tell me what should i do now?..funny appearance.

Plus..

when i tried to login from admin, got this error:

Not Found

The requested URL /jobs_sitesadmin/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Last edited by Reggy (2010-06-29 10:42:07)

putypuruty

Re: Site - Blank page?! Need Help!

So,

First of all, in cofig.envs.php, your app_url should be

Code:
app_url' => 'http://supremetechnical.com/jobs_sites/',

(notice the / char in the end)

Second of all, remove the line RewriteBase / from the root .htaccess file; also remove the line RewriteBase /admin from the admin .htaccess file.

With these changes, your site should be working now.

Reggy

Re: Site - Blank page?! Need Help!

Horayyy...now works fine!

Thanks putypuruty

rahulb

Re: Site - Blank page?! Need Help!

Hi I am also facing the same problem can check this and tell me what may be the issue
http://telugaits.com

putypuruty

Re: Site - Blank page?! Need Help!

Hi,

Your blank page is caused by a 500 Internal server error. You could try commenting out the following line (just put a # char in front)

Code:
Options +FollowSymlinks

If it still doesn't work, try to remove/rename the .htaccess file to see if the site shows up without it. You should also turn on the error reporting in config.envs.php by setting the ini_display_errors to On.

rahulb

Re: Site - Blank page?! Need Help!

I have done the things which you suggested but still it is not showing up http://telugaits.com