|
Related Topics:
| Can't Get jk2 to work - I am running Apache 2.0.47 and am trying to use the JK2 version 2.0.43, under Win XP. Apache, by itself works fine but when I include mod_jk2 I get an Apache startup error, locate API Module..
rewrite doesn't work - help - Hi, no matter what I try, I cannot get a simple rewrite example to work with my setup. I do have the rewrite module loaded. So I think it is because I just cannot seem to get correct the proper placement of the rewrite commands. I am not using..
JAR work on Apache? - I have some JAR applets that ran on a Windows Server. I just moved the web sites over to a Linux box and now the JAR applets do not work. See an error in the browser that the .class file is not found. Though the JAR file is there. ..
HELP: Can't get Apache and/or PHP to work - After a break of a few months, I'm trying to revive my on my PC so I can start a tutorial since I last used it, the no longer seems to work. These programs were *never* deleted or..
htaccess doesn't work - hi, i made an htaccess file with htpasswd file but it didn't seem to worl on that so i have to make an entry in for using htaccess?
|
|
|
Next: Apache: Client Authentication (SSLCACertificatePath - creating has..
|
| Author |
Message |
External

Since: Jul 11, 2003 Posts: 111
|
(Msg. 1) Posted: Mon Jun 13, 2005 2:55 pm
Post subject: PHP 5 Doesn't Work Archived from groups: alt>apache>configuration (more info?)
|
|
|
I'm running Apache 1.3 on my server. I've run the installer
file for PHP 5.0.4.
I paste the following code into the httpd.conf file:
# Add to the end of the LoadModule section
LoadModule php5_module "C:/php/php5apache.dll"
# Add to the end of the AddModule section
AddModule mod_php5.c
# Add this line inside the <IfModule mod_mime.c> conditional brace
AddType application/x-httpd-php .php
# For syntax highlighted .phps files, also add
AddType application/x-httpd-php-source .phps
Then, I go to the DOS prompt and type 'net stop apache'.
After it stops, I type 'net start apache'. I keep getting an error
message saying that Apache did not start.
The weird thing is tha there is no php5apache.dll file in the
C:\PHP subdirectory. There *is* a php5ts.dll file there. I tried
chaning that line to reflect the php5ts.dll, but that didn't work.
Any suggestions?
Fred<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: PHP 5 Doesn't Work |
|
| Back to top |
|
 |  |
External

Since: Mar 29, 2004 Posts: 672
|
(Msg. 2) Posted: Mon Jun 13, 2005 4:55 pm
Post subject: Re: PHP 5 Doesn't Work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Fred Atkinson" <fatkinson RemoveThis @mishmash.com> schreef in bericht
news:btira19cdj656npp0a33bm9q9hvae9kro3@4ax.com...
> Then, I go to the DOS prompt and type 'net stop apache'.
> After it stops, I type 'net start apache'. I keep getting an error
> message saying that Apache did not start.
The message logged in Window's system log should be more informative.
Alternatively, go to the folder where Apache is installed and run Apache as
a usertask.
> The weird thing is tha there is no php5apache.dll file in the
> C:\PHP subdirectory.
It may have been installed in some folder under c:\windows IF the user
running install had sufficient access rights.
> There *is* a php5ts.dll file there. I tried chaning that line
> to reflect the php5ts.dll, but that didn't work.
IIRC that's for use with Windows Terminal Server.
HansH<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: PHP 5 Doesn't Work |
|
| Back to top |
|
 |  |
External

Since: Jul 11, 2003 Posts: 111
|
(Msg. 3) Posted: Mon Jun 13, 2005 8:55 pm
Post subject: Re: PHP 5 Doesn't Work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Mon, 13 Jun 2005 22:14:10 +0200, "HansH" <hans.DeleteThis@niet.op.het.net>
wrote:
>"Fred Atkinson" <fatkinson.DeleteThis@mishmash.com> schreef in bericht
>news:btira19cdj656npp0a33bm9q9hvae9kro3@4ax.com...
>> Then, I go to the DOS prompt and type 'net stop apache'.
>> After it stops, I type 'net start apache'. I keep getting an error
>> message saying that Apache did not start.
>The message logged in Window's system log should be more informative.
>Alternatively, go to the folder where Apache is installed and run Apache as
>a usertask.
I'm not sure about where to find the system log or how to run
it as a 'user task?'.
>> The weird thing is that there is no php5apache.dll file in the
>> C:\PHP subdirectory.
>It may have been installed in some folder under c:\windows IF the user
>running install had sufficient access rights.
I was running under my own username, which has full
administrative rights.
>> There *is* a php5ts.dll file there. I tried chaning that line
>> to reflect the php5ts.dll, but that didn't work.
>IIRC that's for use with Windows Terminal Server.
I see. Hmmm.
>HansH
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: PHP 5 Doesn't Work |
|
| Back to top |
|
 |  |
External

Since: Jun 14, 2005 Posts: 1
|
(Msg. 4) Posted: Tue Jun 14, 2005 3:46 pm
Post subject: Re: PHP 5 Doesn't Work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
hi,
>>> There *is* a php5ts.dll file there. I tried chaning that line
>>> to reflect the php5ts.dll, but that didn't work.
looks like you just loaded the installable cgi-only package from php.net. if
you load the complete archive (zipped package, about 7,5 mb) than there you
will also find the necessary modlue-files php5apache.dll (for apache 1.3x)
and php5apache2.dll (for apache 2.x). just extract the archive over the
installation directory
bye<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: PHP 5 Doesn't Work |
|
| Back to top |
|
 |  |
External

Since: Mar 29, 2004 Posts: 672
|
(Msg. 5) Posted: Tue Jun 14, 2005 7:38 pm
Post subject: Re: PHP 5 Doesn't Work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Fred Atkinson" <fatkinson.DeleteThis@mishmash.com> schreef in bericht
news:aa7sa15jj6h1i85ubr9mrdanqulqti964d@4ax.com...
> On Mon, 13 Jun 2005 22:14:10 +0200, "HansH" <hans.DeleteThis@niet.op.het.net>
> wrote:
> >"Fred Atkinson" <fatkinson.DeleteThis@mishmash.com> schreef in bericht
> >news:btira19cdj656npp0a33bm9q9hvae9kro3@4ax.com...
> >> Then, I go to the DOS prompt and type 'net stop apache'.
> >> After it stops, I type 'net start apache'. I keep getting an error
> >> message saying that Apache did not start.
> >The message logged in Window's system log should be more informative.
> >Alternatively, go to the folder where Apache is installed and run Apache
as
> >a usertask.
> I'm not sure about where to find the system log
Start with 'This computer' right-click 'manage' and you'll probably find
your way where translation fails on me.
> or how to run it as a 'user task?'.
In this case, run it from a DOSsie prompt
HansH<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: PHP 5 Doesn't Work |
|
| Back to top |
|
 |  |
External

Since: Jul 11, 2003 Posts: 111
|
(Msg. 6) Posted: Thu Jun 16, 2005 10:55 am
Post subject: Re: PHP 5 Doesn't Work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 14 Jun 2005 15:46:16 +0200, "Christian" <mcw.TakeThisOut@lockfile.org>
wrote:
>hi,
>
>>>> There *is* a php5ts.dll file there. I tried chaning that line
>>>> to reflect the php5ts.dll, but that didn't work.
>
>looks like you just loaded the installable cgi-only package from php.net. if
>you load the complete archive (zipped package, about 7,5 mb) than there you
>will also find the necessary modlue-files php5apache.dll (for apache 1.3x)
>and php5apache2.dll (for apache 2.x). just extract the archive over the
>installation directory
>
>bye
>
I just downloaded the latest version of PHP 5.0. I unzipped
it to the C:\PHP directory (I had deleted all files that were there
before).
I put these two lines of code into my httpd.conf file:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
I stopped Apache. I restarted Apache. Again, it won't
restart. So I am removing those two lines.
Any other suggestions?
Fred<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: PHP 5 Doesn't Work |
|
| Back to top |
|
 |  |
External

Since: Mar 29, 2004 Posts: 672
|
(Msg. 7) Posted: Thu Jun 16, 2005 3:55 pm
Post subject: Re: PHP 5 Doesn't Work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Fred Atkinson" <fatkinson DeleteThis @mishmash.com> schreef in bericht
news:9023b1d5a3haec9o0k020ahch1q058fu9a@4ax.com...
> On Tue, 14 Jun 2005 15:46:16 +0200, "Christian" <mcw DeleteThis @lockfile.org>
> I just downloaded the latest version of PHP 5.0. I unzipped
> it to the C:\PHP directory
> (I had deleted all files that were there before).
Now you probably lost your php.ini ...
> I put these two lines of code into my httpd.conf file:
> LoadModule php5_module "c:/php/php5apache2.dll"
> AddType application/x-httpd-php .php
> I stopped Apache. I restarted Apache. Again, it won't restart.
You're running apache-1.3, than indeed php5apache2.dll will fail: try
php5apache.dll.
Instead of either option given in c:/php/readme.txt
" To make php4ts.dll / php5ts.dll available you have three options: copy
the file to the Windows system directory, copy the file to the web
server's directory, or add your PHP directory, C:\php to the PATH. For
better maintenance, we advise you to follow the last option, add
C:\php to the PATH, because it will be simpler to upgrade PHP in the
future. ..."
you may need to add this line before the 'LoadModule ...'
LoadFile c:/php/php5ts.dll
.... it's not the TerminalServer version, but the main library
[Oops, sorry!]
Next time please quote the failure report Apache returns if started
_directly_ from the command line ( thus not by 'net start apache')
HansH<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: PHP 5 Doesn't Work |
|
| Back to top |
|
 |  |
External

Since: Jul 11, 2003 Posts: 111
|
(Msg. 8) Posted: Thu Jun 16, 2005 9:55 pm
Post subject: Re: PHP 5 Doesn't Work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thu, 16 Jun 2005 20:31:03 +0200, "HansH" <hans.DeleteThis@niet.op.het.net>
wrote:
>"Fred Atkinson" <fatkinson.DeleteThis@mishmash.com> schreef in bericht
>news:9023b1d5a3haec9o0k020ahch1q058fu9a@4ax.com...
>> On Tue, 14 Jun 2005 15:46:16 +0200, "Christian" <mcw.DeleteThis@lockfile.org>
>> I just downloaded the latest version of PHP 5.0. I unzipped
>> it to the C:\PHP directory
>> (I had deleted all files that were there before).
>Now you probably lost your php.ini ...
>
>> I put these two lines of code into my httpd.conf file:
>> LoadModule php5_module "c:/php/php5apache2.dll"
>> AddType application/x-httpd-php .php
>> I stopped Apache. I restarted Apache. Again, it won't restart.
>You're running apache-1.3, than indeed php5apache2.dll will fail: try
>php5apache.dll.
>
>Instead of either option given in c:/php/readme.txt
>" To make php4ts.dll / php5ts.dll available you have three options: copy
> the file to the Windows system directory, copy the file to the web
> server's directory, or add your PHP directory, C:\php to the PATH. For
> better maintenance, we advise you to follow the last option, add
> C:\php to the PATH, because it will be simpler to upgrade PHP in the
> future. ..."
>you may need to add this line before the 'LoadModule ...'
> LoadFile c:/php/php5ts.dll
>... it's not the TerminalServer version, but the main library
>[Oops, sorry!]
>
>Next time please quote the failure report Apache returns if started
>_directly_ from the command line ( thus not by 'net start apache')
>
>
>HansH
>
Well, that almost fixed it. Now, Apache starts.
But, when I try to pull up a PHP file, I now get a Forbidden
message. It says 'You don't have permission to access /PHP/ on this
server'.
Weird.
Fred<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: PHP 5 Doesn't Work |
|
| Back to top |
|
 |  |
External

Since: Mar 29, 2004 Posts: 672
|
(Msg. 9) Posted: Fri Jun 17, 2005 1:55 pm
Post subject: Re: PHP 5 Doesn't Work [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Fred Atkinson" <fatkinson.TakeThisOut@mishmash.com> schreef in bericht
news:rv84b11b8r5kknor39rv2845ukr7a27aoa@4ax.com...
> >"Fred Atkinson" <fatkinson.TakeThisOut@mishmash.com> schreef in bericht
> >news:9023b1d5a3haec9o0k020ahch1q058fu9a@4ax.com...
> >> On Tue, 14 Jun 2005 15:46:16 +0200, "Christian" <mcw.TakeThisOut@lockfile.org>
> >> I just downloaded the latest version of PHP 5.0. I unzipped
> >> it to the C:\PHP directory
> >> (I had deleted all files that were there before).
> >Now you probably lost your php.ini ...
> >
> >> I put these two lines of code into my httpd.conf file:
> >> LoadModule php5_module "c:/php/php5apache2.dll"
> >> AddType application/x-httpd-php .php
> >> I stopped Apache. I restarted Apache. Again, it won't restart.
> >You're running apache-1.3, than indeed php5apache2.dll will fail: try
> >php5apache.dll.
> >
> >you may need to add this line before the 'LoadModule ...'
> > LoadFile c:/php/php5ts.dll
> Well, that almost fixed it. Now, Apache starts.
>
> But, when I try to pull up a PHP file, I now get a Forbidden
> message. It says 'You don't have permission to access /PHP/ on this
> server'.
Deactivate a line like
Action application/x-httpd-php "c:/php/php.exe"
from your config
Is /PHP/ part of the URL you use to access a script?
Is /PHP/ a physical folder below the documentroot?
Where is your php.ini file located?
A relevant snippet from your error.log might shed some more light too...
HansH<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: PHP 5 Doesn't Work |
|
| Back to top |
|
 |  |
|