Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

undefined function() + can't load module question yet agai..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  bad french characters  
Author Message
user2411

External


Since: Aug 04, 2003
Posts: 1



(Msg. 1) Posted: Mon Aug 04, 2003 3:44 pm
Post subject: undefined function() + can't load module question yet again (and a partial sollu
Archived from groups: php>install, others (more info?)

First I am a newbie to php, apache and mysql - I'm not new to
programming etc. I seriously want to learn this. I'm specifically
chosing this environment in order to have the option to move to linux
later on.

I am learning (teaching my self) to run a combination of php, apache
and mysql (versions are php 4.3.2, apache 2.0.47, mysql 4.0.14) My os
is windows 2000 pro.
  I have gone through a systematic installation procedure trying
to elininated various problems and ended with a (mostly) working
installation.

My conclusions so far are
1) that a standard win-installation installs a cgi-version of php.
2) php4 does not work as a module on apache under windows.
3) an array of functions do not work in the cgi-version.
4) The "compiled in" note on some functionality does not mean this
functionality is available by default in the cgi-version of php, how
it is enabled is unclear to me.

I would be very happy if someone could tell me if any of these are
true.

My long and sad story Wink
I have been through lots of news group messages recently, and searched
the php and apache sites. I have seen several question about this, and
a few suggestions, but apparently I'm not capable of reading /
understanding those answers (most answers suggest different compiling
settings which is irrelevant to a window user).
  Initially I tried to install php from the zip-binaries (you
copy all files to a suitable location, and edit the php.ini and
httpd.conf yourself) I followed instructions to run php as a module in
apache:
LoadModule php4_module "C:/php/sapi/php4apache2.dll"
  Results in the well known error: Cannot load
C:/PHP/sapi/php4apache2.dll into server: The specified module could
not be found.
  Of course the path is valid, and I have tried with forward and
backward slahes.
  I tried the exact same on the php5beta (I changed folder names
so php5 was in the same location) the only change whatsoever was
(apart from the entire php5 substituted for php4):

LoadModule php5_module "C:/php/sapi/php4apache2.dll"

Now it loaded without error. In stead I got an error on calling
mysql_connect() - Fatal error Call to undefined function
mysql_connect. Ok php5 does not yet support mysql. It shows though
that the loadmudule syntaks in the ini-files apparently is ok and this
can not be the reason for php4 failing to load in apache.

Now I have made a standard installation of all products (from binary
install .exe programs) and put all programs in standard folders etc.
  This leads to a situation where everything seems to work. But
now I get errors calling fx apache_request_headers(): Fatal error Call
to undefined function apache_request_headers. The same result with
getallheaders().

Finn<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: undefined function() + can't load module question yet agai.. 
Back to top
Login to vote
spam3

External


Since: Jul 01, 2003
Posts: 411



(Msg. 2) Posted: Wed Aug 06, 2003 7:01 pm
Post subject: Re: undefined function() + can't load module question yet again (and [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Finn wrote:
 > My conclusions so far are
 > 1) that a standard win-installation installs a cgi-version of php.

The installer does. If you use the zip file, you have to manually
install according the directions in the distribution.

 > 2) php4 does not work as a module on apache under windows.

Yes, it does - that's the only way I use it.

 > 4) The "compiled in" note on some functionality does not mean this
 > functionality is available by default in the cgi-version of php, how
 > it is enabled is unclear to me.

check php.ini for "Windows Extensions" and uncomment the ones you want
enabled.

  > Initially I tried to install php from the zip-binaries (you
 > copy all files to a suitable location, and edit the php.ini and
 > httpd.conf yourself) I followed instructions to run php as a module in
 > apache:
 > LoadModule php4_module "C:/php/sapi/php4apache2.dll"
  > Results in the well known error: Cannot load
 > C:/PHP/sapi/php4apache2.dll into server: The specified module could
 > not be found.

Don't forget to copy the necessary dll files for the system as well.
Also, you shouldn't use php with apache2 for production either, so keep
that in mind.

--
Justin Koivisto - spam DeleteThis @koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: undefined function() + can't load module question yet agai.. 
Back to top
Login to vote
meel_me_niet

External


Since: Aug 06, 2003
Posts: 9



(Msg. 3) Posted: Wed Aug 06, 2003 8:48 pm
Post subject: Re: undefined function() + can't load module question yet again (and a partial s [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

try easyphp.... saves lots of time
<a style='text-decoration: underline;' href="http://www.easyphp.org" target="_blank">http://www.easyphp.org</a>

grtx Niels

"Finn" <finn> wrote in message
news:l7esiv8b5ucsphisbnlp7ndta74gkd10n1@4ax.com...
 > First I am a newbie to php, apache and mysql - I'm not new to
 > programming etc. I seriously want to learn this. I'm specifically
 > chosing this environment in order to have the option to move to linux
 > later on.
 >
 > I am learning (teaching my self) to run a combination of php, apache
 > and mysql (versions are php 4.3.2, apache 2.0.47, mysql 4.0.14) My os
 > is windows 2000 pro.
 > I have gone through a systematic installation procedure trying
 > to elininated various problems and ended with a (mostly) working
 > installation.
 >
 > My conclusions so far are
 > 1) that a standard win-installation installs a cgi-version of php.
 > 2) php4 does not work as a module on apache under windows.
 > 3) an array of functions do not work in the cgi-version.
 > 4) The "compiled in" note on some functionality does not mean this
 > functionality is available by default in the cgi-version of php, how
 > it is enabled is unclear to me.
 >
 > I would be very happy if someone could tell me if any of these are
 > true.
 >
 > My long and sad story Wink
 > I have been through lots of news group messages recently, and searched
 > the php and apache sites. I have seen several question about this, and
 > a few suggestions, but apparently I'm not capable of reading /
 > understanding those answers (most answers suggest different compiling
 > settings which is irrelevant to a window user).
 > Initially I tried to install php from the zip-binaries (you
 > copy all files to a suitable location, and edit the php.ini and
 > httpd.conf yourself) I followed instructions to run php as a module in
 > apache:
 > LoadModule php4_module "C:/php/sapi/php4apache2.dll"
 > Results in the well known error: Cannot load
 > C:/PHP/sapi/php4apache2.dll into server: The specified module could
 > not be found.
 > Of course the path is valid, and I have tried with forward and
 > backward slahes.
 > I tried the exact same on the php5beta (I changed folder names
 > so php5 was in the same location) the only change whatsoever was
 > (apart from the entire php5 substituted for php4):
 >
 > LoadModule php5_module "C:/php/sapi/php4apache2.dll"
 >
 > Now it loaded without error. In stead I got an error on calling
 > mysql_connect() - Fatal error Call to undefined function
 > mysql_connect. Ok php5 does not yet support mysql. It shows though
 > that the loadmudule syntaks in the ini-files apparently is ok and this
 > can not be the reason for php4 failing to load in apache.
 >
 > Now I have made a standard installation of all products (from binary
 > install .exe programs) and put all programs in standard folders etc.
 > This leads to a situation where everything seems to work. But
 > now I get errors calling fx apache_request_headers(): Fatal error Call
 > to undefined function apache_request_headers. The same result with
 > getallheaders().
 >
 > Finn<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: undefined function() + can't load module question yet agai.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Converting a module from 1.3 to 2.0? Help? - Hello, I was wondering if someone feels like converting a module from Apache 1.3 to 2.0... It's a VERY simple module, I understand all of it easily exept the API thingys... Otherwise, could someone give me a nice unofficial tutorial on Apache 2 module..

APACHE and PHP module - Hi , I got my multiple sites running now and I found I need to use PHP config directives in apache ..So I set up PHP to run as a module last night and got it to work ( I think !) .. How can I test PHP to see if its in the new configuration ?.So far I can...

Cannot remove module mod_usertrack.c: not found in modullist - While I am trying to shutdown the apache on an NT machine then it is giving an unclean shutdown .. and errors like when I do a apache -l then these modules are not in the list I wonder why .. this error is coming .. can someone help resolve this error ...

Apache Very Slow to Load - Hi, I've just recently installed RH Linux 7.2 and am running Apache 1.3.20. It seems that whenever I try to load a page either on the LAN or over the internet, it takes over a minute to download the whole page. I have asked my friends to test the site..

apache + tomcat + mod_jk to load jsp pages through apache - I'm continuing to try to get apache, tomcat, and the connector to work so apache passes jsp page requests to tomcat. It still is not functional, but still haven't found the culprit of why this isn't working. My configuration including perhaps tail-tell..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]