phpScheduleIt
May 24, 2013, 11:05:38 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: 1 [2]
  Print  
Author Topic: Blank Screen after going to install page  (Read 9265 times)
kilerb
Newbie
*

Karma: 0
Posts: 17


« Reply #15 on: February 27, 2008, 10:44:02 PM »

Quote from: "Nick"
This sounds like a security setting put in place by your hosting company.  I'd send their support the error log snippet that you posted here and find out why you are being restricted from including PHP files.


Hi Nick...  I didn't even know there was a forum board here!  I'm the one emailing you from the oasis email address.  This is the exact thing that is happening to me.  The thing with me is this...  I am on my own private virtual server...  On the VPS, I'm in charge of it, and there really shouldn't be any security issues in place.  I've never had any php scripting problems in the past on my server.  I have the latest version of php, I've uploaded all the files to www.mysite.com/signup...  When I go to www.mysite.com/signup/install I just get that blank page too.  I have renamed the config.new.php to config.php and it is uploaded via ftp and in place.  I have tried it with php safe mode on and php safe mode off, and I changed the php safe mode code in the config.php file to 0 or 1 depending on whether it was on or off.  STILLLLLLLLL...  Blank screen at the install page.  I emailed you a copy and paste of my config file if that helps at all.  Maybe I'm missing something or typed something wrong.  When you have some time, let me know if you can!

Does anyone have any ideas on what I might be missing?  I'm really looking forward to getting this program up and running!  Thanks in advance!  

Brian
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #16 on: February 28, 2008, 09:44:40 AM »

Do your server error log files show anything helpful?
Logged
kilerb
Newbie
*

Karma: 0
Posts: 17


« Reply #17 on: February 28, 2008, 12:44:43 PM »

Yes sir....  I found my log...  What would this mean?  Also, that IP number in the error is not the IP my server is on.  Wonder if that has anything to do with it?  Anyway, here it is...

