Integrate whmcs into my cakephp - cakephp

I have a cake app and want to integrate my license of whmcs. Whmcs have installed it ina whmcs folder in the public html folder and my cake files are here too. When run example.com/whmcs I get a cakephp error what am I doing wrong?
All help appreciated

Try building a CakePHP component and place your whmsc scripts in the vendor directory.
hope this helps

Related

How to create a react project war and deploy it on jboss?

I know there are many articles on google about this but in some cases they are keeping react(frontend) + springboot(backend) together in a single war, but my requirement is different I want to keep the both wars as separate.
So what I tried till now,
Directly adding the react build folder in jboss->standalone->deployment but it does not work, it works on tomcat but not on jboss
Then I created a new dynamic web maven project and renamed react build folder and added it to maven project webapps directory and created a war, but after deployment its giving 403 error, and I am not getting why.
Here is a snapshot of my folder structure, pom file and error on browser
Please help regarding this have been stuck at it for days now with jboss
Is there any other way to do it, I will be happy to change my approach.
tried this also, did not worked
https://www.megadix.it/blog/create-react-app-servlet/
spring boot comes with default tomcat, you can exclude from the dependency
https://spring.io/blog/2014/03/07/deploying-spring-boot-applications
https://dev.to/jakmar17/deploy-spring-boot-on-wildfly-application-server-2029
I have the same problem and I haven't found a good solution. The best I found is to create a dynamic web project in eclipse. Copy the build files into webContent and use HashRouter instead of BrowserRouter with basename equal to the project name. Finally compile and generate the war. I hope the advice helps you.

How to deploy yeoman angularjs project to IIS?

I'm trying to deploy my angular application to IIS in windows server. I'm currently using grunt to build the app and then have a web.config to point to my index.html in the dist folder.
The problem is that is not finding any vendor.css or main.css, nor any vendor.js or scripts.js files. I'm not sure if there are tags I can include to my web.config so that it knows where to look for these files. Also, I copied all folders within the dist and pasted the into the root directory of the application and it seemed to work, but then it could not find components I'm currently using in the app.
This how my website looks with current setup:
ISS Website
If anyone can help me solve this I would greatly appreciate it. Thanks in advance!

Installing CakeDC Users plugin - Error Plugin Users could not be found

Hi all Iam currently trying to install the CakeDC/users plugin using https://github.com/CakeDC/users and have come across an error.
When I run command './Console/cake schema create users --plugin Users' I get the error message:
Error: Plugin Users could not be found.
0 C:\wamp\www\toppin\lib\cake\console\shell.php(376): CakePlugin::load('Users')
I have tried loading both the users and migrations plugins using CakePlugin::loadAll(); and individually using CakePlugin::load('pluginhere');
Any ideas or help would be much appreciated, thanks.
I had the same issue, solved :
Just go to your 'app' dir, not 'app\Console' and run 'Console\cake schema create users --plugin Users'
It worked fine, I'm using xampp under windows 7
You are working in your app folder I assume? If you are calling your plugin Users it should be loaded with CakePlugin::load('Users') and then it should be in your app/Plugin/Users folder.

CakePhp upgrade from 1.3 to 2.0.1 using Shell

Can someone tell me the exact steps to follow on how to do this. the documentation on the cakephp site isnt very helpfull.
I have a clean vanilla copy of cake 2.0.1 on d:\cake201.
I have added the console path in this dir to my PATH var
the project is in d:\www\sbm\trunk\
when navigate to d:\www\sbm\trunk\ in command prompt and run cake upgrade all it modifies the d:\www\sbm\trunk\cake folder and files in there have syntax errors.
when i navigate to d:\www\sbm\trunk\app and run cake upgrade all it looks for the d:\www\sbm\trunk\cake\bootstrap.php but in v2 the cake folder is in d:\www\sbm\trunk\lib\cake
please help
I believe you need to have a copy of your App Folder into the D:\cake201 folder. Now navigate to d:\cake201\app and run cake upgrade all
This should do everything for you ! :)
NOTE: Try not to take the config folder with u and edit that manually, this will be much more easier

How to install CakePHP in xampp?

I am very new to CakePHP and want to know how to install it. Also, can you tell me if the installation process is similar to Joomla! installation. Does CakePHP have an administration interface?
cakephp has administration options. Please put the whole installation in the apps folder on your web-server. Point your browser to the folder i.e. If using a local server, 127.0.0.1/index.php/
Follow the instructions shown.
If you need a cakephp based cms you can use croogo
On Windows:
In xampp the public directory is httdocs. There you copy the cake directory. In the webbrowser you call it with "http://localhost/[your_cakedirectory]" ...
You have to read the sections of installations in the cookbook.

Resources