On Sun, 21 May 2006 15:00:00 -0500, Graham Frank wrote
> Check if the libphp4.so file is listed in the httpd.conf file in the 
> LoadModule section.


Okay I uncommented the php4_module line in my httpd.conf file.  now there is a
new error.  looks like libphp4.so does not exist.  the php4 build from usr
ports is not putting it in there or something.


--- snip ---

# pwd
/usr/local/etc/apache22
# grep php4 httpd.conf
LoadModule php4_module        libexec/apache22/libphp4.so

# /usr/local/etc/rc.d/apache22.sh restart
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 101 of /usr/local/etc/apache22/httpd.conf: Cannot
load /usr/local/libexec/apache22/libphp4.so into server: Cannot open
"/usr/local/libexec/apache22/libphp4.so"

# find /usr -name libphp4.so
/usr/ports/lang/php4-horde/work/php-4.3.6/.libs/libphp4.so
/usr/ports/lang/php4-horde/work/php-4.3.6/libs/libphp4.so

# ls /usr/local/libexec/apache22
httpd.exp               mod_cache.so            mod_log_config.so
mod_actions.so          mod_cern_meta.so        mod_logio.so
mod_alias.so            mod_cgi.so              mod_mime.so
mod_asis.so             mod_charset_lite.so     mod_mime_magic.so
mod_auth_basic.so       mod_dav.so              mod_negotiation.so
mod_auth_digest.so      mod_dav_fs.so           mod_rewrite.so
mod_authn_anon.so       mod_deflate.so          mod_setenvif.so
mod_authn_dbm.so        mod_dir.so              mod_speling.so
mod_authn_default.so    mod_disk_cache.so       mod_ssl.so
mod_authn_file.so       mod_env.so              mod_status.so
mod_authz_dbm.so        mod_expires.so          mod_unique_id.so
mod_authz_default.so    mod_file_cache.so       mod_userdir.so
mod_authz_groupfile.so  mod_filter.so           mod_usertrack.so
mod_authz_host.so       mod_headers.so          mod_version.so
mod_authz_owner.so      mod_imagemap.so         mod_vhost_alias.so
mod_authz_user.so       mod_include.so
mod_autoindex.so        mod_info.so


--- snip ---


more clues please?

Cheers,

Noah



> 
> LoadModule php4_module modules/libphp4.so
> 
> tho modules could be libexec or any other directory apache places 
> its modules.
> 
> --Graham Frank
> 
> -----Original Message-----
> 
> From:  "Noah" <[EMAIL PROTECTED]>
> Subj:  Re: [EMAIL PROTECTED] Invalid command 'php_flag'
> Date:  Sun May 21, 2006 1:57 pm
> Size:  2K
> To:  users@httpd.apache.org
> 
> On Sun, 21 May 2006 13:33:00 -0500, Graham Frank wrote
> > Hello,
> > 
> > It appears that you do not have PHP installed.  You can download PHP 
> > at www.php.net and compile it as an apache module using
> --with-apxs2=/path/to/apxs
> 
> Yeah that did not work.
> 
> I reinstalled php4 from the /usr/ports and still things are not working.
> I reinstalled apache2.2.2 after I reinstalled php4 and things still 
> are not working
> 
> --- snip ---
> # pkg_info | grep php4
> pkg_info: the package info for package 'gnomedesktop-2.14.1.1' is corrupt
> php4-4.4.2_2        PHP Scripting Language (Apache Module and CLI)
> php4-bz2-4.4.2_2    The bz2 shared extension for php
> php4-ctype-4.4.2_2  The ctype shared extension for php
> php4-domxml-4.4.2_2 The domxml shared extension for php
> php4-ftp-4.4.2_2    The ftp shared extension for php
> php4-gd-4.4.2_2     The gd shared extension for php
> php4-gettext-4.4.2_2 The gettext shared extension for php
> php4-iconv-4.4.2_2  The iconv shared extension for php
> php4-imap-4.4.2_2   The imap shared extension for php
> php4-ldap-4.4.2_2   The ldap shared extension for php
> php4-mbstring-4.4.2_2 The mbstring shared extension for php
> php4-mcal-4.4.2_2   The mcal shared extension for php
> php4-mcrypt-4.4.2_2 The mcrypt shared extension for php
> php4-mysql-4.4.2_2  The mysql shared extension for php
> php4-openssl-4.4.2_2 The openssl shared extension for php
> php4-pcre-4.4.2_2   The pcre shared extension for php
> php4-session-4.4.2_2 The session shared extension for php
> php4-xml-4.4.2_2    The xml shared extension for php
> php4-xmlrpc-4.4.2_1 The xmlrpc shared extension for php
> php4-zlib-4.4.2_2   The zlib shared extension for php
> 
> # pkg_info | grep apache
> pkg_info: the package info for package 'gnomedesktop-2.14.1.1' is corrupt
> apache-2.2.2        Version 2.2 of Apache web server with prefork 
> MPM. apachetop-0.12.6    Apache RealTime log stats
> 
> ---s nip ---
> 
> what else can I try here?
> 
> Cheers,
> 
> Noah
> 
> > 
> > --Graham Frank
> > 
> > -----Original Message-----
> > 
> > From:  "Noah" <[EMAIL PROTECTED]>
> > Subj:  [EMAIL PROTECTED] Invalid command 'php_flag'
> > Date:  Sun May 21, 2006 1:29 pm
> > Size:  894 bytes
> > To:  "apache" <users@httpd.apache.org>
> > 
> > apache-2.2.2
> > freebsd-4.11
> > 
> > Hi there,
> > 
> > I think I have an important module missing.  Can somebody please 
> > help me figure out what the next step of troubleshooting is for this 
> > situation?
> > 
> > --- snip ---
> > 
> > # /usr/local/etc/rc.d/apache22.sh restart
> > Performing sanity check on apache22 configuration:
> > Syntax error on line 174 of /usr/local/etc/apache22/httpd.conf:
> > Invalid command 'php_flag', perhaps misspelled or defined by a 
> > module not included in the server configuration
> > 
> > --- snip ---
> > 
> > Cheer,s
> >
> 
> --- message truncated ---
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to