Problem after installing "Hermes" skin

113345

Verified User
Joined
Mar 14, 2004
Messages
33
Location
The Netherlands
Hi,

Using DA v1.21.3 and Hermes 1.12
After the install I changed the skin for the reseller and the user.
Right after logging in I get:

Content-type: text/html X-Powered-By: PHP/4.3.6
Parse error: parse error, unexpected '|' in /usr/local/directadmin/data/skins/hermes/reseller/skins.html on line 5

I managed to put the default skin back through the user.conf files.
What should I do now, because I would like to test the skin.
 
Content-type: text/html X-Powered-By: PHP/4.3.6

That's not a DA http header...seems like an apache header to me.

John
 
Hi,

@neorder:

I deinstalled "Hermes" through the panel and checked if the directory was gone. After that I uploaded and installed the skin again with the same results.

@John:

my config is a little different from the original install.
suPHP is installed, but the config lines (in httpd.conf):
suPHP_Engine on
AddHandler x-httpd-php .php
are only used in "Custom Httpd Configurations" for normal users

The PHP is the CGI type:
www1# php -v
PHP 4.3.6 (cgi) (built: Apr 29 2004 16:15:16)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

The Hermes skin uses php.

Could this be the problem?

To check if suPHP works I installed Coppermine as a user, and that works perfectly.

I am confused now.
 
Answering my own question:

The suPHP config was the problem, because is uses the CGI php.
This problem was solved by having two php executables:
/usr/local/php and /usr/local/php.cgi
I changed the suPHP Makefile to use /usr/local/php.cgi.
DirectAdmin can now use the normal CLI php.

@John:
The header:
Content-type: text/html X-Powered-By: PHP/4.3.6
is the CGI php header, the CLI php does not have a header.

The "Hermes" skin works fine now.
 
Last edited:
Back
Top