Jump to content

php function passthru disabled now no website???


Recommended Posts

Posted

Hi there, I just disabled the passthru php function as suggested in my admin dashboard.

BAM, website gone! Rebooting server still gone, add passthru back again and still no website.

Does anyone have any ideas? I'm I'm not blocked by the firewall as the site won't load on other devices or networks and I can still access my VPS and Cpanel 😬

SQL did have a crash and recovered.

Any help would be very much appreciated.

Cheers

Posted

If your website isn't loading, you'll probably need to look through your error logs or inquire with your host unfortunately.

You can try creating a basic php script and see if that works

<?php

function printHelloWorld()
{
	print "Hello World";
}

printHelloWorld();
exit;

This will at least tell you if PHP itself is working. Make sure you're using a supported version of PHP. Possibly turn error display on temporarily, but at the very least make sure you are logging errors and restart your server, then check the error logs.

  • 2 weeks later...
Posted

Thanks @bfarber and sorry I forgot to click the notification checkbox.

It turns out I was running out of memory. Something changed somewhere, in my php.ini I had "128MB" for my memory_limit where it should have been "128M" I had no idea, I've been using "MB" for years.

Thanks again for your reply.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...