Go Back   BWHacks > Development > Web Development

Web Development Website design and programming, content development. It's all here.

Reply
 
LinkBack Thread Tools

Old 05-22-2007, 03:23 AM   #1 (permalink)
ViruZ3

Advocate
 
ViruZ3's Avatar
 
Join Date: May 2007
Location: Aiur
Posts: 203
ViruZ3 is an unknown quantity at this point
Send a message via MSN to ViruZ3
PHP-MySQL Question

Hello, I set up a webserver today and installed php 5 and mysql 6... and the extensions. But everytime i try and visit one of my php sites it asks me if i want to download it... I have no i dea why it does that... Can anyone help me figure this out?
__________________
Prowd Owner of Assault Corporation
Assault Corporation Forums
ViruZ3 15 0FF11|\|3   Reply With Quote
Advertisement
 
Advertisement
Sponsored links


Old 05-22-2007, 03:29 AM   #2 (permalink)
SC_Modder
Loading javascript...
Senior Member
Moderator

Inquisitor
 
SC_Modder's Avatar
 
Join Date: Nov 2004
Posts: 4,523
SC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond repute
Send a message via AIM to SC_Modder
Default

Sounds like a f*cked install. You probably forgot a few steps, you can't just install all 3 and expect them to all work in harmony without any configuration.
__________________
AaronOpfer.com - My music
SC_Modder 15 0FF11|\|3   Reply With Quote

Old 05-22-2007, 03:36 AM   #3 (permalink)
lpxxfaintxx
I hate Steve Jobs.
Senior Member
Gold Member

Enlightened
 
Join Date: Jun 2005
Location: Fullerton, CA
Posts: 3,132
lpxxfaintxx has much to be proud oflpxxfaintxx has much to be proud oflpxxfaintxx has much to be proud oflpxxfaintxx has much to be proud oflpxxfaintxx has much to be proud oflpxxfaintxx has much to be proud of
Send a message via AIM to lpxxfaintxx Send a message via MSN to lpxxfaintxx Send a message via Skype™ to lpxxfaintxx
Default

I highly recommend using WAMP.
__________________
lpxxfaintxx 15 0FF11|\|3   Reply With Quote

Old 05-23-2007, 07:59 AM   #4 (permalink)
hypn
inactive
Gold Member

Disciple
 
hypn's Avatar
 
Join Date: Sep 2005
Location: South Africa
Posts: 512
hypn has disabled reputation
Default

