Tagapp/webroot/

Install WHMCS in CakePHP (Invalid Token)

Installing WHMCS into CakePHP┬ámay give you an “Invalid Token” error as you try to perform tasks in the admin dashboard.

You may search online and find several discussions regarding PHP sessions which is true but not entirely. Some suggest changing the session’s name with PHP session_name('WHMCS'); in the configuration.php file. The real problem is with the rewrite base caused by CakePHP’s parent .htaccess file in the root.

Continue reading

Install a WordPress blog in CakePHP

If you’re using CakePHP, you may want to install WordPress for your blog.

CakePHP rewrites and serves public files out of app/webroot/

So let’s assume that your domain is domain.com and you want your blog to be domain.com/blog/ then you’ll create a /blog/ folder inside app/webroot/ so you have app/webroot/blog/

Then go ahead and install WordPress files into the app/webroot/blog/ folder and inside that folder edit the existing .htaccess file or create a .htaccess file and put the following rewrite rules into it:

Continue reading

© 2017 Contrid

Theme by Anders NorénUp ↑

Pin It on Pinterest