|
From: Richard M. P. <ri...@pa...> - 2002-02-21 07:21:54
|
I've installed phpESP on two other machines with no problem. I just
installed in on the real server and there's a problem. At the top of every
page I get this:
Parse error: parse error in
/home/sites/home/web/phpESP/admin/include/lib/esphtml.results.inc on line 238
(Line 238 is the last line of the file.)
That file's contents are exactly the same on all three servers. What's
different is I don't have a root account on the real server so I put phpESP
in the web directory. All three servers are using php 4.1.1. On the problem
server, here's how it was compiled:
'./configure' '--prefix=/usr/local' '--with-apxs=/usr/sbin/apxs'
'--with-pgsql=/usr/local/pgsql_user' '--enable-mbregex' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-trans-sid'
On the no problem servers,
'./configure' '--prefix=/usr/local'
'--with-config-file-path=/etc/httpd/conf' '--with-apxs=/usr/sbin/apxs'
'--enable-track-vars' '--enable-trans-sid' '--enable-versioning'
'--enable-apc' '--with-calendar=shared' '--with-gdbm=/usr/include'
'--with-db=/usr' '--enable-mbstring' '--enable-mbstr-enc-trans'
'--with-mysql=/usr'
'./configure' '--prefix=/usr/local'
'--with-config-file-path=/etc/httpd/conf' '--with-apxs=/usr/sbin/apxs'
'--enable-track-vars' '--enable-trans-sid' '--enable-versioning'
'--enable-apc' '--with-calendar=shared' '--with-gdbm=/usr/include'
'--with-db=/usr' '--enable-mbstring' '--enable-mbstr-enc-trans'
Here's how I modified the admin files on the problem server:
[richard phpESP]$ grep -r 'sites' *
admin/manage.php: $CONFIG = '/home/sites/home/web/phpESP/admin/phpESP.ini';
admin/phpESP.ini:$locale_path = '/home/sites/home/web/phpESP/locale';
admin/phpESP.ini:'include_path' => '/home/sites/home/web/phpESP/admin/include/',
admin/phpESP.ini:'handler' =>
'/home/sites/home/web/phpESP/public/handler.php',
admin/phpESP.ini:'handler_prefix' =>
'/home/sites/home/web/phpESP/public/handler-prefix.php',
admin/.htaccess:AuthUserFile /home/sites/home/web/phpESP/admin/.htpasswd
public/handler-prefix.php:
require('/home/sites/home/web/phpESP/admin/phpESP.ini');
public/handler.php: require('/home/sites/home/web/phpESP/admin/phpESP.ini');
On one of the no problem servers:
[root@academy-if phpESP]# grep -r 'contrib' *
admin/manage.php: $CONFIG =
'/usr/local/lib/php/contrib/phpESP/admin/phpESP.ini';
admin/phpESP.ini:$locale_path = '/usr/local/lib/php/contrib/phpESP/locale';
admin/phpESP.ini:'include_path' =>
'/usr/local/lib/php/contrib/phpESP/admin/include/',
admin/phpESP.ini:'handler' =>
'/usr/local/lib/php/contrib/phpESP/public/handler.php',
admin/phpESP.ini:'handler_prefix' =>
'/usr/local/lib/php/contrib/phpESP/public/handler-prefix.php',
public/handler-prefix.php:
require('/usr/local/lib/php/contrib/phpESP/admin/phpESP.ini');
public/handler.php:
require('/usr/local/lib/php/contrib/phpESP/admin/phpESP.ini');
The cause must be something trivial, but for the life of me, even after a
two hour staring contest with my PC, I can't figure it out.
Thanks,
Rich
BTW, I password protected the admin dir so phpESP.ini can't be downloaded.
|