Page 2 of 2

Posted: Mon Jun 05, 2006 1:01 am
by christian_phpbeginner
Oren wrote:Did you add this:

Code: Select all

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
to the end of the httpd.conf file?

P.S I assumed you run Apache 2, put the php directory on C and named it 'php'.
Well, in my config file:

Code: Select all

#LoadModule php5_module c:/php/php5apache2.dll
#PHPIniDir: "c:/php"
#AddType application/x-httpd-php .php
But Wait.....the pound (#) sign in the config file .... is that a comment ???????????????????????? If soo......I'll try to delete the "#" at the beginning....and try it again !.....

Posted: Mon Jun 05, 2006 1:03 am
by christian_phpbeginner
d11wtq wrote:It's not a php.ini problem so you can eliminate that one ;) PHP will actually work without the ini at all.

PHP isn't being called when the request comes in. You can post you httpd.conf file if you like (or if you'd prefer not to expose it to the public you can PM it to me).

Installing PHP/Apache manually is definitely worth doing but if it's taking too long I would definitely just save yourself the hassle and install WAMP/XAMPP :)
Thanks a lot, but I think I have installed it properly, maybe I have misunderstood that the pound sign (#) in the httpd.conf file is actually commenting.....so, I will try to delete the pound sign at the beginning of my LoadModule blah blah blah....

I'll be back later...

Posted: Mon Jun 05, 2006 2:12 am
by christian_phpbeginner
I did try to delete the pound sign in front of:

LoadModule php5_module "c:/php/php5apache2.dll"

but instead, when I restarted Apache, it won't restart, and told me that "The requested operation has failed". But when I double click the php.exe in my c:\php folder....I got this error message telling me that the module of c:/php/php5apache2.dll couldn't be found, eventhough that I have erased the pound sign before the LoadModule php5_module "c:/php/php5apache2.dll"

please help, thanks..

Posted: Mon Jun 05, 2006 2:18 am
by RobertGonzalez
Put your comment sign back and try to restart. Then google how to make apache recognize PHP. Your case is a little odd in that, when I have forgotten to edit the httpd.conf file, when trying to run a PHP page, my browser usually asks me to download the file instead of showing it as text. That seems like a little odd behavior. What are you machine's specs (in terms of your server software, OS, PHP version, etc)?

Posted: Mon Jun 05, 2006 3:16 am
by Oren
It's almost obvious that you simply did something wrong.
Which files exactly did you put in your system directory?

P.S Yeah, the '#' is a comment - uncomment it, it shouldn't cause any problems.

Posted: Tue Jun 06, 2006 11:59 am
by christian_phpbeginner
Everah wrote:Put your comment sign back and try to restart. Then google how to make apache recognize PHP. Your case is a little odd in that, when I have forgotten to edit the httpd.conf file, when trying to run a PHP page, my browser usually asks me to download the file instead of showing it as text. That seems like a little odd behavior. What are you machine's specs (in terms of your server software, OS, PHP version, etc)?
Hi Everah !..

So,my OS is Windows XP Pro SP 2, PHP 5.1.2, and Apache 2.2.2.

Yeah, it's really odd alright....I have googled, and did most of the things...but somehow...I don't know, maybe I should just have to uninstall it. then reinstall it again.

Posted: Tue Jun 06, 2006 12:09 pm
by RobertGonzalez
Did you install apache first, then PHP?

Something I did when installing (once upon a time) was to download the trial of Zend Studio. When it installs you have the option of intalling Apache, PHP, Zend Studio Server and a couple of other useful things, and it all works out of the chute.

Posted: Tue Jun 06, 2006 12:26 pm
by christian_phpbeginner
Oren wrote:It's almost obvious that you simply did something wrong.
Which files exactly did you put in your system directory?

P.S Yeah, the '#' is a comment - uncomment it, it shouldn't cause any problems.
I have put the php5ts.dll...just like what was written in the manual installation steps:
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. Read more about how to add your PHP directory to PATH in the corresponding FAQ entry (and then don't forget to restart the computer - logoff isn't enough).
I have copied the file to the Windows system directory, which was system32.

I also tried the second options: which is copy the file to the web server's directory, but of course before I tried options 2...I have deleted the php5ts.dll in the system32, then try the options2.

But I didn't take the options 3, since I have Java installed on my machine, and it needs the path often than PHP....

Thank you...

Posted: Tue Jun 06, 2006 12:29 pm
by christian_phpbeginner
Everah wrote:Did you install apache first, then PHP?

Something I did when installing (once upon a time) was to download the trial of Zend Studio. When it installs you have the option of intalling Apache, PHP, Zend Studio Server and a couple of other useful things, and it all works out of the chute.
Yes, indeed...I installed apache first then PHP....well, thank you for reminding me about that...good catch !...but I did install apache first, before installed PHP.

Posted: Tue Jun 06, 2006 12:44 pm
by Oren
Try to copy the file 'php5apache2.dll' to the system directory as well.

P.S Don't forget to restart Apache :wink:

Posted: Tue Jun 06, 2006 12:48 pm
by christian_phpbeginner
Oren wrote:Try to copy the file 'php5apache2.dll' to the system directory as well.

P.S Don't forget to restart Apache :wink:
Hi Oren...I tried to copy the php5apache2.dll to the system directory as well, THEN.......are you ready ???......


1



2



3


.......it's still not working !!!......lol....


Actually I did try this yesterday...but I have done it again just now ! Could this be a bug or something ?

Posted: Tue Jun 06, 2006 12:49 pm
by christian_phpbeginner
Oh yes, I have restarted APACHE too..ehmm...yes, I am sure...

Posted: Tue Jun 06, 2006 12:53 pm
by Oren
Well, I don't see any good reason why it shouldn't work. If you have another PC in which you can try and install it on - just go ahead and try doing so.

Posted: Tue Jun 06, 2006 12:55 pm
by christian_phpbeginner
Oren wrote:Well, I don't see any good reason why it shouldn't work. If you have another PC in which you can try and install it on - just go ahead and try doing so.
Oren, let's do this for the last time...I've pm-ed you my httpd.conf file...wish you have time to take a look, and help me...

But if it's not working...I'm going to uninstall and reinstall...

Thank you.