- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: PHP error blocks
Operating System - OpenVMS
1783193
Members
1679
Online
109144
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 11:27 PM
тАО04-16-2009 11:27 PM
After upgrade SWS from 1.3 to 2.1-1, I encounter the following error when executing some commands:
RBS02323@VAGB21> httpd -t
Syntax error on line 5 of /apache$root/conf/mod_php.conf:
Can't locate API module structure `php4_module' in file /apache$root/000000/modules/mod_php_apache-2_0.exe: function not implemented
I checked apache$root:[modules]mod_php_apache-2_0.exe and it _does_ contain this entrypoint, abeit in uppercase.
The problem occurs on the next options:
-k (used for flushing or cycle of logfiles, for instance)
-S (show virtual hosts)
-t syntax check for config files
making it impossible to flush or renew the logfiles of check the configuration.
Of course, PHP doesn't work either, although all is prepared: the configuration file contains the line to include php.conf (added by the installation program)
Where to look for clues? There is nothing in ERROR_LOG or ACCESS_LOG, nor is a PHP-logfile created.
(this is a 2-node, clustered environment, it happens on both nodes)
RBS02323@VAGB21> httpd -t
Syntax error on line 5 of /apache$root/conf/mod_php.conf:
Can't locate API module structure `php4_module' in file /apache$root/000000/modules/mod_php_apache-2_0.exe: function not implemented
I checked apache$root:[modules]mod_php_apache-2_0.exe and it _does_ contain this entrypoint, abeit in uppercase.
The problem occurs on the next options:
-k (used for flushing or cycle of logfiles, for instance)
-S (show virtual hosts)
-t syntax check for config files
making it impossible to flush or renew the logfiles of check the configuration.
Of course, PHP doesn't work either, although all is prepared: the configuration file contains the line to include php.conf (added by the installation program)
Where to look for clues? There is nothing in ERROR_LOG or ACCESS_LOG, nor is a PHP-logfile created.
(this is a 2-node, clustered environment, it happens on both nodes)
Willem Grooters
OpenVMS Developer & System Manager
OpenVMS Developer & System Manager
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 01:17 AM
тАО04-17-2009 01:17 AM
Solution
>>> Can't locate API module structure `php4_module' ...
... is likely the result of a dlsym() aka lib$fis. Unfortunately it doesn't give you much detail. It can be that it didn't find the lowercase name. Unkikely, lib$fis by default is case insensitive. It can be that a required shareable image for mod_php_apache-2_0. can't be found. For example PHPSHR.
I would check if I can activate MOD_PHP_APACHE-2_0, like
$ r APACHE$COMMON:[MODULES]MOD_PHP_APACHE-2_0
%DCL-W-ACTIMAGE, error activating image PHPSHR
-CLI-E-IMAGEFNF, image file not found $1$DKA500:[SYS0.SYSCOMMON.][SYSLIB]PHPSHR.
EXE;
$
... is likely the result of a dlsym() aka lib$fis. Unfortunately it doesn't give you much detail. It can be that it didn't find the lowercase name. Unkikely, lib$fis by default is case insensitive. It can be that a required shareable image for mod_php_apache-2_0. can't be found. For example PHPSHR.
I would check if I can activate MOD_PHP_APACHE-2_0, like
$ r APACHE$COMMON:[MODULES]MOD_PHP_APACHE-2_0
%DCL-W-ACTIMAGE, error activating image PHPSHR
-CLI-E-IMAGEFNF, image file not found $1$DKA500:[SYS0.SYSCOMMON.][SYSLIB]PHPSHR.
EXE;
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 02:10 AM
тАО04-17-2009 02:10 AM
Re: PHP error blocks
H. Becker's example revealed the same output:
$ r APACHE$COMMON:[MODULES]MOD_PHP_APACHE-2_0
%DCL-W-ACTIMAGE, error activating image PHPSHR
-CLI-E-IMAGEFNF, image file not found DSA1:[SYS2.SYSCOMMON.][SYSLIB]PHPSHR.EXE;
Solved by:
$ DEFINE/SYSTEM/EXEC PHPSHR APACHE$ROOT:[PHP.BIN]PHPSHR.EXE
After that:
$ r APACHE$COMMON:[MODULES]MOD_PHP_APACHE-2_0
%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual address=000000000000
2204, PC=00000000002B09D0, PS=0000001B
...
and httpd -k flush now works.
$ r APACHE$COMMON:[MODULES]MOD_PHP_APACHE-2_0
%DCL-W-ACTIMAGE, error activating image PHPSHR
-CLI-E-IMAGEFNF, image file not found DSA1:[SYS2.SYSCOMMON.][SYSLIB]PHPSHR.EXE;
Solved by:
$ DEFINE/SYSTEM/EXEC PHPSHR APACHE$ROOT:[PHP.BIN]PHPSHR.EXE
After that:
$ r APACHE$COMMON:[MODULES]MOD_PHP_APACHE-2_0
%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual address=000000000000
2204, PC=00000000002B09D0, PS=0000001B
...
and httpd -k flush now works.
Willem Grooters
OpenVMS Developer & System Manager
OpenVMS Developer & System Manager
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP