TinyPortal

Development => Support => Topic started by: gfxindia on July 10, 2006, 01:43:50 PM

Title: Strange Problem
Post by: gfxindia on July 10, 2006, 01:43:50 PM
Suddenly all my php pages stopped working.
http://gfxindia.com/index.php - not working
http://gfxindia.com/contact.php - not working

But html works.
http://gfxindia.com/news_readme.html - working
http://gfxindia.com/readme.html - working.


What might be the problem. Please help.
Title: Re: Strange Problem
Post by: G6Cad on July 10, 2006, 01:52:12 PM
What did you do when this happend ?
Eather it is something you have done (mod, change of code or similar) or perhaps your host changed something in the database, upgraded or even removed?
Title: Re: Strange Problem
Post by: gfxindia on July 10, 2006, 01:54:10 PM
No.
No one did anything.
Read this - http://www.simplemachines.org/community/index.php?topic=98534.0
Please help.
Title: Re: Strange Problem
Post by: G6Cad on July 10, 2006, 01:55:19 PM
Seems like your index.php and contact.php are just empty files right now.

Look if the permissions to the files is changed by your host, and try to upload a backup (if any) of the files and see if the forum return
Title: Re: Strange Problem
Post by: gfxindia on July 10, 2006, 01:57:16 PM
Not only the forum
try http://gfxindia.com/smf/index.php
http://gfxindia.com/tptest/index.php
Only html files and image file, zip etc are working.
Title: Re: Strange Problem
Post by: G6Cad on July 10, 2006, 02:07:31 PM
I just downloaded your index.php and it is empty, you have nothing in the file to load at all.
If you can, try and see if the permisions to the PHP files are changed, perhaps your host have upgraded the database or something and that way the settings and permissions is changed.

But there is no content in the files what so ever, and there for nothing to load from them

Check the files through FTP and see what permissions you have on the files
Title: Re: Strange Problem
Post by: gfxindia on July 10, 2006, 02:09:59 PM
Yes checking from the cpanel. And they do have content. When you view sources, they show only excecuted html.

Should i do anything with the database.

BTW, Did you go thru the link i gave you. He said me to Stop/Start PHP instance. How to do that in CPanel.
Title: Re: Strange Problem
Post by: G6Cad on July 10, 2006, 02:17:02 PM
I have no idea how to restart PHP..

But if you say there is content in your files and i cant see that content, im sure it it is a permission error you have. If the file wont load up for me, i havent any permissions to it. (empty for me)

Try and change the permissions manually trough your cpanel and see if it helps
Title: Re: Strange Problem
Post by: gfxindia on July 10, 2006, 02:20:28 PM
They are set to 777 G6.
Maybe anyone who knows to restart PHP may help me.
Title: Re: Strange Problem
Post by: gfxindia on July 10, 2006, 02:22:05 PM
And hey see this
http://gfxindia.com/smf/index.php
http://gfxindia.com/tptest/index.php

These are working but not my main forum.
Title: Re: Strange Problem
Post by: G6Cad on July 10, 2006, 02:23:50 PM
None of the links work Darcman, they just give a blank page with a download of your index.php file.
Just like on SMF forums a while back.
Title: Re: Strange Problem
Post by: G6Cad on July 10, 2006, 02:26:55 PM
Found this on Google.

QuotePHP Security
Submitted by eth00 on Sat, 2005-04-02 18:22. Beginner information | Security How-To's and Guides

Php by nature is unfortunatly very insecure by default. There are many ways to help make it more secure for a shared hosting enviroment by running modules like mod_security. Another way to do this is by disabling the actual functions that many of these exploits call on. This can be done by simply editing the php.ini and restarting apache. Though you should not have any trouble with the disabled functions if webpages do start to have problems you can always add the function back. Most times you will get an error on a webpage that will tell you exactly which is causing the problem.

The link to the site

http://www.eth0.us/php
Title: Re: Strange Problem
Post by: gfxindia on July 10, 2006, 02:32:39 PM
Couldn't understand that
Title: Re: Strange Problem
Post by: G6Cad on July 10, 2006, 02:37:04 PM
In order to restart the php from the cpanel, you have to edit your php.ini file

Im not in to this kind of things, so i will let this go to some one who knows the way arround so i dont give you wrong things and break every thing for you  :-X
Title: Re: Strange Problem
Post by: IchBin on July 10, 2006, 03:09:53 PM
PHP isn't something really started by itself. It is loaded with the webserver like apache or IIS. Ask your host to do it for you, or have them look at your problem. You also might want to look at your Settings.php files and make sure all the info is there.
Title: Re: Strange Problem
Post by: gfxindia on July 10, 2006, 03:11:21 PM
OK
but no php file is loading. So the problem is not with settings.php
Title: Re: Strange Problem
Post by: IchBin on July 10, 2006, 03:13:23 PM
Definately sounds like your host needs to fix it then.