in /var/www/vhosts/calstandup.com/httpdocs/signup/config/init.php on line 46
[client 67.49.2.127] PHP Warning: main(constants.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /var/www/vhosts/calstandup.com/httpdocs/signup/config/init.php on line 46
[client 67.49.2.127] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'constants.php' for inclusion (include_path='.:.:') in /var/www/vhosts/calstandup.com/httpdocs/signup/config/init.php on line 46
[client 67.49.2.127] PHP Warning: main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/langs.php) is not within the allowed path(s): (/var/www/vhosts/calstandup.com/httpdocs:/tmp) in /var/www/vhosts/calstandup.com/httpdocs/signup/config/init.php on line 47
[client 67.49.2.127] PHP Warning: main(langs.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /var/www/vhosts/calstandup.com/httpdocs/signup/config/init.php on line 47
[client 67.49.2.127] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'langs.php' for inclusion (include_path='.:.:') in /var/www/vhosts/calstandup.com/httpdocs/signup/config/init.php on line 47
[client 67.49.2.127] PHP Fatal error: Call to undefined function determine_language() in /var/www/vhosts/calstandup.com/httpdocs/signup/config/init.php on line 49
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #18 on: February 29, 2008, 09:59:31 AM »

One thing I would check here is to make sure that there is nothing at all after the final "?>" in config.php.  If there is a space or new line, everything falls apart.

Some FTP clients in the past have stuck something at the end of files for me before, so if you can, take a look at the file on the server.
Logged
kilerb
Newbie
*

Karma: 0
Posts: 17


« Reply #19 on: February 29, 2008, 07:20:30 PM »

Quote from: "Nick"
One thing I would check here is to make sure that there is nothing at all after the final "?>" in config.php.  If there is a space or new line, everything falls apart.

Some FTP clients in the past have stuck something at the end of files for me before, so if you can, take a look at the file on the server.


Nope this is the very end of config.php and it's right from the server, not my hard drive...  Any other suggestions or reasons this would happen?  Thanks!

// Account for lookup on LDAP server
$conf['ldap']['lookupid'] = 'jwt-unique=userName,ou=internal,ou=people,dc=domain,dc=com';
// LDAP password
$conf['ldap']['lookuppwd'] = 'userPassword';

/// END COPY FOR VERSION 1.2.0 ///
?>
Logged
kilerb
Newbie
*

Karma: 0
Posts: 17


« Reply #20 on: March 03, 2008, 02:17:11 PM »

Hi Nick...  Think there's any hope here?  This is so baffling.  I'm on a server with the latest amenities and I think everything was done correctly.  Has anyone else solved this problem that was having this same issue?

Thanks!
Brian
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #21 on: March 04, 2008, 09:34:36 AM »

I guess one thing to double check is that both constants.php and langs.php exist in your config directory.  Other than that, I'm pretty much clueless.  You can include init.php from config.php, but you cannot include constants.php or langs.php from init.php.

One thing that is standing out in your log file is this
Quote
open_basedir restriction in effect


I'd google that and see if there is something weird with your php configuration.
Logged
kilerb
Newbie
*

Karma: 0
Posts: 17


« Reply #22 on: March 04, 2008, 03:18:57 PM »

Quote from: "Nick"
I guess one thing to double check is that both constants.php and langs.php exist in your config directory.  Other than that, I'm pretty much clueless.  You can include init.php from config.php, but you cannot include constants.php or langs.php from init.php.

One thing that is standing out in your log file is this
Quote
open_basedir restriction in effect


I'd google that and see if there is something weird with your php configuration.



I think you're on to something here...  I did a search and after reading a few pages, this guy seemed to have the exact same problem.   ttp://forum.mamboserver.com/showthread.php?t=1263    

I guess my quesion is now...  How do I do what he did?  Where does one go to change their php settings like changing open_basedir to none?  

Thanks again!
Brian
Logged
kilerb
Newbie
*

Karma: 0
Posts: 17


« Reply #23 on: March 04, 2008, 03:45:57 PM »

I also just found this...

Since your Error comes from a open_basedir restriction (possibly locking you out of the tmp directory where the ManifestBuilder wants to write to). It should be sufficient to disable open_basedir, or (more secure) set it to the required directories (separated with a colon).


I'm really a newbie.  I don't know HOW to do that...  I'm looking everywhere and each post I find says what to do, but not how to do it.

Here is it on their support site.  I'm just not sure how to edit these things...


I am getting "open_basedir" error in the PHP script. How do I fix this error?
Article ID: 432
Last Review: Nov,08 2007
APPLIES TO:
 
Plesk for Linux/Unix
CAUSE
This error means that PHP script tries to access a folder that is not allowed for access. For security reasons PHP options for hosted domains in Plesk allow access to /tmp and http(s)docs folders only by default. The restrictions are limited by open_basedir PHP variable for each virtual host separately.



RESOLUTION
If you need to allow access for PHP scripts of specific virtual host to additional folder(s), 'open_basedir' option for the virtual host should be re-defined with new path value, several folder names are splitted by a colon. It can be done by user with root privileges only in domain's vhost.conf or vhost_ssl.conf (for SSL virtual host) files, see 'Including Directives into Web Server Configuration File' article in Plesk documentation for details.

 

Once the changes are made you need to rebuild Apache configuration files and restart Apache service using the following command in the shell, if vhost(_ssl).conf file is found, it will automatically be added to domain's httpd.include file:


# /usr/local/psa/admin/sbin/websrvmng -v -a

Examples:

 

NOTE: HTTPD_VHOSTS_D should be replaced with a real path to domain homes which may vary depending on Plesk version and OS, the current value can be known from /etc/psa/psa.conf file. ADD_PATH should be replaced with a real path to folder you need to allow access to.

 

Create HTTPD_VHOSTS_D/domain.com/conf/vhost.conf:

<Directory HTTPD_VHOSTS_D/domain.com/httpdocs>
php_admin_value open_basedir "HTTPD_VHOSTS_D/domain.com/httpdocs:/tmp:/ADD_PATH"
</Directory>

 

Create HTTPD_VHOSTS_D/domain.com/conf/vhost_ssl.conf:

<Directory HTTPD_VHOSTS_D/domain.com/httpsdocs>
php_admin_value open_basedir "HTTPD_VHOSTS_D/domain.com/httpsdocs:/tmp:/ADD_PATH"
</Directory>

 

For subdomains create HTTPD_VHOSTS_D/domain.tld/subdomains/subdomain/conf/vhost.conf file accordingly:

<Directory HTTPD_VHOSTS_D/domain.com/subdomains/subdomain/httpdocs>
php_admin_value open_basedir "HTTPD_VHOSTS_D/domain.com/subdomains/subdomain/httpdocs:/tmp:/ADD_PATH"
</Directory>

 

Also, you can set global 'open_basedir' for some needed location in /etc/php.ini, for example:
open_basedir = "/tmp"


Restart Apache after php.ini changing.
Logged
kilerb
Newbie
*

Karma: 0
Posts: 17


« Reply #24 on: March 10, 2008, 02:07:50 PM »

Well, if anybody knows how to turn off open_basedir in plesk, and can post it here, I'd be appreciative.  I'm in the unfortunate position of having no tech support with my virtual server.  My ISP considers dedicated and VPS servers more of a rental and your responsibility.  I'm subscribed to this topic so if anyone has any suggestions I will be notified via emial.  Thanks in advance!

Brian
Logged
marnaco
Newbie
*

Karma: 0
Posts: 3


« Reply #25 on: March 10, 2008, 08:18:27 PM »

Hi Nick,

I post my message here as I also have this issue of blank page after fresh install.

- the remote host is running MySQL  5.0.45 (SQL client version is 5.0.51) and PHP 4.4.3-dev
- the admin interface is through phpMyAdmin 2.11.3
- I use FileZilla 2.2.13a for files upload on the server
- I use Internet Explorer 7.0.5730.11 as a browser

I did a fresh install of 1.2.8 on a remote host, following instructions given in remote_host_install.html, ie :
- I created manually the DB through the phpMyAdmin interface, not by running the phpScheduleIt/install/setup.sql file
- As advised, I personalized the main variables in the config file, which I renamed to config.php
- I have set the safe mode flag to 1

At very first I had a message linked to the write permission for the session :
Warning: session_start() [function.session-start]: open(/mnt/104/sda/1/b/testfishing/sessions/sess_bee53d202c23ad2cbe2b8744ed31fa90, O_RDWR) failed: No such file or directory (2) in /mnt/104/sda/1/b/testfishing/phpScheduleIt/config/init.php on line 39
But I solved it by creating the /sessions directory at the root level of my file space.

Once this solved, I now face a blank screen when I query http:// ***MyHostPath*** /phpScheduleIt/ URL in my browser

Any idea on what I may have missed ?

In order for me to try to solve this issue on my own, how can I trace how the code is behaving, or where it may be stuck ? Is there an easy way for me to insert display instructions in the code (print-like ?) - see comment from user "McCarthySites" on the 3rd post on page 1 of this thread about errors that should be dumped, but that may not be on my host ?
Maybe that could lead me to finally contributing to this forum... ;-)

Many thanks in advance for your help.

Olivier
Logged
kilerb
Newbie
*

Karma: 0
Posts: 17


« Reply #26 on: March 10, 2008, 08:33:53 PM »

**UPDATE!!!!**


I contacted the ops manager at my ISP, he had them disable the open_basedir on that site and it is working!  So that is one reason you might get a blank screen for SURE!  Now I have to figure out how to use this puppy...

Thanks for all your follow up Nick, I know there's only so much you can do from that end...  

Thanks again,
Brian
Logged
Crimzhy
Newbie
*

Karma: 0
Posts: 1


« Reply #27 on: October 16, 2009, 02:38:36 AM »

I also encountered this errors. Tentatively i am busy searching for the possible solutions of this errors. I hope i will find it.


_________________
Home security systems
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #28 on: October 19, 2009, 01:27:52 PM »

Some of the usual suspects are:

config.new.php not renamed to config.php
config file corruption
file system permissions issues
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!