I have AMPPS installed on my Mac OS X, and am trying to install the CMS. When I browse to http://craft.dev/admin to install, it redirects to http://craft.dev/admin/install with the following error:

Fatal error: Call to undefined function ctype_alpha() in /Users/username/domains/craft.dev/craft/app/vendor/twig/twig/lib/Twig/Lexer.php on line 380

Any suggestions on fixing the issue?

  • The only thing I can think of is that you don't have the php ctype extention installed or enabled. Commented Dec 19, 2014 at 3:05
  • In my phpinfo I thought it said it was enabled...it wasn't, thus the error. Thanks! Commented Dec 19, 2014 at 4:39
  • Great! Glad you found it. I'll add it as an answer so we can close this. Commented Dec 19, 2014 at 5:03

1 Answer 1


Check that the php ctype extension is installed or enabled.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.