Welcome, Guest
Please Login or Register.
Lost Password?
Web pages not displaying correctly/500 internal se (1 viewing)
Post Reply

TOPIC: Web pages not displaying correctly/500 internal se

#15897
Berilac (User)
Posts: 43
graphgraph
Web pages not displaying correctly/500 internal se 2008/08/25 09:19  
Have just setup 3 web domains and have set up within Virtualmin.

When I type in an address it displays correctly, well 1 does. Am awaiting a response from my ISP about the other 2. So not to bothered about them.

The one that displays is http://www.letmemindyourchild.co.uk

The problem is when I am trying to install some scripts. Gallery, wordpress etc, I am not able to go to the web address quoted at the end to complete the installation. Comes up with 500 internal server error.

Any ideas as were to start to look for a solution?

I have heard and read that these 500 errors are a nightmare to resolve. Just my luck. I am wondering if this is a php problem.

Have looked in the apache error log and the only error that is displayed is:
Premature end of script headers: index.php

Does this even when accessing via localhost to, if that makes any difference.

Post edited by: Berilac, at: 2008/08/25 09:21
  The administrator has disabled public write access.
#15898
andreychek (Moderator)
Posts: 586
graphgraph
Re:Web pages not displaying correctly/500 internal se 2008/08/25 10:12  
Howdy,

Two questions for you:

1. Is there any other errors related to the problem in the error_log, or is the "premature end of script headers" the only thing you see?

2. During the installation of the apps, Virtualmin outputs various information about what's going on.

Do you see anything listed in that which could be a problem? For example, I've seen times where a warning specified in it ended up preventing it from working -- where the warning was a simple matter of installing or configuring X or Y.
-Eric
  The administrator has disabled public write access.
#15899
Berilac (User)
Posts: 43
graphgraph
Re:Web pages not displaying correctly/500 internal se 2008/08/25 10:29  
Thx for the quick reply andychek.

There was one other error, but I didnt think it related.
Have added error log for info, well last 20 lines.

No errors showed up on installation, just said at the bottom of the page, successfully installed gallery please continue to http://webpage.com/gallery/index.php to complete installation
  The administrator has disabled public write access.
#15900
Berilac (User)
Posts: 43
graphgraph
Re:Web pages not displaying correctly/500 internal se 2008/08/25 10:32  
Huh, attachment didnt add so here it is:

[Mon Aug 25 14:40:49 2008] [error] [client xx.xx.xxx.xx] File does not exist: /var/www/joking/public_html/favicon.ico
[Mon Aug 25 18:52:48 2008] [error] [client xx.xxx.xx.xxx] File does not exist: /var/www/joking/public_html/favicon.ico
[Mon Aug 25 19:05:55 2008] [error] [client xx.xxx.xx.xxx] File does not exist: /var/www/joking/public_html/favicon.ico
[Mon Aug 25 19:05:57 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
[Mon Aug 25 19:06:57 2008] [error] [client xx.xx.xxx.xx] Premature end of script headers: index.php
[Mon Aug 25 19:06:57 2008] [error] [client xx.xx.xxx.xx] File does not exist: /var/www/joking/public_html/favicon.ico
[Mon Aug 25 19:11:08 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
[Mon Aug 25 19:11:32 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
[Mon Aug 25 19:14:17 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
[Mon Aug 25 19:16:14 2008] [error] [client xx.xx.xxx.xx] Premature end of script headers: index.php
[Mon Aug 25 19:19:31 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
[Mon Aug 25 19:25:55 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
[Mon Aug 25 19:27:50 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
[Mon Aug 25 19:43:43 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
[Mon Aug 25 19:46:18 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
[Mon Aug 25 19:49:27 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
[Mon Aug 25 19:54:20 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: install.php
[Mon Aug 25 19:56:32 2008] [error] [client xx.xx.xxx.xx] Premature end of script headers: install.php
[Mon Aug 25 20:02:59 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: install.php
[Mon Aug 25 20:03:06 2008] [error] [client xx.xxx.xx.xxx] Premature end of script headers: index.php
  The administrator has disabled public write access.
#15901
andreychek (Moderator)
Posts: 586
graphgraph
Re:Web pages not displaying correctly/500 internal se 2008/08/25 10:38  
This forum is a bit like the cookie monster, except that it eats posts and attachments.

Your logfile attachment was just the latest casualty.

I suspect, as you mentioned, that there's a PHP issue lingering within your install scripts problem.

Would you mind if I logged into your system and looked around? If that's okay, you can email your login details to eric@virtualmin.com.

The other option is that you might want to verify that PHP itself is working, by creating a test PHP script. However, I could certainly do that for you.
-Eric
  The administrator has disabled public write access.
#15902
Berilac (User)
Posts: 43
graphgraph
Re:Web pages not displaying correctly/500 internal se 2008/08/25 10:59  
I must say I can give this site a 200% recommendation.

Its Bank holiday monday, well it is here, and the quickness of help is amazing, cant fault it.

Kev King
  The administrator has disabled public write access.
#15905
andreychek (Moderator)
Posts: 586
graphgraph
Re:Web pages not displaying correctly/500 internal se 2008/08/25 11:52  
Okay, there's good news, and there's bad news :-)

The good news is that I do see the problem. In the main Apache error log, it shows this:

mod_fcgid: server /var/www/joking/public_html/test.php(1546) started
suexec policy violation: see suexec log for more details

And then, checking out the suexec log, it shows:

[2008-08-25 22:41:23]: uid: (UID/USERNAME) gid: (GID/GID) cmd: php5.fcgi
[2008-08-25 22:41:23]: command not in docroot (/var/www/USERNAME/fcgi-bin/php5.fcgi)

The SuExec related tools provided by Virtualmin are compiled with support to run under /home. The catch there is that they pretty much have to -- you'll get errors like you're seeing if they're run in a different environment, such as under /var/www.

I believe the only way you could run PHP scripts within /var/www is to switch the PHP execution mode to mod_php rather than CGI or FCGId.

You could do that by going into Server Configuration -> Website Options, and then modify "PHP script execution mode".

In a perfect world, that's less desirable (since all scripts run as Apache at that point), but that might be what you'd need to do if you like the current location of your DocumentRoot.

I hope that helps :-)
-Eric
  The administrator has disabled public write access.
#15907
Berilac (User)
Posts: 43
graphgraph
Re:Web pages not displaying correctly/500 internal se 2008/08/25 11:59  
Ah thank you Eric, or I could move my virtual servers and make default location /home in future. If that makes it easier to administer at a later date.

And there was me thinking I was being clever keeping all web stuff in one place.

Will have a think and see which route to take, later.

Once again thankyou Eric very prompt, excellent.
  The administrator has disabled public write access.
#15910
Berilac (User)
Posts: 43
graphgraph
Re:Web pages not displaying correctly/500 internal se 2008/08/25 12:32  
Ah, nope still same error.

Have re installed servers under the default virtualmin setting doc root /home

But still unable to complete installation as before, strange. Same error message, premature end of script headers: install.php
  The administrator has disabled public write access.
#15913
andreychek (Moderator)
Posts: 586
graphgraph
Re:Web pages not displaying correctly/500 internal se 2008/08/25 14:37  
Howdy,

Well, it's a different error now showing up in the logfiles.

The "command not found docroot" error is gone -- but both fcgid and cgi die off running even a basic PHP test script (running PHP's phpinfo().

I'm struggling to figure out what's wrong with this -- so far as I can tell, the configuration looks good.

One of the biggest differences I can see between it and other Virtualmin systems is that you're running PHP from the dotdeb repo.

That, and for whatever reason, Virtualmin doesn't seem to have generated php.ini files in ~/etc/php5. But I attempted to account for that by have it look at the php.ini files in /etc/.

So, I suppose in an attempt to rule out the issue, would you consider installing the Virtualmin PHP package in place of the dotdeb package you have now?

If that doesn't work, it'll at least rule out a number of things. And that will give me some time to think of what else might be going on :-)
-Eric
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.