PHP scripts won't execute/load on my web hosting server - php

Hi so my hosting provider screwed up my server and my website was unaccessible for a week. I messed around with the .htaccess and php.ini files and finally got my site to at least load again. Their tech ppl don't know how to do anything..
But I had a few php scripts that would fetch content from locations and add it to my wordpress site. They worked flawlessly before my host messed everything up! Now when I try calling them.. they'll take awhile to load, then just show a blank white page (its supposed to show a completed message and the content added).
I don't know much about .htaccess or php.ini files, but the last I heard from my host, both of those contained issues leading to my site not working at all.. They also messed up the error log reporting. So there are literally no hints to help trace where the problem is coming from.
If anyone has any idea how I can resolve this, I'd greatly appreciate it :) Thanks!
PHP.ini - slightly changed from iPage's default:
(its over 3,000 lines long..)
Heres a link where I posted the code: http://codeshare.io/nqwrM
.htaccess
Also linked to shared editor: http://codeshare.io/jDLz8

Related

Wordpress admin not accessible

My wordpress site was working perfectly all right for last 2 years. Suddenly yesterday it started saying "Sorry, you are not allowed to access this page." when I try to access wp-admin.
I have not changed anything yesterday, the only change which has happened is increase in traffic, since the site is getting 4x traffic.
I have tried disabling all the plugins, checked user details in the database everything appears intact. Tried many commonly suggestions for this problem but still the issue persists.
One observation is some of the plugins are not working apart from access issues to the wp-admin. 15 days back I had installed certificates and moved to HTTPS can, but had no issues due to the move.
Can anyone suggest something, please?
Might be an issue with unix permissions, if your is a linux server (you did not specify anything about your system).
Usually, if you have:
/var/www/mywordpress
with drwxrwxr-x then the website is full open to anybody.
Else, if the permissions are dr-x------ you may get the error
Forbidden
You don't have permission to access /mywordpress/ on this server.
But I don't think someone or you, changed permissions on the folder. Still, better if you have a look onto it
EDIT:
This link might be of help:
codex.wordpress.org/Changing_File_Permissions

every php file returns 500 internal server error on Apache server

I have searched for the same error occurring elsewhere and the only set of answers that come close are at:
Any .php file causing INTERNAL SERVER ERROR
But they don't help with my current predicament.
I'm trying to fix my other half's dad's croquet website and I deleted the .htaccess file while I was updating the files.
This is a WordPress website.
All the new files are there barring the .htaccess file. Tried a few htaccess files recommended across the web, but still all I get when trying to kickstart any php files is the 500 Internal Server Error message.
The web host is Easily, which is in itself fun and games.
Anyone got any suggestions what I might try next?
Checked the logs, and nothing particularly helpful sticks out.
Thanks a million.
Dave

The page isn’t redirecting properly error in codeigniter

I am getting a very unusual error, most of the time I can fix this The page isn’t redirecting properly very quickly as it's either something messed up with htaccess or in php script but I have looked for hours and can't find the single problem.
The page loads once with broken css and javascript files, and takes a long time to load but after that this error starts to appear and it'll only fade away when you clear the browsers cache then again the website loads for one time only before showing this error.
Some details
.htaccess file is blank
I tried loading just the welcome module only but the problem remains same.
The server has been updated so I am wondering if this may have caused this problem.
I hope you guys can help me figure out why my website is on redirection loop, I can feel it's something related with cookies but I am not sure what.
File Structure
application
cgi-bin
cronjobs
system
images
system
.htacess
index.php
test.php
Edit:
Website works flawlessly on localhost.
For future if someone stumbles upon this issue, I found out that the sessions were causing issues. I was auto loading the session library and when i removed it to test, it all started to work smoothly. So basically the main problem is with my php configuration and I have got my server guy to look into why the sessions are not working.

What can cause a website to not always load

Roughly about 20% of the time when clicking on links in my website (www.slr-lens.co.uk), the site completely fails to load. I have tried removing and adding all code segments but to no avail... I've also asked the web hosts, but apparently the server is working normally.
Does anyone have any suggestions about what could cause a web page to sometimes not load? E.g. any specific lines in the php.ini?
The site uses sessions, and there's quite a lot of mysql action for each page load.
Internet explorer will say:
"Internet Explorer can't load this page"
Google chrome will say:
This web page is not avialable: Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error.
Firefox will sometimes only show a blank page.
Sorry for being so vague but its a really vague problem!
Thanks
The answer (or at least a clue) likely lies within your PHP / Apache error logs.
It could be your Apache logs or you just have a bad host. Either way, it seems to load every time here (10+). Have you tried replicating this problem somewhere else?

Why I can view my php source code online?

I purchased a very well-known 3rd-party php-based forum software. Uploaded to my server, run it for few weeks. This morning, when I visit my site, it display all the PHP code, including all the comments etc, like what you will see if you open it with notepad. It was very scary, my database config which is in PHP file also visible, what happened? I have no choice but to take my website down now.
What should I do? How can view PHP code? I thought PHP code is very safe?
Has somebody hacked my website?
That's a configuration problem at the server (like mod_php not being loaded for some reason). Best contact your hosting provider immediately and let them know they have a serious problem!
Unless you have uploaded your own .htaccess file, which could also be the source of problematic Apache configuration settings?
Somebody disabled your script interpretation on your webserver. Ask your host admin.
Quick fix is to place a blank index.html in your website (and forum root directory if different). It won't stop people accessing your source code if they know the script names and know this error is in place, but at least it won't be displayed to every man and his dog as they visit your website/forum.
Other than that, you've had the PHP parsing module on your server disabled, either incorrectly or accidentally. Contact your host immediately, but I presume you would have already done this.

Categories