Site just doesn't work (php_

Status
Not open for further replies.

mattyranks

New Member
Messages
156
Reaction score
0
Points
0
For some reason my site just doesn't work at all. I have just uploaded and installed it, yet it doesn't work.


http://tvf.x10hosting.com

I have mybb installed their, yet it doesn't work. However, the odd thing is that i can still access the ACP and set the forums up, yet i can't access them.
 

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
gzip seems to be causing a lot of problems these days. Is it just a dodgy feature or is something wrong on the server?
 

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
gzipo has always been disabled on the free server.

Hmm... Try checking all the permissions of the files and folders. They may be set wrong.
 

mattyranks

New Member
Messages
156
Reaction score
0
Points
0
i think it is something to do with exec being disabled.

i have sent a pm to corey asking him to deal with exec and a few other account issues.

hopefully he will get arrounf to doing it before the site is deleted becuase it has now ads - YET it doesn't even work.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
205
Points
63
Exec is disabled for security reasons. We are not able to enable it at this time.

-Corey
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
MyBB uses the PHP function, exec(), like Corey said.

It uses it (in files such as ./inc/functions.php) to get the server's uptime ($load = @exec("uptime"); )

We have exec() disabled, so calling it from a PHP script will result in a fatal error, which stops the scripts execution immediately.

When a '@' is used in front of the function name to call it, it suppresses any (and all) error output that is caused from calling that function, which means that nothing would be shown if a fatal error occurred, causing you to get just a blank, white page.

Anyway, I commented out the lines that use exec() in these files as you can see:
Code:
[root@cossacks public_html]# grep -R exec\( *
archive/global.php:     //$uptime = @exec('uptime')
global-matt.php:        //$uptime = @exec('uptime');
global.php:     //$uptime = @exec('uptime');
inc/functions.php:                      //$load = @exec("uptime");

This shouldn't have an impact on your forum, besides it not being able to get the server's uptime.
 

mattyranks

New Member
Messages
156
Reaction score
0
Points
0
thanks a lot for that :)
I had no idea that was the problem

I really appreciate you doing that

---

one more question

if i pay and get moved to the business server, will exec be enabled ?
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Yes it would be enabled. We do not restrict much at all on the paid/business hosting server(s).
 
Status
Not open for further replies.
Top