Cakephp requested URL not found - cakephp

i am using Cakephp1.3 on ubuntu 11.10
i create a table name users . i cake bake the application. and user_controller , views and models all are present.
Now when i am trying to acess http://localhost/yps/users/ it gives following error
Not Found
The requested URL /yps/users/ was not found on this server
Anybody have idea about this
Thanks

Please follow the name convention, like #Joseph said
I encounter the same issue, it's caused by mod_rewrite, like #dhofstet said. Fix it, then everything works well. And how to fix it dependes on your web server's configuration. (http://book.cakephp.org/2.0/en/getting-started.html#a-note-on-mod-rewrite)

Related

Could not load configuration file public_html/app/Config/facebook.php

Iam trying to implement basic Facebook functionality in my CakePHP project. Iam getting the following error:
I did a bit of digging and turns out /public_html/app/Config/facebook.php is the wrong location for my CakePHP-Facebook-Plugin. My CakePHP is actually located in /public_html/app/Plugin/Facebook//Config/facebook.php funny thing is i just cant get a clue were CakePHP is getting that wrong location.
Also iam using the
CakePHP-Facebook-Plugin ver 3.1.3 (latest)
CakePHP Framework version 2.5.4 (old)
I am also running this on a Hostinger Free subdomain account and some people suggested CURL could be an issue with free accounts BUT it seems enabled on the PHP configuration settings.
SOLVED, Had to move the facebook.php file to app/config/

Joomla site shows IP address instead of url

I am finalizing my Joomla-site with a Siteground host and encounter the following problem: my site shows the IP-adress instead of the url. Although I type in the url (www.nooitmeerfile.be by the way), it shows the IP-adress.
Could someone please give me a step-by-step explanation on how to fix this? I happen to find a lot of fragmented answers cluttered around the web. I am a novice user, and I'm stuck :-)
Thanks!
Possible steps to debug your issue:
Check configuration.php public $live_site = ''; and try to add your
domain (without trailing slash).
Check if .htaccess file is not altered and try to download and use a fresh copy.
Check if you are using 3rd party sef components / plugins and try to disable them.
Clear your joomla and browser cache.
Contact your hosting provider if something in your hosting is misconfigured.
Hope this helps

How do I configure Bolt CMS on an subdomain correctly?

I currently have a working Bolt installation on my main domain (i.e. example.com). But I also wanted a subdomain (i.e. blog.example.com).
I created it, but when I uploaded Bolt to it, but when I tried to access it I only got 404 errors.
I tried copying the Bolt installation from the main domain, then only the main page works, but when I try to access the CMS I get a 404 error. Also if I try to access other pages (i.e. blog.example.com/images) I get a 404.
I tried to change the RewriteBase in the .htaccess to all possible things, but no result.
Also if I do it on another hosting company it is just working, does anyone have a suggestion?
Thanks in advance!
if it is working at another hosting company, maybe that is something non-bolt related issue.
I assume that both of them Apache, so after checking file access rights then I would check apache log.
I had the exact same issue and found out that mod_rewrite was disabled on my sub domain.

how i can disable cakephp Test Suite?

do you test this url in your application that writted with cakephp ?
www.yourCakephpApp.com/test
you see a page like this:
http://www.eliteprojects.org/cake/app/webroot/test.php
how i can disable test suite?
You access CakePHP's built-in test suite's web runner by going to /yourapp/test.php or /test.php, depending on your server's configuration. Going to /test should give you a 404 error unless you specifically added such a route or a file/path named test in your webroot directory.
You can disable the web runner by denying access to it in your server configurations or by simply removing the file. However, there's rarely a reason to do this, as:
A major part of CakePHP's development platform is its comprehensive testing support. It would be like using CakePHP and removing the bake console.
The test runner is designed to be accessible only during development. So unless you're using a debug mode > 0 in production (which you shouldn't be doing), the web runner won't be accessible from that URL.
Lastly, if you're new to Cake, you need to read the Cake cookbook. Start from the first section, and work your way down to the Blog Tutorial. This will answer most of your questions and avoid a lot of common mistakes (such as your misconfiguring your server's docroot and not having URL rewriting set up properly).
Note:
I've bolded the part about the Cookbook because it is such a crucial resource for learning Cake development, and it's the first place you should consult if you run into any problems or have a question. In fact, people get quite annoyed on #cakephp at new users asking the same basic questions that are already answered in the Cookbook—especially if you haven't done the Blog Tutorial.
It should never happens.
After visiting your main web page, it looks like you are running IIS and your server is misconfigured to run CakePHP project. Cake needs mod_rewrite to work but the htaccess is for Apache server only.
While I'm not very sure how to do this, CakePHP documentation did tell you how to achieve this. Checkout the book here:
http://book.cakephp.org/2.0/en/installation/advanced-installation.html#url-rewrites-on-iis7-windows-hosts
Why cant you comment out the contents of test.php and add header("Location: index.php");
??
Simply delete app/webroot/test.php in your production environment.

Codeigniter CLI Controller mishap

So i followed this tutorial
http://codeigniter.com/user_guide/general/cli.html
and i tried doing
php index.php tools message
but i'm getting this error in terminal:
<h1>A Database Error Occurred</h1>
<p>Unable to connect to your database server using the provided settings.</p>
<p>Filename:/Applications/XAMPP/xamppfiles/htdocs/470repo/projects/main/development/CodeIgniter/third_party/MX/Loader.php</p>
<p>Line Number: 98</p>
I need this in order to bake assets using the Sprinkle library from https://github.com/edmundask/Sprinkle/wiki/Baking-assets
I've been looking around the forum, but I can't find a specific solution to this problem. So, i am in need to saving.
I'm using php version 5.3.1 and the latest version of codeigniter.
Any help would be greatly appreciated, thanks! :)
Are you working from local?
If yes, try changing the hostname from
$db['default']['hostname'] = 'localhost';
to this:
$db['default']['hostname'] = '127.0.0.1';
It seems he can't connect to your database. Did you check your database settings in the database.php config file if it's correct?
If you are using multiple environments, check the part where you set your environment. Maybe he picks the wrong one.
You can also enable logs in the config.php file and check those.

Resources