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

Typical98

Okay ill try apache2 but i heard that php wasnt supported correctly with apache2. Or was that an older verson.

No the lib file wanst in there strangly... so i took it out of the c:/mysql/lib folder and copied it to the bin folder and it workes...kinda lame that they dont put it in there for you.

lol and i may be a nub but i know what you mean when you say restarting the computer :P :P (unplugs computer :P)

Typical98

okay im going with apache2 lol guess what :D

C:/php/sapi/php4apache2.dll cannot be found...... what is it with my computer and not finding .dll's. this time im looking at it and single clicking it..but yea

[Unknown]

Are you using \ or /?  If you are using / in the configuration files, try \.

Are you on Windows NT or 2000? (or otherwise?)

Try copying all the dlls to the system32 folder (meaning, all the dlls in c:\php, c:\php\sapi, and c:\php\dlls...) and also to the Apache directory.  Does that help?

-[Unknown]

Typical98

im using windows 2000, this is odd... i changed it to \ liek you said to try then i went to start server but it still is seeing it as /    is that normal?

Tomer

Quote from: kviet on May 22, 2004, 11:34:07 AM
When i go to http://localhost/phpinfo.php 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.

Does your host support PHP?

Typical98

hes hosting it himself, look at his addy http://localhost. Hes getting the same problem as me for some reason apache isnt seeing the file its suppose to. its very annoying.

Typical98

#106
okay i got annoyed and tried this. I moved the php4apache2.dll from the sapi folder to the php folder and changed the path in teh httpd.conf file and now it works =/

nevermind, the forums arnt installing correctly so i take it it has something to do with it... or its the installer for the forums.

Typical98

#107
coping all the dlls tot he system32 folder worked.


dammit...now theres nothing wrong ine the forum installation. it doesnt install correctly wth... (gettings frustrated to hell)

i get the first window were its like,   Community name, mysql user pass and what not. then i click on next and it doesnt install ANYTHING it jsut go straight to the *make the amdin for your forums page)...

soo annoyed....

Typical98

nvm its the wrong spot..for some reason it doesnt create the table in mysql anymore..so you have to do it manual which i dont know how to do so yea.

[Unknown]

Hmm, it's not creating the table?  It should give an error message.

If you run the mysql.exe file in bin, you can type:

CREATE DATABASE dbname;

I recommend you try using the username "root"...

-[Unknown]

Typical98

yea i tried it but it said i dont haev permission to do it. i dont fully understand how to run use it (im doing it through dos) so i dont know how to get under the username root. Also for some reason when i run msql it only shows the test databse (whihc i read is what all users can see) but theres no tmp database and no msql database so i think it is creating the table but for some reason im not seeing it because maybe the mysql client isnt loging me in correctly or something.

Sorry if this doesnt make sence hmmm.  im trying to read up on it but adunno.   


Burpee

Hmm... tried installing a webserver a while ago but I didn't get any further once I couldn't get MySQL to work.

I installed the IIS webserver (within windows)
Then installed PHP5
Then installed MySQL with the installer

Now, when I try to run the mysql_test.php, it gives the following error:
PHP has encountered an Access Violation at 010173DD
After a refresh it gives:
PHP has encountered an Access Violation at 010173DDHTTP/1.1 500 Server Error Server: Microsoft-IIS/5.1 Date: Sat, 10 Jul 2004 13:11:41 GMT Content-Type: text/html Content-Length: 44 -2147417842 (0x8001010e)

Any clue as to what I should do?

[Unknown]

I've gotten this before with PHP 5, and I'm not sure *exactly* what causes it.  I recommend you try PHP 4.3.7 instead...

-[Unknown]

Burpee

Quote from: [Unknown] on July 10, 2004, 01:31:44 PM
I've gotten this before with PHP 5, and I'm not sure *exactly* what causes it.  I recommend you try PHP 4.3.7 instead...

-[Unknown]

I did and it worked. Thanx :)

Took me three hours to finally get my first DB up and running. I still don't know exactly what I did. I first installed phpMyAdmin, then tried using "root" as pass but it didn't work.
Then I tried to use the password for windows XP (admin/pass) and it gave me a login screen, in which I could log in with just "root".

Herman's Mixen

#114
Burp als je probs hebt met het opzetten van een webserver zou ik toch gaan voor als je er zowiezo al een wilt draaien onder windows

apache gebruiken 2.0.50 voldoet aan de eisen om in een productie omgeving te kunnen werken onder windows tegenwordig !!

php 4.3.8
en mysql 3.23.58 win
eventueel phpmyadmin buiten de web directory
en dit alles even op een aparte partitie wanneer mogelijk ?!

kijk anders even op http://www.burglars.net/forums/index.php
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

Thunderace

Very nice [unknown]

Thanks very much!

I got the whole thing up and running with PHP5 with few changes

(had to use PHP5, got it free on a disk and I'm dammed if I'm downloading 4.3.8 on 38k dialup  :D)

[Unknown]

Quote from: Thunderace on September 10, 2004, 04:07:55 PM
Very nice [unknown]

Thanks very much!

I got the whole thing up and running with PHP5 with few changes

(had to use PHP5, got it free on a disk and I'm dammed if I'm downloading 4.3.8 on 38k dialup  :D)

I know, I need to make a few modifications, especially with the new directory structure in PHP 5.

-[Unknown]


Thunderace

#118
PHP 5 Installation Windows XP

As an addition to [unknown]s excellent instruction, this worked for me.

In my php5 package the file to move to sapi was php5apache2.dll

QuoteConfiguring PHP - Apache

Go into the folder C:\Program Files\Apache Group\Apache\conf (or where ever you installed Apache.) and open up httpd.conf.  Search for #LoadModule mime_magic_module modules/mod_mime_magic.so and add just above it LoadModule php5_module "C:/Program Files/PHP/sapi/php5apache2.dll".  Next, search for AddType application/x-tar .tgz and add below it AddType application/x-httpd-php .php

jrcarr

Now you have an apache server with php and MySQL all running.  You have uploaded and created a test website and all is working well.  How do you make a home server visible to the internet.  Or is this beyond the scope of the Tutorial?  Thanks

Jack
Jack Carr

Advertisement: