|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
fokkre Smarty n00b
Joined: 31 Aug 2017 Posts: 1
|
Posted: Thu Aug 31, 2017 10:16 pm Post subject: localhost is currently unable to handle request |
|
|
Hello Good People,
I have been tasked with moving an older smarty website over to a new server.
PHP is installed and working as my phpinfo() test page shows up. I have smarty installed and setup, but i get this error when attempting to view the demo site in a browser.
localhost is currently unable to handle this request
HTTP Error 500
I have my php.ini include path setup for my smarty directory
Code: | ; Windows: "\path1;\path2"
include_path = ".;C:\Program Files\PHP\v7.1\includes;C:\Program Files\PHP\v7.1\pear;C:\inetpub\wwwroot\smarty-3.1.30\libs\" |
If I use the absolute path as in the below file all tests come back OK.
Code: | <?php
require_once('C:\inetpub\wwwroot\smarty-3.1.30\libs\Smarty.class.php');
$smarty = new Smarty();
$smarty->testInstall();
?>
Smarty Installation test...
Testing template directory...
C:\inetpub\wwwroot\templates is OK.
Testing compile directory...
C:\inetpub\wwwroot\templates_c is OK.
Testing plugins directory...
C:\inetpub\wwwroot\smarty-3.1.30\libs\plugins is OK.
Testing cache directory...
C:\inetpub\wwwroot\cache is OK.
Testing configs directory...
C:\inetpub\wwwroot\configs\ is OK.
Testing sysplugin files...
... OK
Testing plugin files...
... OK
Tests complete. |
I have gone in and updated the demo index.php file to use the absolute path but I still get the 500 error. Is there somewhere I should look further? Or what is easiest way to turn on debugging to get more info on why it fails? |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Sep 01, 2017 12:33 am Post subject: |
|
|
Look in the actual error message given by PHP, the error you quoted is not telling anything.
And for the love of God, don't use Windows for hosting websites, if at all possible. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|