error when accessing laravel project in ubuntu server 16.04 - laravel

I have problem when i try to access my webapp in my ubuntu server 16.04..
when i try to type my server ip with the laravel folder it showing this message,
The requested URL /laravel_spk-matautama/home was not found on this server.
but then i try to put index.php on my link like this url
http://xxx.xxx.xxx.xxx/laravel_spk-matautama/index.php/home
it works, but the problem is it wont embed the masterpage layout.

Do like this, to access your home page
http://xxx.xxx.xxx.xxx/laravel_spk-matautama/public

Related

object not found laravel 5.2 run on php 7.2 windows 10

Recently, I've been downloading laravel project on github.
after I tried to run the file on my localhost, I found error message on my browser. which look like this.
on the first page, I didnt find any error message. but when I clicked on the menu (register, logo=in, services, any menus) I found this error. enter image description here
you're having problem because the object really doesn't exist in your htdocs directory. You don't have to append xampp after localhost or 127.0.0.1 because xampp will treat it as an object or a folder under htdocs.
if you want to access your services, make sure you have a folder under htdocs and put in your URL localhost/foldername

Laravel 5.4 change base address

I'm working on a Laravel 5.4 project and it's sandbox environment is this:
http://anything.com/sandbox/abc/www/public
I was asked to change it to:
http://anything.com/sandbox/xyz/www/public
After I change the folder via FTP and try to access the new URL I get this error message:
The requested URL /sandbox/abc/www/public/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I tried replacing the base url at the app/config.php and still didn't work.
The website is hosted in a cPanel server.
Any tips on what I should be trying? I just need to change the folder name. That's all.
Thanks for any help!
Answering my question: the problem was that there was a redirection in an .htaccess.

move codeigniter project from localhost to live server

Trying to move the codeigniter project from laptop server to live server. Uploaded the files in Public_HTML and I modified the config.php, base_url, .htaccess as needed and also upgrade the Database... when i run project default controller called correctly when other controller can not call this message show 404 Page Not Found. config.php and .htaccess files update as correct information. This same project run successfully on Local or Desktop server but produce Error on live server 404 Page Not Found home controller (default controller) call but other controller not call.
What is your server? And whats your configuration file?
Make sure you enable mod rewite if you are using apache
a2enmod rewrite
Have you removed index.php from url? Try to access another controller like this.
<domain>/index.php/<controllername>

What is url in ajax

I am developing a cross platform application using cordova. I have to send data from a form in app to a database which is on the on a local server created using XAMPP. MY .php file is in htdocs in xampp. I have tried many different things but nothing worked, the problem seems to be with ajax url. What value is given in ajax url. Now, my database is on my laptop using xampp server.
You should give webserver ip adresse and path to you'r PHP file.
Don't forget you will test from an Android or IOS apps and so there havent access to localhost.
So if you'r PHP file path is : localhost/hello.php you have to check you'r ip adress (cmd -> ipconfig) and then use this url on you'r ajax request : 192.168.XXX.XXX/hello.php

CodeIgniter project shows 404 error in nginx server

I have a Codeigniter project which is already created in XAMPP server and its working fine.For some reason, my client wants to shift it to Nginx server. In Nginx server, only default controller is loading.the other pages are showing 404 error. Is there anything I need to setup in Nginx server.I have an another Codeigniter project which is working perfectly in Nginx server.
Is there anything I have to change in my Codeigniter file
I have tried with
http://localhost/Project1/website_progressing/ this is working fine
home.php is my default controller which shows 404 error
http://localhost/Project1/website_progressing/home

Resources