installing php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
187skillz
Forum Commoner
Posts: 39
Joined: Sun Aug 10, 2003 8:35 pm
Location: London

installing php

Post by 187skillz »

OK, I've read that its better to download AMP seperarely by myself and get them up..i've installed APache 2.0 ...and now want to install PHP...
when I went to the site, there's 2 4.3.5 downloads available for windows XP..
which one is the right one to download...


1. PHP 4.3.5 zip package [6,803Kb] - 26 March 2004
(CGI binary plus server API versions for Apache, Apache2 (experimental), ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many extensions included, packaged as zip)



2..PHP 4.3.5 installer [1,046Kb] - 26 March 2004
(CGI only, MySQL support built-in, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included)

one or 2 pls?

Thank you.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Go for the zip, you'll get the additional extensions (such as GD for manipulating images) and you have to configure Apache yourself either way.

Mac
187skillz
Forum Commoner
Posts: 39
Joined: Sun Aug 10, 2003 8:35 pm
Location: London

Post by 187skillz »

Thank you...I've edited my php ini...the instruction that I'm reading says
Another thing you might want to change is you session path. Search for: session.save_path and change it to any existing directory. One reader pointed out the windows temporary directory works well (for windows directory, see "Some Notes" in next step). So session.save_path = "c:/windows/temp" or if you use 2k/XP probably session.save_path = "c:/WINXP/Temp"
I've read a couple of instructions on installing PHP...should i do what he said up there cause that's the only place I've read something about doing session path.
Thanks and i hope I haven't <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> anybody off because of my questions..
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

personall for a cheap and cheerful install i use FoxServ 3.0 it adds Mysql, apache 1.3 and PHP4.2.2 (which i havent found any problems with)

takes about 30 seconds to install and has the simplest wizard you've ever seen to get it working

i also installed various extra modules (such as GD functionality) with absolutely no hassle
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

187skillz wrote:Thank you...I've edited my php ini...the instruction that I'm reading says
Another thing you might want to change is you session path. Search for: session.save_path and change it to any existing directory. One reader pointed out the windows temporary directory works well (for windows directory, see "Some Notes" in next step). So session.save_path = "c:/windows/temp" or if you use 2k/XP probably session.save_path = "c:/WINXP/Temp"
I've read a couple of instructions on installing PHP...should i do what he said up there cause that's the only place I've read something about doing session path.
If you want to use sessions then you'll need to do the above - I would make the change (although I normally create a separate folder specifically for PHP session data instead of using windows temp folder).
187skillz wrote:Thanks and i hope I haven't <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> anybody off because of my questions..
This place is for questions and yours are good ones to ask :) .

Mac
187skillz
Forum Commoner
Posts: 39
Joined: Sun Aug 10, 2003 8:35 pm
Location: London

Post by 187skillz »

malcolmboston wrote:personall for a cheap and cheerful install i use FoxServ 3.0 it adds Mysql, apache 1.3 and PHP4.2.2 (which i havent found any problems with)

takes about 30 seconds to install and has the simplest wizard you've ever seen to get it working

i also installed various extra modules (such as GD functionality) with absolutely no hassle
Thanks malcolm, I used php dev bundle before which is something similar to Fox serv, and it was alright but I've noticed that PHP/apache have been upgraded but the bundle still havent, I just took a lot of people's advice and I now have apache/php working...

Thank you twiglet mac..
one last question, I installed Myql to C:/mysql and added a username/password but I would like to change the username and password...can I just delete the mysql folder and then install it again to C?

I don't want the username/password that I used when I clicked on 'winmysqladmin.exe'


Thanks.
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

If you get phpMyAdmin you can use it to change the password(s) plus its useful for all kinds of DB admin stuff!
187skillz
Forum Commoner
Posts: 39
Joined: Sun Aug 10, 2003 8:35 pm
Location: London

Post by 187skillz »

ok I downloaded PhpMyadmin...i cant get it to open...I got this message

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.

MySQL said:
#1045 - Access denied for user: 'root@localhost' (Using password: YES)

And I went to the MYSql documentation..

http://www.mysql.com/doc/en/Error-returns.html

what am i doing wrong pls?
Thanks.
Last edited by 187skillz on Mon Apr 05, 2004 12:15 pm, edited 1 time in total.
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

did you put your user and password and such int mySQLAdmin?
187skillz
Forum Commoner
Posts: 39
Joined: Sun Aug 10, 2003 8:35 pm
Location: London

Post by 187skillz »

yes...when I go in my windows directory and look at myini, i see this in the ini file

[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-nt.exe
user=root
password=mypassword

Do I need to install MYsql again?

Thanks.
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

put http://localhost/ for the server
187skillz
Forum Commoner
Posts: 39
Joined: Sun Aug 10, 2003 8:35 pm
Location: London

Post by 187skillz »

thanks but it didnt work..any suggestions?
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

put all that stuff in quotes?
187skillz
Forum Commoner
Posts: 39
Joined: Sun Aug 10, 2003 8:35 pm
Location: London

Post by 187skillz »

didn't work neither...the ini file that with the above is in "c:\windows\myini" by the way...
187skillz
Forum Commoner
Posts: 39
Joined: Sun Aug 10, 2003 8:35 pm
Location: London

Post by 187skillz »

it's working now..I just took off the password in the config file of phpmyadmin...also took off 3360 in port and it worked....thank u.
Post Reply