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

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

Previous topic - Next topic

Acf

No that i have installed a server, i would like to know how yo configure it.

Because i don't know how to do the mysql config, like setting a root password and makking db's and things like that.

It would be cool if you could creat a tutorial for that :)

*acf :)
Sigh...

[Unknown]

SET PASSWORD FOR root = PASSWORD('pass');

-[Unknown]

Acf

Sigh...

Typical98

Hello,
This is my first post here and my first time running apache, php, mysql.

I followered your tutorial Uknown but something odd is happening. Everytime i try to go to http://localhost/phpinfo,php it tried to download the file.

im running apache on windows xp pro.

Would you like me to post my php.ini and my http.config file?

Tyris

#44
first thing is restart your apache server... coz if you've updated your http.config since your last restart, then it wont have made the changes...
next, make sure you've made the necesary changes in http.config.
If you've made teh changes it -should- know what to do with the php files
if not, yeah post the parts you edited or something...

*edit*
also, if you've chosen Apache2... then there are several things that wont work... so if you have (doesnt sound like it tho) then let me know, I'll tell you the config changes you need (it uses different files).

Typical98

ive restart the server and computer twice.  the only thing i did different was put the php4apache.dll in the php folder ebcause for some reason it wouldnt see it when it was in teh sapi folder.

here the php and http in text format. they should work i hope. I followered exactly what he told me to do.

im using apache 1.3

Tyris

in the http file...
LoadModule php4_module "C:/php/php4apache.dll"
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule status_module modules/mod_status.so

I dont think order would matter..
but the guide says that should be:
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule php4_module "C:/php/sapi/php4apache.dll"
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule status_module modules/mod_status.so

Also, put the php4apache.dll in the sapi drive... it -should- work with this code (note the change of dir)
next, another order thing:
AddModule mod_so.c
addModule mod_php4.c
AddModule mod_setenvif.c

should be
AddModule mod_so.c
AddModule mod_setenvif.c
addModule mod_php4.c


Next, make sure you have Apache running as a service... assuming you installed it that way...
Control Panel --> Administrative Tools --> Services
Restart the "apache" service...
now this -should- work perfectly, only problem I can think of would be if you have installed another copy of apache which is the service thats running... (to test this, try adding some crapblah; line to the http file... and see if it causes an error when trying to start the service... if not, you're probably got another copy installed somewhere).

- hope it helps (also note, I'm not even remotely a pro or anything... so all of this is just conjecture... hope it helps tho :))

[Unknown]

Quote from: Typical98 on February 08, 2004, 08:09:45 AM
ive restart the server and computer twice.  the only thing i did different was put the php4apache.dll in the php folder ebcause for some reason it wouldnt see it when it was in teh sapi folder.

here the php and http in text format. they should work i hope. I followered exactly what he told me to do.

im using apache 1.3

You seem to have word wrapped the php.ini file you attached - this is not a good thing.  If you drop a line that's long down, it might very well stop working.

In addition, because people like GUI stuff, I've attached a really dumb script to restart a service... it can be used with MySQL, Apache, IIS (aka w3svc), as well as any other service.

-[Unknown]

Typical98

im sorry, what do you mean by word wrapped the php.ini file?

thanks for both your help. I did the changed that was said to do and its still tryuing to dl the file. Its probably the word wrap thing but i dont now what you mean by that.

Thank

-Typ

[Unknown]

I have reformatted the files, hopefully they should work now.

I recommend you try a different editor than you currently use - one that won't wrap things.  I use ConTEXT. (http://www.fixedsys.com/context/)

Please note; these files are only/may only be useful for Typical98.  They are not "quick fix" configuration files that will work for anyone.

-[Unknown]

Typical98

#50
im using notpad to edit these things. The link for your context doesnt work. ill look it up on goodle.  Ill edit this post to let ya now if it worked or not.

edit: hmmm it says that line 2 on the http.conf is invalid.

i got context and i opened the files you send me in notepad and copy and pasted it into context and used that to save

im asuming its something in this line'


<br />
<b>Warning</b>: ob_start(): output handler 'ob_gzhandler' cannot be used twice in <b>/home/simple/security/Sources/Display.php</b> on line <b>756</b>#
# Based upon the NCSA server configuration files originally by Rob McCool.

[Unknown]

Please try downloading the files again; I seem to have made some typo PHP didn't agree with, but it should be fixed.

-[Unknown]

Typical98

error on line 500, invalid command ' combined'


[Unknown]

Search for this:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""

And notice that on the next line you have this:

combined

Change those two lines to this:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

-[Unknown]

babylonking

Same problem here  ::)

I try to go to http://localhost/phpinfo.php it tried to download the file.



Typical98

well it starts up, but it still trys to download the file lol

babylonking

Quote from: Typical98 on February 08, 2004, 05:04:36 PM
well it starts up, but it still trys to download the file lol

I can start and stop the server without any problem but it keep downloading the phpinfo.php file.  ::)

Typical98

in php folder am i suppose to click on something to start it liek mysql and apache or anything like that?

[Unknown]

* [Unknown] does it, and gets it to load perfectly.

* [Unknown] does it with 1.3.* as well, and it works perfectly too....

Hmm...

Please make sure you're trying this version:
http://unknown.network32.net/tutorial.basic-server

I don't think I made any big changes to it, but still...

-[Unknown]

Typical98


Advertisement: