I’ve recently started with Codeignigter on local windows machine.
I have install the IIS and extracted only ci folder and place index.php, application, system and user_guide in C:\Inetpub\wwwroot.
I've made change in the application/config/config.php to $config['base_url'] = "http://127.0.0.1/";
now i am trying to excess http://127.0.0.1 and http://127.0.0.1/index.php but it shows page not found.
Can anyone tell me how can i fix this Or what else i have to install
may be you have set host name as localhost or root in xampp or wamp what ever server you using.just check
phpmyadmin
to conform.
Related
i'am using first time codeigniter .But i know php .
const CI_VERSION = '3.1.11';
My problem is ; website is working on hosting , im create backup and download my localhost folder.but doesn't work in localhost, i want to work localhost (wamp server). i was get a error HTTP ERROR 500.
localhost url : http://localhost/test/
I was edit : application/config.php
$config['base_url'] = 'http://localhost/test/';
I was update : application/database.php
what should I do ? What is next step ?
Try to install Xampp Software, since wamp server has a issues for proper installation in some systems. This might be the problem.
Check .htaccess is available in your root directory. As well as check the permission for the file for index.php in your root directory.
Before above 2 steps, make sure to check config.php and database.php has done proper changes.
Check the error logs(php_error_log) so that you will find the exact problem.
I cant see my xampp settings: using this URL http://localhost/xampp/
This is the result im looking for:
I dont know why but if i look at examples, everyone's URL looks like http://localhost/xampp/ if i use this Url i get a page saying:
Object not found! The requested URL was not found on this server.
The directory is located in C:\xampp, and if i just add http://localhost/ as domain i get the tree structure of everything within C:\xampp\htdocs.
Also using Xampp v3.2.2 , if im in control panel and click on the Apache Config tab it open my file structure as mentioned above everything within C:\xampp\htdocs.
I just want to mention im using Windows, not Mac, but i meen both windows and mac has these Apache settings afcourse, i just dont get it how i cant find it using http://localhost/xampp/.
Apache & MySQL is switched on.
What i think could be the problem:
Could it be that im missing the /xampp directory within the /htdocs directory ?
Im not sure if there should be a xampp directory in htdocs but its the
only thing that makes sense?
Possible reason: Something is running with port 80
when you run Xampp, check the apache port no. ex: if it is displaying port 8012
then your url is http://localhost:8012/dashboard/
Check Directories for Xampp
Xampp directories.
more about this topic
For check all dependencies in the : httpd-xampp
The only reason i see is the xampp file should be located in the htdocs folder at least that is how i have it.
However i do not think that this will cause a problem for you in developing anything.
Hope this was helpful :)
So i have Ubuntu 16.04 with apache2 installed on it, and my local sites are inside if /var/www/html/ directory.
The problem is that one of my sites based on magento 1.9 redirect me to wrong url everytime. Whenever i'm trying to access localhost/my-site/ it redirects me to localhost/my-site/localhost/my-site/ instead.
I have tried to change .htaccess and even deleting it from site root folder same as changing apache2 hosts configurations inside of apache2/site-available folder and even creating new virtual host in that folder but that didn't helped.
I also tried to fully reinstall apache but no result. My hosts file has just localhost defined now so it can not be conflict with other host.
I think that it replace index.php url part with localhost/my-site but i have no idea how to fix it.
I would realy appreciate some help becose i'm trying to fix this few day already with no result.
Thanks.
Ok, I have solved this problem, by deleting cache folder on my local pc in /var/tmp directory. Apparently this cache was saved when i got redirect first time and after that i was redirecter becose of this.
Hope this will help someone.
I have wamp 2.2 installed on my windows 7, which has php 5.3.10.
I am trying to install magento 1.7.0.2 and getting following error.
when accessing like 127.0.0.1/magento/
The connection was reset
when accessing like localhost/magento/
it redirects me to http://www.localhost.com/magento/ and says
ERROR The requested URL could not be retrieved
What is the problem and how to fix it?
Installing Magento on Wamp is a bit of a pain. I would recommend giving ampps a go: http://www.ampps.com/
It is best to install complex applications like Magento into a Named Virtual Host.
If you have never done that with Apache before here is a quick tutorial/HowTo
Steps to install magento on windows
Download and install wamp server. Link - http://www.wampserver.com/en/
Download Magento. Link - https://www.magentocommerce.com/download, select the .zip format for windows.
Unzip the magento into the path c:/wamp/www/
Add the line 127.0.0.1 www.yourdomain.com to the host.ics file in c:/Windows/System32/drivers/etc/, where 127.0.0.1 refers to the localhost.
Create an empty database in using phpMyAdmin.
Now open your browser and run the link www.yourdomain.com which will open the magento installation wizard.
Complete the installation
I got its answer after consulting one of my friend.
It can be done with a small trick
go to
C:\wamp\www\magento\app\code\core\Mage\Core\Controller\Varien\Router
folder
open Admin.php
and find _shouldBeSecure function and redefine
like
protected function _shouldBeSecure($path)
{
return ; // ie return false, say no to secure path as your localhost
does not need it. }
Now try to install your magento. It will work like charm .
I've got a CodeIgniter project that until now has been only run remotely (it was built on a server... not my idea!). I pulled it from GitHub to my local machine (running OS X 10.6 where I have MySQL and PHP installed and configured).
When I go to the home page (http://localhost) it works fine (connects to DB, runs all the PHP, presents me with the correct page)... but when I click any links (for example, a link on a product that goes to http://localhost/product/details/464) I get a blank page or "Not Found The requested URL /product/details/464 was not found on this server." instantly.
It's as if somewhere in my stack Apache or PHP or CodeIgniter is dropping the ball and not realizing it's supposed to be interpreting this URL and directing it to the proper controller, etc instead is trying to serve it up as if it's a static file. I might be missing something obvious here, but I've been trying to troubleshoot for a few hours with no luck. Any help would be much appreciated!
Did you set the base_url and the index_page in the config.php file? If your Apache is not running mod_rewrite, you need to either enable mod_write and make sure you have your .htaccess file, or else set your index_page to "index.php" so that CodeIgniter works without mod_rewrite.
$config['base_url'] = 'http://yourlocalurl/';
$config['index_page'] = 'index.php';
Mac set up:
$config['base_url'] = 'http://localhost:8000';
$config['index_page'] = 'index.php';
Terminal: php -S localhost:8000
If that doesn't work, make sure apache is running...
Terminal: sudo apachectl start
Then run again: php -S localhost:8000
The .htaccess is your problem, it's not properly redirecting.
The default installation of Apache/PHP in Mac is bizarre. I had problems with CodeIgniter and Apache not recognizing the .htaccess file. Using MAMP [http://www.mamp.info/en/index.html] is a lot more stable and comparable to a Hosted environment.