Blank Page after installation (both Admin and front end)

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
yosiska
Posts: 3
Joined: Sat Apr 07, 2007 11:02 pm

Blank Page after installation (both Admin and front end)

Post by yosiska »

Please help its blank, both on 1.6 and 2.0

http://faq.bekerjadiamerika.com

Here is my server info

Plesk Version 8.1


Image

1. The httpdocs folders and files are belong to apache. All folder is set to 755 and all files are set to 644 permission. Except:
Permission 766 for the following:

* the files data.php in the directory inc/
* the directory attachments/
* the directory data/
* the directory images/
* the directory pdf/
* the directory xml/

2. Message after installation is as follow

| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

All database tables were successfully created.

Congratulation! Everything seems to be okay.

You can visit your version of phpMyFAQ or

login into your admin section.

The file ./install/installer.php was deleted automatically.

Please delete the file ./install/update.php manually.

© 2001-2007 phpMyFAQ Team | All rights reserved.


3. I deleted ./install/update.php manually as instructed.

Immediate help is appreciated. THank You!!
Thorsten
Posts: 15726
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you please enable the debug mode in inc/init.php?

Thanks and bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
yosiska
Posts: 3
Joined: Sat Apr 07, 2007 11:02 pm

Debug result

Post by yosiska »

Hi, Thorsten

here is the result with the debug on

Warning: main() [function.main]: open_basedir restriction in effect. File(/Link.php) is not within the allowed path(s): (/var/www/vhosts/bekerjadiamerika.com/subdomains/faq/httpdocs:/tmp) in /var/www/vhosts/bekerjadiamerika.com/subdomains/faq/httpdocs/inc/Category.php on line 29

Warning: main(Link.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/bekerjadiamerika.com/subdomains/faq/httpdocs/inc/Category.php on line 29

Fatal error: main() [function.require]: Failed opening required 'Link.php' (include_path='.:') in /var/www/vhosts/bekerjadiamerika.com/subdomains/faq/httpdocs/inc/Category.php on line 29
yosiska
Posts: 3
Joined: Sat Apr 07, 2007 11:02 pm

Solved:

Post by yosiska »

It works now!!

Just enable the debug on ./inc/init.php

Used that for reference.

The key is using the absolute path.

For example:

My problem was:

Warning: main() [function.main]: open_basedir restriction in effect. File(/Link.php) is not within the allowed path(s): (/var/www/vhosts/bekerjadiamerika.com/subdomains/faq/httpdocs:/tmp) in /var/www/vhosts/bekerjadiamerika.com/subdomains/faq/httpdocs/inc/Category.php on line 29

so, in that line 29 on Category.php was

require_once('Link.php');

I changed it to
../faq/httpdocs/inc/Link.php or whatever your complete absolute path is .


This is the files within the inc folder that I changed

Catagory.php Faq.php News.php


:D
Thorsten
Posts: 15726
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you're right, we're fixing that for version 2.0.0-beta2. Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply