CodeIgniter server tests give 404? - php

A client askmed me to write RESTful API using CodeIgniter. Maybe codeigniter-restserver can make my task easier. So I downloaded the package, extract it, and upload it to both servers: my development server (123.100.77.10/ci-server), and the production server (99.40.143.100/ci-server). The only difference is the $config['base_url'] value (in application/config/config.php)
I had no problem running the tests on my development server. All test cases passed succesfully. But on the production server, each of them gives 404.
Anyone ever encountered this issue? How to solve this?

Related

AWS S3 server problem with files downloading in script PHP

Maybe I will find some help here. We're trying since several days to complete file downloading from s3 in PHP laravel with the apache app server. The readStream() or download() function of the drive s3 class is not working giving a 504 gateway timeout error. I think there's an access problem. Two important points are that the upload is working normally and the download is working in local application with local server. I'm not in charge of the server management and I don't have many informations about the server but to access to FTP (via FileZilla for example) the external team in a foreign country has to whitelist my IP. Maybe there's is a firewall issue? Since it's working in local application, there is surely a problem with the configuration of the server? We're working for several days on this problem and I really need someone with more knowledge about these types of issues.
Thanks.

Local vs Deployed Laravel Issue

I am having a weird problem with my Laravel 5.5 app deployed on IIS.
The App has been running for 6 months with no problem, with people adding data into it.
Since yesterday (No changes on Code Side) when the people try to save a form the app just hangs, no error what so ever, even if I put debug mode On.
Now for the weird(er) part, this doesn't happen on all forms and only happens when using the app "over the internet”, When I Remote into the Server and use the App “locally” then The app works Fine with No Problems.
I suspect its a php.ini problem but cant be sure
Thanks.

Deploying Laravel Application on Cloudways error

I'm trying to deploy my local host laravel project to a live Cloudways Digitalocean server. I have done a SSH transfer from bitbucket to deploy the app but am getting the following error when I try to view the live app. Stripe is not causing any issues on the local host.
"Class 'Laravel\Cashier\CashierServiceProvider' not found"
I've also created a seperate .env file and uploaded it to the server using the server database variables. Can anyone advise if this is the correct procedure?
I've found it really difficult to find any tutorials on how to deploy a Laravel app to a live environment. If anyone has encountered this issue or could point me in the right direction to fix this error it would be much appreciated.

Why curl Couldn't resolve host intermittently?

I have a web service application that works fine in my local. I have even installed ngrok and I'm able to call it on the public web. But as I put my code on our production server I keep getting the 'Couldn't resolve host' error. I'm using different APIs in my service and intermittently I get this error. (I use apache in my local and nginx on prod)
For example I work with googleapis.com and sometimes it works and sometimes it doesn't on the server. The exact same code works just fine on my local.
It's worth mentioning that I've had this application for few months on this server and it's only this past few days that I've started to get these type of errors.
BTW I've noticed that the Curl version in my local and production and their settings are different but I don't know if that could be the source of the problem because it was working just fine.
I would appreciate any kind of guidance.

How to correctly publish CakePHP 3 to external server?

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 !!!

Categories