You need to configure Apache (unless you're using IIS ) to know about PHP. Find your "httpd.conf" (Apache config) file, and find where all the "LoadModule" lines are, you'll need to add something like this:

Code:
LoadModule php5_module php5apache2.dll
You'll need to make sure "php5apache2.dll" is the correct filename of PHP's DLL file, and that it's in the right directory (you can probably give the full path to the DLL, where you installed PHP to)

Then you'll need to add PHP file types to Apache, still in "httpd.conf", find the "AddType" lines and add:
Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
This will tell Apache to process all ".php" files, with PHP.

Some links for you:
Step-by-step tutorial: http://www.php-mysql-tutorial.com/in...-php-mysql.php

USB Webserver: http://www.usbwebserver.nl/site/pagina/Download.html (I use this rather than wamp because it's portable and you don't even need to install it, just unzip)
__________________
http://www.hypn.za.net
hypn 15 0FF11|\|3   Reply With Quote

Old 05-23-2007, 11:07 AM   #5 (permalink)
ViruZ3

Advocate
 
ViruZ3's Avatar
 
Join Date: May 2007
Location: Aiur
Posts: 203
ViruZ3 is an unknown quantity at this point
Send a message via MSN to ViruZ3
Default

Quote:
Originally Posted by hypn View Post
(unless you're using IIS
Im using IIS 5.1
__________________
Prowd Owner of Assault Corporation
Assault Corporation Forums
ViruZ3 15 0FF11|\|3   Reply With Quote

Old 05-23-2007, 11:09 AM   #6 (permalink)
ViruZ3

Advocate
 
ViruZ3's Avatar
 
Join Date: May 2007
Location: Aiur
Posts: 203
ViruZ3 is an unknown quantity at this point
Send a message via MSN to ViruZ3
Default

Quote:
Originally Posted by lpxxfaintxx View Post
I highly recommend using WAMP.
Ok. I'll try that... Is Apache better than IIS?
__________________
Prowd Owner of Assault Corporation
Assault Corporation Forums
ViruZ3 15 0FF11|\|3   Reply With Quote

Old 05-23-2007, 11:56 AM   #7 (permalink)
ulliklliwi

Disciple
 
ulliklliwi's Avatar
 
Join Date: May 2007
Location: The Code Cave after the JMP Gate
Posts: 545
ulliklliwi has a spectacular aura about
Send a message via MSN to ulliklliwi
Default

In IIS goto "Web Service Extensions" and Allow PHP.

PS: WINDOWS sucks, Linux is better, Apache is better.
ulliklliwi 15 0FF11|\|3   Reply With Quote

Old 05-23-2007, 12:16 PM   #8 (permalink)
ViruZ3

Advocate
 
ViruZ3's Avatar
 
Join Date: May 2007
Location: Aiur
Posts: 203
ViruZ3 is an unknown quantity at this point
Send a message via MSN to ViruZ3
Default

Quote:
Originally Posted by ulliklliwi View Post
PS: WINDOWS sucks, Linux is better, Apache is better.
Ya but soo many people dont even realize that Linux exists... Where as Windows... Everyone uses windows.
__________________
Prowd Owner of Assault Corporation
Assault Corporation Forums
ViruZ3 15 0FF11|\|3   Reply With Quote

Old 05-23-2007, 02:24 PM   #9 (permalink)
saren

Crusader
 
saren's Avatar
 
Join Date: Feb 2005
Location: Tucson, AZ
Posts: 3,327
saren has much to be proud ofsaren has much to be proud ofsaren has much to be proud ofsaren has much to be proud ofsaren has much to be proud ofsaren has much to be proud of
Default

Quote:
Originally Posted by ulliklliwi View Post
In IIS goto "Web Service Extensions" and Allow PHP.

PS: WINDOWS sucks, Linux is better, Apache is better.
Linux apache < Windows IIS 6.0 in terms of security.

You may be talking about Apache2, however. Which on Solaris is a fortress.
__________________


Burn, baby, burn.
saren 15 0FF11|\|3   Reply With Quote

Old 05-23-2007, 03:40 PM   #10 (permalink)
HARD_ON

Inquisitor
 
HARD_ON's Avatar
 
Join Date: Apr 2005
Location: 33°46'N - 84°25'W
Posts: 4,440
HARD_ON is a name known to allHARD_ON is a name known to allHARD_ON is a name known to allHARD_ON is a name known to all
Send a message via ICQ to HARD_ON Send a message via AIM to HARD_ON Send a message via MSN to HARD_ON Send a message via Yahoo to HARD_ON Send a message via Skype™ to HARD_ON
Default

Built-in Apache, beesh.

__________________
"Roses are red, Violets are blue, I'll **** you with a rake."
Quote:
Originally Posted by Degausser View Post
tomato, tomato.
Why are we living for?
HARD_ON 15 0FF11|\|3   Reply With Quote

Old 05-23-2007, 10:32 PM   #11 (permalink)
YonderKnight
Senior Member
Gold Member

Evangelist
 
YonderKnight's Avatar
 
Join Date: Sep 2004
Location: USA, California
Posts: 1,392
YonderKnight is a name known to allYonderKnight is a name known to allYonderKnight is a name known to allYonderKnight is a name known to all
Send a message via AIM to YonderKnight
Default

Quote:
Originally Posted by game_on View Post
Built-in Apache, beesh.
gj, now let's see PHP+mySQL with that =p.
YonderKnight 15 0FF11|\|3   Reply With Quote

Old 05-24-2007, 02:48 AM   #12 (permalink)
ViruZ3

Advocate
 
ViruZ3's Avatar
 
Join Date: May 2007
Location: Aiur
Posts: 203
ViruZ3 is an unknown quantity at this point
Send a message via MSN to ViruZ3
Default

Well... Im using WAMP as my server... Im fine now Thanks for all your help guys.

Btw, I dont have a Mac
__________________
Prowd Owner of Assault Corporation
Assault Corporation Forums
ViruZ3 15 0FF11|\|3   Reply With Quote

Old 05-25-2007, 04:01 PM   #13 (permalink)
bulk_4me
F7 F1EF
Senior Member
Retired Staff Member

Enlightened
 
bulk_4me's Avatar
 
Join Date: Jun 2004
Location: Torreón, Coah. México
Posts: 3,219
bulk_4me is a splendid one to beholdbulk_4me is a splendid one to beholdbulk_4me is a splendid one to beholdbulk_4me is a splendid one to beholdbulk_4me is a splendid one to beholdbulk_4me is a splendid one to behold
Default

No, that's retarded download the Installer and use IIS.
__________________
bulk_4me 15 0FF11|\|3   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blizzard, Blizzard, Blizzard.... Nitto Hardware and Software 11 03-20-2007 12:10 AM
PHP, a toy language? Gantznaught Programming 20 12-18-2005 03:32 AM
Vb and Mysql posable? MasterX Programming 15 10-10-2005 06:54 PM
Looking for free host php mysql Miles Programming 0 07-19-2005 04:30 AM
vBulletin Question... Attachments SmashedPumpkins Website Related 5 07-08-2005 03:41 PM


All times are GMT. The time now is 09:17 PM.


vBulletin style developed by Transverse Styles

Powered by vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
Copyright © 2004-2008 BWHacksAd Management by RedTyger