March 29, 201213 yr 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)
March 29, 201213 yr 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
March 29, 201213 yr Author 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
March 29, 201213 yr 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.
March 30, 201213 yr Author 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"
March 30, 201213 yr Author 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
Create an account or sign in to comment