I am using Aptana 3.22 with XAMPP. When I run a PHP file, the url shows as http://127.0.0.1:8020/somefile.php and the PHP code is just listed in the browser. However, if I replace 127.0.0.1:8020 with localhost it all works just fine.
I think that to vague to be able to get a good answer, in that there's too many variables that could affect it, I'd hazard a guess that localhost doesn't really point to localhost:8020 but rather just localhost:80 (the standard), so you might be seeing a different site.
Go to run configurations select Web Browser then choose which browser you want to use. Then in the main tab find use base URL and click on it. Enter http://localhost/ and make sure that you check the append project name.
Make sure that your index page's name is index.php and try running it. Hope this helps.
Related
I have a problem with Laravel I recently put it in a VPS I could download, I could use composer, BUT I do not know what it's happening because I go into the folder with URL I mean, I write:
http://myproject.com/
It should be shown me something but it is not happening, when i do that it just makes a download and it does not display anything.
You can test it http://dominicanspasalon.com/ then make click in dominican_spa_salon where the larave is... you will see that it does not display anything, it just makes the download... what could it be?
Thanks!
If nginx you need edit Nginx Configuration "server {}". In that file change root path.
Good luck!
I am trying to run Codeigniter in IIS. I am able to get the welcome page but not able to load any controller.
What i understand is that, it is executing the index.php file but if we give any value after that in the URL the IIS is not responding.
For example
<domain>/<folder>/index.php - Works
But
<domain>/<folder>/index.php/welcome - Doesn't Works
What I assume is that in the second case is that instead of executing the index.php, the IIS is treating it as a folder and looking for script inside index.php/welcome folder.
Is there any way to make it work.
The server is running on IIS 4. (It is running on our client machine and we don't have option to upgrade it. )
Thanks in advance
I have two applications "myapp" and "magento" on my localhost at 192.168.1.110/myapps (A) and 192.168.1.110/magento (B). (A) is an app that I wrote and can be accessed by any computer on our LAN. However, (B) cannot be accessed by anyone except on my computer, localhost.
I haven't done any special port-opening or blocking on Apache or Magento, so I'm puzzled by this. Does anybody have any insight on what might be wrong and where I should look? TIA!
EDIT: in Internet Explorer, the error is just a generic message that says "cannot display this webpage" as if it cannot even recognize the address.
EDIT 2: I tried Firebug as suggested. This is what I'm seeing under the Net tab.
"GET Magento" under URL and "ABORTED" under status. When I hover over with mouse cursor, however, it displays http://127.0.0.1/magento, which is the localhost address.. Is this being http://192.168.1.110/magento being rerouted to http://127.0.0.1/magento?
Check the base URL settings in Magento. It sounds like your base URL is set to http://127.0.0.1/magento. When you go to http://192.168.1.110/magento Magento will be called, but it will redirect to http://127.0.0.1/magento which does not work on the remote machine. You should change the base URL in Magento to http://192.168.1.110/magento.
I'm experimenting (and having problems!) with codeigniter.
In particular, links do not work.
even if they are correct (eg. http://localhost/ci-book/welcome/cat/3, where welcome is controller, cat the method), they can't be open and chrome says "Oops! This link appears to be broken...."
Someone suggested to check that mod_rewrite is working. How can I do that?
I'm using Mamp.
thanks,
P.
First, check that the basic URL without mod_rewrite works: http://localhost/ci-book/index.php?welcome/cat/3
Then setup mod_rewrite, restart httpd, and attempt to navigate back to your URL. If it works (or at least, if part of the page loads with errors), then mod_rewrite is working.
I have Joomla 1.5.9 running on IIS7. I'm now experimenting with the SEO Settings from the Joomla global configuration page.
First I toyed with Search Engine Friendly URLs (that gets rid of the queries part of URLs); that works fine.
I also tried to enable the "Use Apache mod_rewrite". I installed "Microsoft URL Rewrite Module for IIS 7.0" and added the web.config as per http://learn.iis.net/page.aspx/527/joomla-on-iis . When clicking on menu links, this seems to work in that I no longer see index.php in the URL. The address bar updates to what appears like the right URL, but the content shown is always that of the home page. I tried both in IE and Google Chrome with the same result. Refreshing the page after loaded made no difference.
I tried re-starting IIS7, it didn't make a difference.
Edit: After I followed the suggestion below (followed instructions at http://www.mydotnetworld.com/post/2008/10/24/URL-Rewriting-In-Joomla-15-on-IIS-7.aspx :turned on fast cgi, modified php.ini, and imported rewrite rules instead of putting them in a web.config myself), I now get 404's instead of just showing the home page's content. The URL still appears to be correctly rewritten. So, different behavior but still doesn't work. I'm not sure this is useful information, but these two fields are shown in the 404 page:
Requested URL http://localhost:80/joomla_course/seasonal-specialties
Physical Path C:\inetpub\wwwroot\joomla_course\seasonal-specialties
Should the physical path be the 'non-rewritten' URL? Or is it expected that that it be like this?
Edit 2: Oho! I found someone with the same issue posted on Joomla forums: http://forum.joomla.org/viewtopic.php?f=543&t=364706&p=1598137#p1598137 . No answer there either, though.
Any idea on how to diagnose (or even better, fix :) ) this?
Thanks!
I got this to work now. The key was to make sure FastCGI is used to run php (as per http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70 ), and making sure that the "Use Apache mod_rewrite" is enabled. If "Use Apache mod_rewrite" is turned off but the rewrite rules are present in IIS7, then the HTML shows up but none of the styling or images.
The requirement for using FastCGI is weird (and contradicts what is suggested in http://maximumpcguides.com/windows-vista/how-to-create-a-windows-vista-iis7-mysql-php-web-server , which is what I used to setup php in the first place). Everything seems to work when not using FastCGI, except for the URL rewriting.
It seems that either importing the rules (as suggested in http://www.mydotnetworld.com/post/2008/10/24/URL-Rewriting-In-Joomla-15-on-IIS-7.aspx) or manually adding them to a web.config file (as suggested in http://learn.iis.net/page.aspx/527/joomla-on-iis ) will work.
It looks like there is something wrong with the rules in the web.config. Just going from a comment on the article you linked you are not the only one having this issue. I would remove the web.config and then follow the steps outlined here.