GPWiki.org
GPWiki.org
It is currently Wed Jun 19, 2013 12:32 pm

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: help setting up PHP
PostPosted: Wed Apr 11, 2007 1:57 am 
411 Operator

Joined: Mon Sep 25, 2006 10:03 am
Posts: 452
Location: UK, England, Watford (Near London)
I am trying to teach myself basic PHP so i can make a few simple pages, but i dont seem to be able to configure it all properly.

I have installed:
- PHP 5.2.something
- MySQL 5.x.x
- Apache 2.2

Because i dont have a server (yet, or use of a server) im using my own computer to act as the server when i want to test files locally. but its not working.
Im only running windows ME so am using DreamWeaver MX 6.
I set up a new site within dreamweaver, that has no testing server or remote server and the localhost section i left as http://127.0.0.1 but i wasnt sure where to save the files to make it so they run wen i want to preview a page.

Any pointers/help will be much appreciated, if its easier add my MSN: sickbailey21@hotmail.com to help me out

EDIT: i was previously getting error connecting to server but i now get a blank white page, seems like a step in the right direction lol, but im not sure, maybe the php isn't running or something?

Im only running a simple hello world exercise with the call echo "hello world"

_________________
Looking for a half decent 2D artist to help me with my game, msg me if you want more details.


if you dont like what i say, dont listen to it.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 4:12 am 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3854
Location: Ferriday, LA, US
I don't know, have you tried using http://localhost instead of the self-reference IP address? Also, does Apache know where to find files (usually in a folder called htdocs or something like that)?

PHP/MySQL/Apache are pretty difficult to setup if you don't know what you're doing, though. Have you considered downloading a pre-configured package like XAMPP? It has everything you need for testing already configured for you (just don't try to run it as an actual public server unless you know how to secure it).

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 7:03 am 
411 Operator

Joined: Mon Sep 25, 2006 10:03 am
Posts: 452
Location: UK, England, Watford (Near London)
all the tutorials that ive browsed through have warned against using those kinds of installers though.
I have small amount of free webspace that ive remembered i had, and i can run a few simple scripts on there for now. but it wont let me run more complex stuff later on.

ive tried http://localhost aswel with no luck, wen i try and run the apache config it doesnt seem to work properly.

_________________
Looking for a half decent 2D artist to help me with my game, msg me if you want more details.


if you dont like what i say, dont listen to it.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 8:00 am 
Bibliotherapist
User avatar

Joined: Wed Dec 21, 2005 6:23 pm
Posts: 6210
Location: Manchester, UK
Ok, if you installed apache in the standard place, you want
C:\Program Files\Apache Group\Apache\htdocs
I think.... make sure you are saving files there, and then put a file called, say info.php in there containing the line:
<?php phpinfo() ?>

than go to 127.0.0.1/info.php
to test whether it works. If it doesn't then it isn't correctly set up, if it does, then make sure dreamweaver is saving to the right place, or start using a notepad replacement ;)

_________________
God must love stupid people, he made so many.
theraje: 'God doesn't love stupid people, they're just easier to make'
http://sharedillusions.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 8:05 am 
Babirusa
User avatar

Joined: Thu Aug 19, 2004 2:55 pm
Posts: 9241
Location: The Netherlands
I normally configured everything myself too. But these days I just use:

http://www.apachefriends.org/en/xampp.html

XAMPP. Installs everything correctly at once. Including PHP / mySQL / Apache.

Or, 'EasyPHP'. I think it does the same.

_________________
Serious game developer

http://www.persistentrealities.com
http://www.persistentrealities.com/vbfibre
http://www.ambiances.nl


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 8:30 am 
Bibliotherapist
User avatar

Joined: Wed Dec 21, 2005 6:23 pm
Posts: 6210
Location: Manchester, UK
Heh :) I couldn't remember the name of that thing... I also had 'fun' with it when I already had php, mysql and apache installed and ended up removing it.

_________________
God must love stupid people, he made so many.
theraje: 'God doesn't love stupid people, they're just easier to make'
http://sharedillusions.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 6:42 pm 
411 Operator

Joined: Mon Sep 25, 2006 10:03 am
Posts: 452
Location: UK, England, Watford (Near London)
workmad3 wrote:
Ok, if you installed apache in the standard place, you want
C:\Program Files\Apache Group\Apache\htdocs
I think.... make sure you are saving files there, and then put a file called, say info.php in there containing the line:
<?php phpinfo() ?>

than go to 127.0.0.1/info.php
to test whether it works. If it doesn't then it isn't correctly set up, if it does, then make sure dreamweaver is saving to the right place, or start using a notepad replacement ;)


i found the htdocs folder there and put the files in to it, yet still no results, ive tried reinstalling everything and still no luck.

_________________
Looking for a half decent 2D artist to help me with my game, msg me if you want more details.


if you dont like what i say, dont listen to it.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 7:44 pm 
Bibliotherapist
User avatar

Joined: Wed Dec 21, 2005 6:23 pm
Posts: 6210
Location: Manchester, UK
sickbailey wrote:
workmad3 wrote:
Ok, if you installed apache in the standard place, you want
C:\Program Files\Apache Group\Apache\htdocs
I think.... make sure you are saving files there, and then put a file called, say info.php in there containing the line:
<?php phpinfo() ?>

than go to 127.0.0.1/info.php
to test whether it works. If it doesn't then it isn't correctly set up, if it does, then make sure dreamweaver is saving to the right place, or start using a notepad replacement ;)


i found the htdocs folder there and put the files in to it, yet still no results, ive tried reinstalling everything and still no luck.
uninstall everything and use the xampp installer then ;)

_________________
God must love stupid people, he made so many.
theraje: 'God doesn't love stupid people, they're just easier to make'
http://sharedillusions.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 7:57 pm 
Babirusa
User avatar

Joined: Thu Aug 19, 2004 2:55 pm
Posts: 9241
Location: The Netherlands
that's probably the easiest. The PHP module might not be loading properly, or not properly added to the 'Add-handler' list (or something)

_________________
Serious game developer

http://www.persistentrealities.com
http://www.persistentrealities.com/vbfibre
http://www.ambiances.nl


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 4:31 am 
411 Operator

Joined: Mon Sep 25, 2006 10:03 am
Posts: 452
Location: UK, England, Watford (Near London)
it works perfect with that xampp thing, thanks for the help guys

_________________
Looking for a half decent 2D artist to help me with my game, msg me if you want more details.


if you dont like what i say, dont listen to it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group