Creek Posted March 29, 2012 Posted March 29, 2012 For several weeks I try to run the Custom Web Publishing. Unfortunately, I encountered several problems. I see in the browser only a blank page. My configuration: OS: Mac OS X 10.6 Server (Snow Leopard Server), currently 10.6.8 PHP 5.3.8 Apache 2.2.21 FileMaker Server 11.0.4.404 What I've done so far: Before installing the server, I installed the Pear Date Package. cURL was already running. In php.ini location I added of the FileMaker API. I also enabled CGI support. (http://support.apple...iewlocale=en_US) In Server Admin I turned off all Redirects for web sites. When installing FMS I chose the option "Use my existing installation of the PHP engine." The installation was successful. Test Page is also active. And at this point my problems start. I run Filemaker PHP Site Assistant and create the webpage using FMServer_Sample base. When I use the "View Site" I see only a blank white page. When I use the "Generate Site" and save my page in the /Library/WebServer/Documents and then run it again I see a white blank page again. I really need to have this operational. I would be very much obliged for any help. (This is a copy of my post from another forum. I'm sorry but I am looking for support everywhere)
Steven H. Blackwell Posted March 29, 2012 Posted March 29, 2012 Well, as a starter, in the Privilege Set for the Account you are using to access the files, is the PHP privilege bit enabled? Steven
Creek Posted March 29, 2012 Author Posted March 29, 2012 Well, as a starter, in the Privilege Set for the Account you are using to access the files, is the PHP privilege bit enabled? Yes of course. I have tested several databases. I set Access via PHP Web Publishing. Aleksander
doughemi Posted March 29, 2012 Posted March 29, 2012 Start with a simpler php script: <?php ini_set('display_errors', '1'); define('FM_HOST', '<database url>');// replace with actual url of your database $fm_file = '<YourDatabase>';// replace with your database name $fm_user = '<username>' ;// replace with your account name $fm_pass = '<webpwd>' ;// replace with your password include ('include/filemaker/FileMaker.php');// replace with actual path to the Filemaker API files # instantiate a new FileMaker object $fm = new FileMaker($fm_file, FM_HOST, $fm_user, $fm_pass); $connected = $fm->listLayouts(); if(FileMaker::isError($connected)){ die('Error - ' . $rec->getCode() . ' ' . $rec->getMessage()); } else { echo 'connected'; } ?> If all is well, you will see just the word "connected" on the screen. If not, repost with the error messages you see. My first inclination is the path to the Filemaker API is incorrect.
Creek Posted March 30, 2012 Author Posted March 30, 2012 I ran your script - it works without problems. I see connected. <?php ini_set('display_errors', '1'); define('FM_HOST', '<URL>');// replace with actual url of your database $fm_file = 'FMServer_Sample.fp7';// replace with your database name $fm_user = 'Admin' ;// replace with your account name $fm_pass = '' ;// replace with your password include ('/usr/lib/php/FileMaker/FileMaker.php');// replace with actual path to the Filemaker API files # instantiate a new FileMaker object $fm = new FileMaker($fm_file, FM_HOST, $fm_user, $fm_pass); $connected = $fm->listLayouts(); if(FileMaker::isError($connected)){ die('Error - ' . $rec->getCode() . ' ' . $rec->getMessage()); } else { echo 'connected'; } ?> > My first inclination is the path to the Filemaker API is incorrect. I suppose you're right. Why code from PHP Site Assistant does not run? More details: Location of php.ini Loaded Configuration File /private/etc/php.ini ( Info from phpinfo() ) Part of the php.ini file include_path = ".:/php/includes:/usr/lib/php/pear:/usr/lib/php/FileMaker"
Creek Posted March 30, 2012 Author Posted March 30, 2012 I think I know what is wrong. I don't have Date.php file. I guess my install pear package wasn't correct. I performed the installation again Pear (http://sudhanshurahe...with-php-5-3-3/) But I still don't have a file Date.php --- Ok. I installed the package Date (1.4.7) and is now finally working. http://pear.php.net/...e/Date/download
Recommended Posts
This topic is 4973 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now