Welcome to WebmasterWorld Guest from 54.80.97.221

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP usage problems on hosted site

PHP usage problem

     
4:04 am on Jul 24, 2007 (gmt 0)

New User

10+ Year Member

joined:July 24, 2007
posts:8
votes: 0


Hello,

I'm fairly new with PHP, especially when it's on a paid hosting site, as I have no control. I have quite a few books and plenty of places to get help, but my main problem is that I've tried very simple things, such PHPINFO(), just to see if anything from PHP is working, but have had no luck. I'm not getting ANY support from the hosting provider, I will not mention any names, as they've been very rude and pretty much worthless. Unfortunately, I've paid and my time isn't up with them until this September, at which time I will not be renewing and will be moving to a different provider.

Anyhow, does anyone have any advise for things that I can try to get PHP working on the site? I'm totally at a loss, as nothing works, no matter how simple, so something must be set incorrectly, in my opinion.

Thanks in advance.

--Ken

4:58 am on July 24, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 15, 2004
posts:1867
votes: 0


Are you sure you have PHP up and running on your server?
When you tried it what kind of results did you get?
Did you upload your file with .php extension?

You might have already tried it but put the following lines on test.php and upload it to see if you have it in your system.

<?php
phpinfo();
?>

...and Welcome to WebmasterWorld.

Habtom

12:39 am on July 27, 2007 (gmt 0)

New User

10+ Year Member

joined:July 24, 2007
posts:8
votes: 0


Habtom,

Thanks for your reply.

Actually, the server isn't mine, but one that I'm paying to use. I tried the exact statement that you presented and saved the file with the .php extension. Here's the file contents so that you may see what I entered:

********************
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
</head>
<body>
<?php
phpinfo();
?>
</body>
</html>
********************

I'm told that PHP is running on the site and within the cpanel console, it shows me the PHP Configuration section, which has various information. There is a PHP folder in my root area. Regarding results, I received a 500 Internal Server Error message.

Thanks again for the helpful welcome! :)

--Arcanos

1:20 am on July 27, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 11, 2005
posts: 76
votes: 0


Maybe it helps when you put a file named 'info.php' (without the quotes) inside the php directory that is browsable on the web and then put this content in it:


<?php
phpinfo();
?>

If your php installation is OK this will show a correct php information page (which includes all the html)

1:40 am on July 27, 2007 (gmt 0)

New User

10+ Year Member

joined:July 24, 2007
posts: 8
votes: 0


John,

Thanks for your reply.

I think the php file has to be inside of the public_html folder and/or one of its sub-folders before it can be accessed from the web.

Unfortunately, I cannot get the administrator to respond to any of my support requests. I sent another new support request about an hour ago, so we'll see if I get a response. They're claiming to have 24/7/365 Support, but so far I've received NONE and had to go through their free hosting areas message boards to get any kind of responses. They promptly removed my messages, which I've been very polite, from the boards and then gave me an email response which didn't help at all and were very rude, like I was bothering them. Their price is great, especially since the sites that I'm hosting are for personal use only, which is around $54/year and gives Perl, PHP, MySQL, CPanel and Fantastico with decent enough bandwidth and space. I'm primarily using it to host my daughters pictures for the family and testing with Perl/PHP code to get a better grasp of it, from a web perspective.

I don't know if this is against the rules of this forum, but do you or anyone else have any suggestions of another site, closely priced, that offers the same features? I have one in mind that's comparable, but I'm waiting until closer to September, when renewal is due, before I'm switching.

Thanks again.

--Arcanos

5:09 am on July 27, 2007 (gmt 0)

Senior Member

joined:Nov 12, 2005
posts:5967
votes: 0


There's a quick way that usually works to determine if php is enabled on the server, unless the expose_php directive is turned off. Add this to the uri:

http://www.example.com/?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000

This will bring up php's credits. If this works, php is working on the server. If not, then the directive is turned off or php isn't configured correctly. In either case, you are going to have to work this out with your host.

If I were you, I'd find another host asap, however, discussion of hosting providers is not allowed on these forums.

good luck

5:45 am on July 27, 2007 (gmt 0)

New User

10+ Year Member

joined:July 24, 2007
posts:8
votes: 0


eelixduppy,

Thanks so much for the great advise! I'm going to give your suggestions a try, but am definitely going to be switching providers. I've used up all of my "benefits of the doubts" with them.

Thanks again.

BTW, This site is great! I can't believe I didn't run across it before.

--Arcanos

5:48 am on July 27, 2007 (gmt 0)

New User

10+ Year Member

joined:July 24, 2007
posts: 8
votes: 0


eelixduppy,

I tried the address, but it just brought up the site. I assume that this would be the correct function if the directive is turned off, correct?

Thanks again.

--Arcanos

5:55 am on July 27, 2007 (gmt 0)

Senior Member

joined:Nov 12, 2005
posts:5967
votes: 0


It won't do anything but load the page, yes.

Just out of curiosity, you did replace example.com with your domain name, right? I'm sorry if you did, it's just that it sounds like you could have done either.

If php doesn't work in any file, the credits don't show up (even though this could be expected behavior) and you are getting internal server errors however have no .htaccess files, then the problem lies with the server somewhere.

4:51 pm on July 28, 2007 (gmt 0)

New User

10+ Year Member

joined:July 24, 2007
posts: 8
votes: 0


eelixduppy,

I did replace the URL and it brought up the page, but without the credits. I tried the string with the host's free pages forum URL, which did bring up the credits. They must have something configured incorrectly on my account. The page name, on the top bar of the browser does say "phpinfo()".

I can't get any response from them after trying their "various" support contact methods, so I'm not for sure what to think. I'm very bummed over this, as I can't try anything new and am not getting the support that they supposedly offer. I should have took care of this problem when I first signed up, but that's when my daughter was first born and the site wasn't on a high priority. I'm not nearly as sleep deprived as I was then, so things are a bit different now.

I think that I'll try calling their support number to see if I'll luck out again and get someone on the phone.

Thanks again for your help and letting me rant! :)

--Arcanos

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members