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

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

Previous topic - Next topic

Celtland

I did not take out the ; and I am using PHP 5.  Thanks!  I'm at work now and probably won't be able to test this for a bit.  I appreciate the help.
Is maith an scáthán súil carad.

A friends eye is a good mirror.

Ravenjonny

Great tutorial i had no problems following this.

Phoenixoverlord

Hi!

Wanting to learn some more php, I've already ran into trouble...

I've followed this: http://unknown.network32.net/tutorial.basic-server

But when I want to look at the phpinfo.php page I get "The specified module could not be found." in Firefox and a 500 error in IE. I'm using IIS and set "C:\Program Files\PHP\sapi\php4isapi.dll". Any idea what is wrong? :-/

[Unknown]

It may be necessary to copy the dlls from the PHP and dlls directory to C:\WINDOWS\system32.

-[Unknown]

forsakenlad

Great guide [Unknown], would be really hepful for starters, but I have a question. I am running Apache at home for development purposes, is it the right choice? Which one is less resource intensive, IIS or Apache?
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

[Unknown]

I'm not totally sure, but I run Apache on my own computer.  I think it's pretty much comparable.

There's also something like this if you want as little memory usage as possible:

http://www.lighttpd.net/

-[Unknown]

Phoenixoverlord

Quote from: [Unknown] on July 30, 2005, 09:43:24 PM
It may be necessary to copy the dlls from the PHP and dlls directory to C:\WINDOWS\system32.

-[Unknown]

Done that, but I still get the same line. :(


dtm.exe


Thunderace

#169
MySQL Server Instance Configuration

Configure the MySQL Server 4.1 server instance

Cannot configure Windows service for MySQL.Error: 0

Error is at service start

Update problem solved!

For others experiencing this error go to MySQL

dtm.exe

Quote from: Thunderace on July 31, 2005, 03:16:42 PM
MySQL Server Instance Configuration

Configure the MySQL Server 4.1 server instance

Cannot configure Windows service for MySQL.Error: 0

During the initial installation?  Have you tried another version?

-Dan The Man

Thunderace

Basically solved .. but when I run [unknown]s' tutorial script ..

<?php mysql_connect('localhost''root'''); mysql_select_db('test'); echo 'Unless you see any error messages, everything should be fine.'?>
I get a blank page and MySQL doesn't seem to be loading

[Unknown]

Quote from: Thunderace on July 31, 2005, 04:22:37 PM
Basically solved .. but when I run [unknown]s' tutorial script ..

<?php mysql_connect('localhost''root'''); mysql_select_db('test'); echo 'Unless you see any error messages, everything should be fine.'?>
I get a blank page and MySQL doesn't seem to be loading

You might have to change php.ini, if you're using PHP 5.

http://www.unknownbrackets.com/tutorials/basic-server

Quote from: Phoenixoverlord on July 30, 2005, 04:53:24 PM
Hi!

Wanting to learn some more php, I've already ran into trouble...

I've followed this: http://unknown.network32.net/tutorial.basic-server

But when I want to look at the phpinfo.php page I get "The specified module could not be found." in Firefox and a 500 error in IE. I'm using IIS and set "C:\Program Files\PHP\sapi\php4isapi.dll". Any idea what is wrong? :-/

Does it work to call it from the command line (php.exe, I mean)?

-[Unknown]

Phoenixoverlord

#173
I've uninstalled IIS and tried to install apache 2. For some reason though it doesn't wish to start the service. This what I get in a cmd box:

Error OS2 The system cannot find the file specified. No installed service named "Apache2"

:-/


EDIT: Hmmm I've reinstalled with all the same settings and now apparently it works...

allfripou

Do not know whether it is the right place to post that one...

I have got an issue with the apache (httpd.conf) configuration. I would like to set of course phpmyadmin to be allowed only for localhost and apparently when I write this
Quote
Alias /phpmyadmin/ "E:/ALAIN/forum/Apache2/phpMyAdmin-2.6.0-pl3/"
<Directory "E:/ALAIN/forum/Apache2/phpMyAdmin-2.6.0-pl3">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
        deny from all
        allow from 127.0.0.1
</Directory>

The access is then NOT allowed for 127.0.0.1. I have to put allow from all which is not really a good idea.

Any idea? Thanks a lot :)

[Unknown]

Try replacing "Order allow,deny" with "Order Deny,Allow".

-[Unknown]

allfripou


dæmon

One thing I thought I would add...

For those of you using OS X (I'm sure there's more than just me), MAMP is a good package.

Chris Cromer

QuoteI successfully installed Apache 2.0.54, mySQL 4.1.14-win32, php5.0.5-installer on a Windows 2000 box.  Separately, they all work just fine.  I have Apache and php talking to each other.  I can log into mysql with no problems.

My problem comes in when I try to integrate mySQL and PHP.  I get an error in Event Viewer saying:

Application popup: Warning: PHP Startup: Invalid library (maybe not a PHP library) 'libmysql.dll'

I've read about something called mysqli but where do I find it?  I'm not compiling the code under windows, so the php with the mysql options don't do any good under windows, unless someone can tell me what I need to do that with.

Any help would be appreciated.

Thanks
Look through the files that come with php and find a file called "libmysql.dll" then copy that into your windows directory.
Chris Cromer

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

Joshua Dickerson

eh.. sounds like you are using an old library or even a library too new. I doubt the latter. Check what version the library is made for. It should up under the icon in windows.
Come work with me at Promenade Group



Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

Advertisement: