New Issues

Status
Not open for further replies.

pvtNobody

New Member
Messages
8
Reaction score
0
Points
0
Hi,

I am no longer getting the "Welcome to Apache / cPanel" page, instead I get a 500 Internal Server Error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@solarempire.x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at solarempire.x10hosting.com Port 80



I'm not sure what is wrong can someone please help? My error log as the following messages:

[Tue Mar 04 14:48:52 2008] [alert] [client 66.191.152.6] /home/pvtnobod/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://solarempire.x10hosting.com:2...arempire.x10hosting.com&index_file_conflict=0
[Tue Mar 04 14:48:52 2008] [alert] [client 66.191.152.6] /home/pvtnobod/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://solarempire.x10hosting.com:2...arempire.x10hosting.com&index_file_conflict=0
[Tue Mar 04 14:40:40 2008] [alert] [client 66.191.152.6] /home/pvtnobod/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Tue Mar 04 14:40:40 2008] [alert] [client 66.191.152.6] /home/pvtnobod/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Tue Mar 04 14:40:40 2008] [alert] [client 66.191.152.6] /home/pvtnobod/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Tue Mar 04 14:40:40 2008] [alert] [client 66.191.152.6] /home/pvtnobod/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

I took a look at the .htaccess and noticed several lines with php_flag in it, would removing them solve the problem?
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
This is the clue.
Invalid command 'php_flag'

Open that .htaccess file and comment out the line(s) that include php_flag.
If you are unsure which line is causing the problem, post the contents of the .htaccess file here and I will show you which line needs to be removed.
 
Last edited:

Chris73

New Member
Messages
5,356
Reaction score
1
Points
0
I would suggest upgrading your php. Since you are on basic your php will require more functionality than it has now. Please log into your account management panel and upgrade to phpv2 (intermediate).
 

pvtNobody

New Member
Messages
8
Reaction score
0
Points
0
That makes sense, thanks for the help.
Edit:
So my php has been upgraded, and I've tried commenting out all of the php_flags but it still gives me a 500 Internal Server Error. I've cleared my browser cache as well. I'm still getting the same errors. I don't really know anything about php, I used fantastico to install moodle.

Here is my .htaccess:
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName solarempire.x10hosting.com
AuthUserFile /home/pvtnobod/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/pvtnobod/public_html/_vti_pvt/service.grp
DirectoryIndex index.php index.html index.htm
php_flag magic_quotes_gpc 1
php_flag magic_quotes_runtime 0
php_flag file_uploads 1
php_flag session.auto_start 0
php_flag session.bug_compat_warn 0
<IfDefine APACHE2>
AcceptPathInfo on
</IfDefine>
AddHandler php .php
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
I don't know much about .htaccess (It can get very complicated) so the following may not fix your problem, but it's worth a try. :p

Try commenting out these lines:
AuthName solarempire.x10hosting.com
AuthUserFile /home/pvtnobod/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/pvtnobod/public_html/_vti_pvt/service.grp

These are meant to be used for password protecting a directory, but some lines appear to be missing which could cause a problem.

For it to password protect the entire directory it'll need to be
AuthType Basic
AuthName solarempire.x10hosting.com
AuthUserFile /home/pvtnobod/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/pvtnobod/public_html/_vti_pvt/service.grp
Require valid-user
(Note the 2 extra lines)


(Offtopic)
I have never used Frontpage I I don't think I would want to because it adds useless lines of code like these to files
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
If I am correct these lines do absolutely nothing.
(/Offtopic)
 
Last edited:

pvtNobody

New Member
Messages
8
Reaction score
0
Points
0
Well once again I tried what was suggested and I am still having the same issues. I never thought that it would be this diffucult, especially when I discovered fantastico would install this automatically. Is there anything else I can try?
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Try commenting out the whole lot. (I don't think any of it is vital)

If that works you can un-comment bits to find out what was causing the error.
 
Last edited:

pvtNobody

New Member
Messages
8
Reaction score
0
Points
0
That worked straight away. I haven't been on top of it the past few days, and the server downage got me a little frustrated so I overlooked obvious things like commenting out lines in the code.

Thanks again for being so patient.
 
Status
Not open for further replies.
Top