News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[Unknown]'s Guide to Installing PHP and MySQL.

Started by [Unknown], November 16, 2003, 03:40:49 PM

Previous topic - Next topic

mikeliketrike

i got it to work! yay!  thanks for posting such a great tutorial... i searched around for a couple days before i found this one and this is by far the best.  great work.

would this thread be appropriate to post some help on some php code as well?  or did you want to keep it pretty centralized on setting everything up?

Homie

Yep i learned how to do my own Mysql and php server with that Tutorial Thanks also

[Unkown] also have to thank Grudge

Regards

Homie

[Unknown]

Mikeliketrike, if you have any PHP scripting issues, feel free to post them in this board:

http://www.simplemachines.org/community/index.php?board=8.0

You will get the most help there ;).

-[Unknown]

Curbow 5

i'm having sessions troubles.... no matter how many times i change the session.save_path to C:\WINDOWS\Temp in php.ini i keep getting the error:

session_start(): open(/tmp\sess_4562adfdcef550265a62bb95c3269e23, O_RDWR) failed

making me think the session.save_path is still set to /tmp..... only it's NOT! any help would be appreciated!

Chris Cromer

After you change the php.ini you will have to restart apache in most cases before the changes in it will take affect.
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

Curbow 5

LOL yeah i know, i did that, but to no avail..... :D

Chris Cromer

Well there is another reason it could possibly be doing it... you might be editing the wrong php.ini. ;)

For instance php reads php.ini in a certain order, so if you have different copies in different locations it could take affect over other ones.

An example of this would be on my pc, I have 2 php.ini's on my computer. 1 in the windows directory and the other in the php directory. If I edit the one in the windows directory it doens't take affect because the one from the php directory was loaded. But if I where to delete the one in the php directory then the one in the windows directory would be used.

I beleive php checks for php.ini in 3 different locations if I am not mistaken. If you use a phpinfo.php file it should tell you which php.ini file it is using.
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

[Unknown]

If you're using ISAPI it should use the one in the WINDOWS directory.

-[Unknown]

Curbow 5

i fixed it! it was really weird! phpinfo said the Configuration File (php.ini) Path was C:\WINDOWS, but i had already checked that there wasn't a php.ini there!

so i copied a php.ini to C:\WINDOWS and now it works! w00t! :D thanks for all the help!

[Unknown]

Quote from: Curbow 5 on April 08, 2004, 04:32:38 PM
so i copied a php.ini to C:\WINDOWS and now it works! w00t! :D thanks for all the help!

That was in my instructions :P ;).  But it's okay, it's hard to read with all the marking up and stuff.

-[Unknown]

Homie

I had a little trouble [Unkown] with your tutorial reading it but i eventually uunderstood it  :)

Curbow 5

#91
Quote from: [Unknown] on April 08, 2004, 07:30:30 PM
That was in my instructions :P ;).  But it's okay, it's hard to read with all the marking up and stuff.

-[Unknown]

wh00ps..... sorry, i didn't really read it: i was doing a reinstall (the first time i did it by your tutorial and it worked perfectly) and kinda did it by both memory and tutorial! anyway, thanks for the great tutorial!

kviet

#92
When i go to http://localhost/phpinfo.php [nofollow] to test it after i typed in <?php
phpinfo();
?>

and i go there and it says <?php
phpinfo();
?>

is this right?

Modified:it says cannot load  c:\program files\php\sapi\php4apache.dll into server i tried to find the php4apche file and put it in the sapi folder but i can't find it.

Parham

Unknown will be able to help you out more... but what you're supposed to see is the PHP environmental/server variables plus some PHP configuration.

Try this in the meantime: http://forums.devarticles.com/t3146/s.html

[Unknown]

What files do you see in the c:\program files\php\sapi directory?

-[Unknown]

Typical98

Hello, i had a problem awhile ago in installing php and i seem to be having a problem again.

Ive installed everything correctly following the tutorial but when i try to start apache i get this area

Module c:/php/sapi/php4apache.dll cannot be found.  So i looking the php folder and i can see it but for some reason apache cant.

Im running apache 1.3 with php-4.3.7-Win32.

i also used context to edit the files.

Any help would be great

[Unknown]

Did you copy php4ts.dll into the sapi directory?

-[Unknown]

Typical98

i copied it to the sapi folder and the windows/system32 folder.

sorry it says cannot load module c:/php/sapi/php4apache.dll  (sorry for the mistake)

Typical98

also, i tried to instal mysql and i dl it, extracted it click on set up then next, next, next *typical settings which is reccremanded* and it installed but then wehn i go to  c:/mysql/bin/mysqladmin.exe
i get this error, 

"The dynamic link library LIBMWSQL.dll could not be found in the specified path C:/mysql/bin;,;C:/WINNT/system32;.;C:.WINNT;C:/WINT/systen32;C:.WINNT;C:/WINT/systen32/wbem;C:/program Files/SSH Communications Security/ssh secure shell

(note, i unistalled SSH client so adunno why its still looking htere)

[Unknown]

I'd strongly recommend trying Apache 2 over Apache 1..... but I'm not sure why you'd get this error message.

Have you tried restarting the computer? (you know Windows :P.)

Is the libmysql.dll file in c:\mysql\bin?

-[Unknown]

Advertisement: