Prince XML Installation Question

Good day.

We have decided to start with a self-hosted installation of Pressbooks for faculty to work in for OER material. I’m setting up a new system and have most of it installed and configured, but I’m having issues with getting PrinceXML to show as installed for media export. On the Export page in Pressbooks it has pdf for print and pdf for digital output as unavailable, and at the top, there is the standard statement that some dependencies have not been met and to refer to the installation instructions.

The diagnostics page shows:

System Information

Root Blog Info

Root Blog ID: 1
Root Blog URL: http://pressbooks.pprd.odu.edu/

Browser

Platform: Windows
Browser Name: Firefox
Browser Version: 60.0
User Agent String: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0

WordPress Configuration

Network URL: http://pressbooks.pprd.odu.edu/
Network Type: Subdirectory
Version: 4.9.8
Language: en-US
WP_ENV: Not set
WP_DEBUG: Disabled
Memory Limit: 64M

Pressbooks Configuration

Version: 5.6.2
Root Theme: Aldine
Root Theme Version: 1.5.0

Pressbooks Dependencies

Epubcheck: Installed
Kindlegen: Installed
xmllint: Installed
PrinceXML: Not Installed
Saxon-HE: Installed

Must-Use Plugins

hm-autoloader.php: n/a

Network Active Plugins

Akismet Anti-Spam: 4.1
Avatars For Multisite: 4.1.8
Blog Activity: 1.1.6
Pressbooks: 5.6.2
Ultimate Branding: 2.3.0
WPMU DEV Dashboard: 4.6

Root Blog Active Plugins

Akismet Anti-Spam: 4.1
Avatars For Multisite: 4.1.8
Blog Activity: 1.1.6
Pressbooks: 5.6.2
Ultimate Branding: 2.3.0
WPMU DEV Dashboard: 4.6

Inactive Plugins

Server Configuration

PHP Version: 7.1.8
MySQL Version: 5.6.40
Webserver Info: Apache

PHP Configuration

Safe Mode: Disabled
Memory Limit: 512M
Upload Max Size: 512M
Post Max Size: 128M
Upload Max Filesize: 512M
Time Limit: 300
Max Input Vars: 2000
URL-aware fopen: On (1)
Display Errors: On (1)

PHP Extensions

OPcache: Zend
XDebug: Disabled
cURL: Supported
cURL Version: 7.29.0
imagick: Not Installed
xsl: Installed

The item that catches my eye is that it indicates that PrinceXML is not installed. However, when I go to the command line on the server I can access prince without any issues:

[appadm69@merona ~]$ prince --version
Prince 12.2
Copyright 2002-2018 YesLogic Pty. Ltd.
Non-commercial License
[appadm69@merona ~]$

I’ve gone through the wp-config.php file a couple of times and have the following lines which all seem correct:

/* required for Pressbooks output options */
define( ‘PB_PRINCE_COMMAND’, ‘/usr/local/prince’ );
define( ‘PB_KINDLEGEN_COMMAND’, ‘/usr/local/KindleGen/kindlegen’ );
define( ‘PB_EPUBCHECK_COMMAND’, ‘/usr/bin/java -jar /usr/local/epubcheck-4.0.2/epubcheck-4.0.2/epubcheck.jar’ );
define( ‘PB_XMLLINT_COMMAND’, ‘/usr/bin/xmllint’ );
define( ‘PB_SAXON_COMMAND’, ‘/usr/bin/java -jar /usr/local/SaxonHE9-7-0-10J/saxon9he.jar’ );

Any suggestions about why PriceXML isn’t showing as installed? Any other command line options I can do to help diagnose?

appreciate any help.

Thanks
Dave

Sorry for jumping the gun. As I was typing that note, I was thinking about the installation and realized my error.

I’ve got it working now. It was an error in the wp-config.php file

case solved

1 Like

my bro, how did you install it in windows platform?
mine still like this:

System Information

Book Info

Book ID: 2
Book URL: http://booktemp.local/temp/
Book Privacy: Public

Browser

Platform: Windows
Browser Name: Chrome
Browser Version: 77.0.3865.90
User Agent String: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36

WordPress Configuration

Network URL: http://booktemp.local/
Network Type: Subdirectory
Version: 5.2.3
Language: en_US
WP_ENV: Not set
WP_DEBUG: Enabled
Memory Limit: 64M

Pressbooks Configuration

Version: 5.9.2
Book Theme: McLemore
Book Theme Version:
Root Theme: Aldine
Root Theme Version: 1.6.4

Pressbooks Dependencies

Epubcheck: Not Installed
Kindlegen: Not Installed
xmllint: Not Installed
PrinceXML: Not Installed
Saxon-HE: Not Installed

Must-Use Plugins

hm-autoloader.php: n/a

Network Active Plugins

Pressbooks: 5.9.2

Book Active Plugins

Pressbooks: 5.9.2

Inactive Plugins

Server Configuration

PHP Version: 7.3.2
MySQL Version: 5.6.34
Webserver Info: Apache/2.4.10 (Debian)

PHP Configuration

Safe Mode: Disabled
Memory Limit: 256M
Upload Max Size: 1000M
Post Max Size: 1000M
Upload Max Filesize: 1000M
Time Limit: 900
Max Input Vars: 3000
URL-aware fopen: On (1)
Display Errors: On (1)

PHP Extensions

OPcache: Zend
XDebug: Enabled
cURL: Supported
cURL Version: 7.38.0
imagick: Installed
xsl: Installed