Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Php 5 and apache 2.0 problems

Author
Message
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 23rd Jun 2008 16:04 Edited at: 23rd Jun 2008 16:05
hey
I am currently trying to set up a php/mysql system on my home computer which is running windows vista...I have already installed all three needed components (Php 5/MySQL 5.0.51 and Apache 2.0.63).
I am now trying to configure apache to read php however I cannot find the line that says (#LoadModule php5_module "c:/php/php5apache2.dll") and when i create it and save notepad tells me that the file cannot be created. Infact when i change anything in the apache config file and try to save it, notepad wont let me. I am really confused as to what to do. I have done a quick forum search and tryed to follow the tutorials on the web but they dont seem to help. Can anybody shed some light on what im doing wrong??
Cheers
BM

Oh and if this is the wrong place to post this please tell me and could a mod move it to the correct place.

Our aim is to keep the loo's clean, your aim can help.
Jimmy
21
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 23rd Jun 2008 16:09
You got admin rights on that vista machine?

"Oh hey, nice website Jimmy, it's really nice and fancy." -- That C++ Nerd
Visit. Website. NOW!
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 23rd Jun 2008 16:30
yea its my personal laptop so im the admin for it

BM

Our aim is to keep the loo's clean, your aim can help.
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 23rd Jun 2008 17:47
He means, you're not authenticated as admin. You'll need to turn off uac while you configure apache.


Hurray for teh logd!
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 23rd Jun 2008 18:07
excellent i got it saved one question though...do i need to keep uac off in order for apache to work or can i turn it on when im not editing the config file??

Cheers
BM

Our aim is to keep the loo's clean, your aim can help.
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 23rd Jun 2008 18:11
it should work with uac on if you set it all up correctly.


Hurray for teh logd!
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 23rd Jun 2008 19:27
ok cool thanks for that, hopefully it should work now...im jus working my way through the for dummies book on how to do php and mysql but it does cover the stuff that vista affects

cheers again
BM

Our aim is to keep the loo's clean, your aim can help.
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 23rd Jun 2008 19:37
Ye, but for the most part it works the same. You just need to have the mindset that you're running on a user that has limited permissions. Apache, once installed, should run under it's own user that has it's own permissions set, it should be fairly transparent once it's going.

When you go to start apache, you'll probably need to accept the uac box to run the program, but that should be all you need to do.


Hurray for teh logd!
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 23rd Jun 2008 21:58 Edited at: 23rd Jun 2008 21:59
ok im a bit confused i now have apache running fine however i cannot figure out how to get it to accept php commands...i have written a test program that jus outputs some text using the "echo" command however it wont show.
The book tells me to edit the config file so that the line
#LoadModule php5_module "c:/php/php5apache2.dll"
should be detagged so that it looks like LoadModule php5_module "c:/php/php5apache2.dll" so all i need to do is find the line and remove the (#)sign?? not that easy...first the command line isnt there and even when i input the line it doesnt seem to work.
I also need to add the line AddType application/x-httpd-php .php again I have entered this line and it still doesnt work.
Am i missing something??
BM

Our aim is to keep the loo's clean, your aim can help.
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 23rd Jun 2008 22:12 Edited at: 23rd Jun 2008 22:13
Did you make sure to copy the dlls into your apache folder

Quote: "Create the directory C:php and extract all files in the PHP ZIP file here. You will now need to copy some files to your Apache Directory (Crogram FilesApache GroupApache2).

Copy the following files:

C:phpphp4ts.dll
C:phpsapiphp4apache2.dll
C:phpphp.ini-recommended"


http://www.devarticles.com/c/a/Apache/Installing-PHP-under-Windows/4/

An alternative you may wish to consider is installing WampServer:

http://www.en.wampserver.com/


Hurray for teh logd!
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 23rd Jun 2008 22:43
ahhh cool the book does say to copy the files but it is really unclear as to where the files are suposed to go.
Ill probably use that article in the link from now on so that im not clogging up the forums but i may still ask here if im really stuck
thanks loads man
BM

Our aim is to keep the loo's clean, your aim can help.

Login to post a reply

Server time is: 2024-11-20 08:36:33
Your offset time is: 2024-11-20 08:36:33