Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Custom Web Publishing on Mac OS X 10.6.8

Featured Replies

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)

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

  • 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

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.

  • 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"

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.