How to correctly publish CakePHP 3 to external server? - php

I'm writing application in Cakephp-3. I have got local server (Xampp) and external (Apache).
In my local server, all redirect works fine, but when I upload my Cakephp project into external server, I have got error while invoking links.
Error: The view for OnasController::index() was not found.
such a view, of course, exist there!!
I think that's the fault of an external server configuration: path, webroot etc.
I will be very grateful for any solution that help solve my problem.
This is my screen where is project localization.
Ok sorry !! Edited !!!

Related

How to connect to Directus API in localhost

I am trying to setup directus in my website. Since my website is now at localhost I want to connect to API to get database info. I don't know where to point my endpoints in localhost.
My Ampps local server config is
Apache:7.1
sql:5.7.17
Till now I installed composer, then I tried to ping
doc example https://example.com/server/ping
I used https://localhost/server/ping
my directus is located in C:\Program Files (x86)\Ampps\www\trial\directus-master
what will be https://example.com
getting 404 error everytime.
Could you elaborate more, your question is vague with missing information.
Are you saying you have Directus setup on a server, and now you've loaded your website up locally, you want to access that remote instance?
If so, then you need to send your queries to the remote server.
Much like:
https://demo-api.directus.app/server/ping
https://demo-api.directus.app/_/items/sales/1,2,3

Codeigniter project migration to localhost error

I have a problem migrating to localhost from online host. My site is working quite ok online . When i ran the project on local host and changed the base url to localhost and database settings for local host the project accured a problem the host can not find where my style and JavaScript codes are. It gives me error 404 when i check the place of styles . Im sure about that direction is correct. Absolutely first page of site is quite corrupted. Tell me where is the problem and what to do. I would be very thankful if you could tell me all parts of migration.
Thank you.
Kindly check all the javascript links in your file are they all connected?

error deploying to heroku "No input file specified"

i have a project on github that is a simple HTML web page personal portfolio. I attempted to deploy to Heroku from the CLI and it seems that the site deployed correctly as far as i can tell. there are no errors in heroku dashboard, but when i launch the app the browser states "No input file specified." the site works locally and it works on godaddy servers with no errors. I have created an "index.php" and "composer.json" files as the documentation suggested but still getting the error and google hasnt been much help.
has anyone else experienced this?
my kingdom for any assistance...
i found out what the problem was. in case anyone else runs into this there was a user.ini file from when i hosted on godaddy's plesk servers on the root of my project that was screwing everything up. i removed it, redeployed and it wrks fine now.

laravel localhost base_url 500

I've had an app built for me using laravel and I'm trying to get it running on my local machine (MacBook pro running MAMP).
The lead developer is currently away so i was hoping someone could help me with my problem!
No matter what I do, I only get a white page when trying to run the app from a browser, even though I believe I've set the config and htaccess file correctly.
Mamp is running on port 8888 and the app is in the 'event' directory. The config file has the base url as:
$config['base_url'] = 'http://localhost:8888/event/';
but all I get is a white page. I have checked php and thats running fine, and if I call other files outside of the laravel app they all work.
I'm wondering if there's a way I can diagnose the issue using the developer bar or some other tool? At the moment all I can see is a 500 error.
Thanks!

POST method problem in php?

As I am using FCKEditor to develop small web site to manage site contents dynamically. When i add more content in the FCKEditor is working fine in my staging server where if i tested same in my live server, which throwing error as "500 Internal server error". I was not able find out the problem, please help me out.
Sri
It probably isn't a problem directly related to FCKEditor, but most likely a configuration issue. Do you have access to your error logs?

Categories