Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 01-20-2009, 07:37 AM   #1 (permalink)
Moderator/Fedora Amb.
 
wmorri's Avatar
 
Join Date: May 2008
Location: /pm/etc
Posts: 2,835
OS: Window 7/Fedora 10

My System

Send a message via AIM to wmorri
[SOLVED] Help with PHP

Hi,

I am having a problem with php. I am just starting to learn it, but I can't see any of the scripts that I have written. Every time I try to see one of my pages I write in the url: localhost/test.php:8080. But then I get a Failed to Connect error. I just figured out my apache problem but I feel like I am just spinning my wheels.

Cheers!
__________________


Linux Forever!

wmorri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 01-20-2009, 06:09 PM   #2 (permalink)
Design Team Member
 
Jaxo's Avatar
 
Join Date: Feb 2008
Location: Deming, NM
Posts: 312
OS: XP SP2 & Vista


Question Re: Help with PHP

Not great on home server side of things, but shouldn't it read localhost:8080/test.php?

Perhaps the server guys would have better luck helping you with this issue? Any other issues accessing .html, .jpg, or any other type of file?
Jaxo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-20-2009, 06:38 PM   #3 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 718
OS: Linux Mint 7

My System

Re: Help with PHP

PHP Code:
<?php
echo phpinfo();
Name this file "info.php", chuck it in your root folder...and try it out. If this doesn't work, there's probably an error with Apache, which may be minor like not having a dependency.
__________________
Free Resources
PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |
Web Design/Programming - KompoZer
(Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting |
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-24-2009, 10:21 PM   #4 (permalink)
Moderator/Fedora Amb.
 
wmorri's Avatar
 
Join Date: May 2008
Location: /pm/etc
Posts: 2,835
OS: Window 7/Fedora 10

My System

Send a message via AIM to wmorri
Re: Help with PHP

Hi,

Sorry it has taken me so long to get back to you. I re-installed apache and php but I am still having the problems. I have moved the file to my home folder but that didn't work. I don't know what else to try at this point.

Cheers!
__________________


Linux Forever!

wmorri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-24-2009, 10:27 PM   #5 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,465
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Help with PHP

Erm, this may seem like a silly question, but is PHP installed and enabled on your Apache install?

Does your ISP block port 80? Try a very-high-numbered port and see if this makes any difference.
__________________


Validate your Markup Validate your CSS Notepad++
Please use [html], [php], and [code] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-25-2009, 02:15 PM   #6 (permalink)
Registered User
 
Join Date: Jan 2009
Location: Belgium, Ranst
Posts: 3
OS: Windows XP SP3


Re: Help with PHP

Quote:
Originally Posted by dm01 View Post
Erm, this may seem like a silly question, but is PHP installed and enabled on your Apache install?

Does your ISP block port 80? Try a very-high-numbered port and see if this makes any difference.
It doesn't really matter if your ISP blocks port 80 cause the request you send to localhost never reaches your ISP. localhost will be resolved to the ip 127.0.0.1! That's the ip of your local machine.

Now back on the problem:

in the config file of apache (httpd.conf) there's a line that's starting with the word 'Listen'. It should be this: Listen 127.0.0.1:80 to be able to connect to your localhost from your own computer.

When you want to be able to connect from another pc you'll have to change 127.0.0.1 (ip) to the ip you received from your isp (not 192.168.... <== router).

Although I think this wouldn't be the problem.

Maybe you should install Xampp, it's php, mysql and apache in one :)
Duckness is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-25-2009, 07:55 PM   #7 (permalink)
Moderator/Fedora Amb.
 
wmorri's Avatar
 
Join Date: May 2008
Location: /pm/etc
Posts: 2,835
OS: Window 7/Fedora 10

My System

Send a message via AIM to wmorri
Re: Help with PHP

Hi,

I don't need Xampp. I run linux I can just set up a LAMP if I wanted. I may need to do that in the end.

You don't need to worry about what ip your apache server is listen to, if you are only worried about your localhost.

EDIT: I have made some progress. I have gotten to get a WSOD, from the phpinfo. I know that this isn't much but it is progress.

Cheers!
__________________


Linux Forever!


Last edited by wmorri; 01-25-2009 at 09:16 PM.
wmorri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-25-2009, 09:52 PM   #8 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,465
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Help with PHP

Sometimes it does matter, especially if your server puked. When I was getting Apache and ColdFusion to work together, I had to use a switchback from my ISP to get to the installs.

N.B.: do not try to get two or more servers to work on the same machine if you would like to keep your sanity and do not know what you are doing. Even if they are not processing the same data at the same time, they will screw each other up. In extreme cases, they may decide to mess with your regular traffic.
__________________


Validate your Markup Validate your CSS Notepad++
Please use [html], [php], and [code] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-26-2009, 08:12 AM   #9 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,886
OS: Vista, various linux distros


Re: Help with PHP

If it's just for learning PHP i'd suggest uninstalling your current set up and installing LAMP instead. I used LAMP when learning PHP, it takes your concentration away from having to re-learn your server's config etc.

As DM01 said, don't run more than one server.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-26-2009, 10:14 AM   #10 (permalink)
Registered User
 
Join Date: Jan 2009
Location: Belgium, Ranst
Posts: 3
OS: Windows XP SP3


Re: Help with PHP

My opinion:

The best way to learn php is on a free webhost. Sometimes it's hard to find one. But the one I like the most (for testing only) is www.funpic.de! Too bad it's german ... But if you can speak a little bit German you should be able to do whatever you like.
Duckness is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-26-2009, 10:31 AM   #11 (permalink)
Moderator/Fedora Amb.
 
wmorri's Avatar
 
Join Date: May 2008
Location: /pm/etc
Posts: 2,835
OS: Window 7/Fedora 10

My System

Send a message via AIM to wmorri
Re: Help with PHP

Hi,

So it took me about an hour but I decided that I would install ubuntu for the time being. I was done fussing with fedora for the moment. I got my LAMP Set up and it is all good. Thanks all for your help.

Cheers!
__________________


Linux Forever!

wmorri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 05:18 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85