Trouble installing PHP
|
|||
|
Rank: ? (3)
Member #: 29525 |
Hey, I've installed PHP, and Apache as well. I can get that page at localhost that says "It works!" to work, but when I upload a php script, nothing works for me. I'm reading a book, but it's a bit old, and the PHP faq on the PHP site is not working. Using windows.
Wondering if I can get some help? I'm gonna reset my computer and try again, because Apache won't start up when I tell it to (think that might be an issue too) Thanks. |
||
|
|||
|
|||
|
Rank: ? (767)
Member #: 11085 |
I used to have a very good tutorial for this, but I have since lost it. I can, however, advise you to simply use something like WAMP or Apache2Triad to install PHP, Apache, and MySQL as a bundle.
- relpats_eht
|
||
|
|||
|
|||
|
Rank: ? (883)
Member #: 3 |
Yea, if the server isn't running, you're not going to be able to execute any scripts.
--bs0d | allsyntax.com
|
||
|
|||
|
|||
|
Rank: ? (3)
Member #: 29525 |
I think I had the server running, but once restarted computer, could not start Apache, just kept popping up and alert saying it was not working. Not a helpful alert.
Anyway, I'll try that bundle installer. The book I'm reading may be a little outdated, tells me to manually edit php.ini and one other file. Do I still need to do that? Thanks. » Post edited 2007-02-02, 08:49pm by cyberseal.
|
||
|
|||
|
|||
|
Rank: ? (767)
Member #: 11085 |
Yes, manually editing the configuration files (php.ini and httpd.conf) is necessary. These things were originally intended for Linux, after all. I don't know about that with the bundles though. I think they are supposed to Just Work.
- relpats_eht
|
||
|
|||
|
|||
|
Rank: ? (4821)
Member #: 3416 |
just installing apache and php isn't enough to let you use php through apache -- you have to edit httpd.conf and tell it that .php files should be run through the php apache module (and of course enable the php module), or you might be able to set it to run as cgi instead.
it's been a while since i ran apache or php on windows, but i do remember linking them together is a bit different on linux than it is on windows.
my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
|
||
|
Please login or register to post a reply.