#1  
Old 21st July 2008, 17:33
Carlo Gambino Carlo Gambino is offline
Junior Member
 
Join Date: Jul 2008
Location: Columbus, Ohio
Posts: 17
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via MSN to Carlo Gambino Send a message via Yahoo to Carlo Gambino
Default New to PHP

Hello!

I made a small php file and uploaded it to my server to ensure I've set everything up correctly:

Code:
<HTML>
<HEAD>
<TITLE>PHP Testing</TITLE>
</HEAD>
<BODY>
<?php
echo "if this works, we <i>really</i> did it!";
?>
</BODY>
</HTML>
and confirmed the file was in the correct directory. When I call the file in a browser, I see the code, not the echo'd text. The code looks correct to me, but I am new to PHP. Is it the code or the configuration?
Reply With Quote
Sponsored Links
  #2  
Old 22nd July 2008, 08:56
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

your web server is not setup to interpret php files, you need to fix that.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 22nd July 2008, 14:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Which tutorial did you follow to set the server up?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 22nd July 2008, 22:48
Carlo Gambino Carlo Gambino is offline
Junior Member
 
Join Date: Jul 2008
Location: Columbus, Ohio
Posts: 17
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via MSN to Carlo Gambino Send a message via Yahoo to Carlo Gambino
Default

Quote:
Which tutorial did you follow to set the server up?
The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server)

I also uninstalled PHP and reinstalled using the documentation available by Ubuntu.
Reply With Quote
  #5  
Old 23rd July 2008, 19:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

I guess you also followed chapter 17.1 (Disable PHP Globally) of that tutorial? If you're not using ISPConfig, undo that chapter, and PHP will work again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Carlo Gambino (24th July 2008)
  #6  
Old 24th July 2008, 02:46
Carlo Gambino Carlo Gambino is offline
Junior Member
 
Join Date: Jul 2008
Location: Columbus, Ohio
Posts: 17
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via MSN to Carlo Gambino Send a message via Yahoo to Carlo Gambino
 
Default

Thanks for pointing out the oversight!

I even told myself not to do this while I was reading the tutorial.. I must have been on auto pilot.

php works, thanks for the help!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 10:20
network issues now it says "401 The web site is blocked by administrator" Check General 3 26th February 2008 14:22
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


All times are GMT +2. The time now is 23:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.