I am NOT using .local addresses for my sites. It takes almost a minute for pages to load! Basically unusable. I didn't have this problem when I was running MAMP (not pro) on Snow Leopard.
I tried changing some of the syntax in the /etc/hosts file [see below for details]. This worked initially. But then I was crawling again. I just edited /etc/hosts again and the pages load quickly again. So editing /etc/hosts seems to make a difference...
IMPORTANT CLUE:
Whenever I edit /etc/hosts manually, I have to login as an admin (sudo?) to make changes. For the next couple minutes my pages are super quick. Then I guess my sudo credentials expire and I go back to loading pages at a snails pace.
The question: why does MAMP care if I'm currently sudo or not, and what can I do to make my MAMP sites load quickly all the time?
(I'm running:
MAMP Pro v 2.0.5
OSX Lion v 10.7.4
Chrome v 21.0.1180.82
FireFox v 14.0.1)
NOTE: The changes I initially made to /etc/hosts were from...
127.0.0.1 devsite1.dev
127.0.0.1 devsite2.dev
127.0.0.1 devsite3.dev
...to...
127.0.0.1 devsite1.dev devsite2.dev devsite3.dev
Initially I thought it worked, but I later realized the changes weren't making the difference. Just the fact that I had to enter the admin password. I can reproduce these results just by adding/deleting a blank line.
Related
Maybe it is asked several times before but I couldn't get any solution. I have installed xampp in my computer. I have changed httpd.conf and httpd-ssl.conf for "port 80" and "443" troubles. Now the control panel shows that, Apache and MySql is running fine. But http://localhost is not working. Shows Not Found in my browser.
Try this first:
Turn off skype, and all other applications that are running and then turn on the server
make sure that the server works as default installation (with all apps closed in first step)
Oh...I wrote http://localhost on my address bar. It did not work. Then I wrote http://localhost:8081(the port number which I changed) and it worked nicely.
I am having trouble using Xdebug with PHPStorm. I have searched Google, etc.
I have Xdebug setup on a remote host with my local files mirroring the remote host. I am using the Xdebug Chrome extension.
When I run the debugging through PHPStorm, it OPENS a file and shows a blue-highlighted breakpoint that does NOT exist at that file. It will stay there until I hit "resume" multiple times until I get to the file I actually want to debug. VERY annoying because then the session on Chrome timesout, so I can't debug.
I do not see any code that says xdebug_break(); and I never added a breakpoint to that file. In other words, there are no red markings at the left of the line numbers.
What is going on and how do I fix this? Has anyone else come across this problem?
I have tried skipping and ignoring the file ... still does not work! Yes, I have also viewed breakpoints through a separate window and it does not show the breakpoint that apparently exists.
Check the configuration on PHPStorm stop at first line property and disable it
After that go to Run >> Break at first line in PHP scripts
Try turning it ON and OFF few times. Sometimes it is get stuck in between: showing OFF but in reality it is ON.
This is a well known issue Read: https://youtrack.jetbrains.com/issue/WI-17389
I was having the same problem with my PHPStorm/xdebug config. It turned out I had the path mappings wrong when I mapped the root of the local file directory to the Absolute path on the server - Settings->Languages and Frameworks -> PHP -> Servers.
I fixed the mapping and the system is behaving predictably once again.
Trying to install moodle using xammp, i have tried this using moodle 2.6 and 2.7 and the same issue is occuring.
After the update admin profile page I get a blank screen returning, this should move onto the front page settings to complete the installation but this never appears, I refresh and get into the site only to find it does not work when navigating around and the site is unresponsive?
I have tried using Windows Server 2012 and Windows 8.1, and all browsers with different modes enabled and it fails every time.
Is this a moodle build issue or an issue with the OS or xammp? Even the standalone packaged versions that moodle supply fail?
Probably a php error but you will need to switch on debugging to see the message
Edit /config.php and add these 2 lines
$CFG->debug = 32767;
$CFG->debugdisplay = true;
and try again.
UPDATE:
You'll need to edit your php.ini file and change or add this line:
max_execution_time = 300 ; was 30
I'm using 5 minutes but you can change it to anything you like.
then restart Apache and try again.
I got the same error few days back. I tried the debug mode but it didn't helped. When you look at the url you get it has a query string
?cache=1 or something which indicates something related to cache was the issue.
I deleted the cache manually from $CFG->dataroot [ path is c:/xampp/moodledata - your path may be different. Check your config.php file for the same]. Delete the content of moodledata folder and refresh your page. It should work
I'm currently making a webpage and running it locally on localhost for testing. But whenever I make a change to that page and want to see the result in the browser I run into a "problem". I have to update (press F5 or the update button in the browser) several times for the site to show. In the meantime it's just white...
Let's say I have the site up in my browser (looking good), and then I make a change and want to see it. I press the update button in my browser one time and the site is now just white. I press it again and again, but it stays white. Until I press it a random number of times, and it works. Sometimes I just have to update once, and sometimes I have to update 7-8 times. Sometimes it's fast as hell, and other times it's slow as my schools computers.
Does anyone know if there might be a problem with the site itself (and this problem will continue to exist, even after I upload it to the server), or if it's just a problem with my internet/ computer/ known problem when running on localhost?
I'm using XAMPP on a Mac and have tried testing the page in both Safari and Chrome.
Thanks for all the tips in advance!
From Europe with a problem,
Alekplay
EDIT 1:
It turns out Chrome decided to give me an error message instead of a white screen now. It says "no data received", and Safari is still just blank. Any ideas? I've tried turning off caching.
EDIT 2:
Did some tweaking here and there, and found out that it's SimpePies autoloader.php that's causing my problems. Any of you have any knowledge around SimplePie, and know how I can make the site load faster? It's fine when I've commented out require_once('php/autoloader.php');, but I need that for my feeds to load. Any ideas?
Into chrome you can turn caching off. Just take a look to this page :
http://geek.michaelgrace.org/2011/09/disable-google-chrome-cache/
With Chrome: CTRL+SHIFT+R
I don't know about Safari.
That may be something related with the cache or with apache itself.
Find out if you have any error on apache's error.log. It might be related to an error similar to this one:
AH00052: child pid 62969 exit signal Segmentation fault (11)
then you should check: "[notice] child pid XXXX exit signal Segmentation fault (11)" in apache error.log
Basically it states to try to increase output_buffering in your php.ini
You would have to run a backtrace on the coredump to know why it crashed, as indicated elsewhere. In mi case it was APC, and the error went away as soon as it was disabled on php.ini. Yours might be because some other cause.
File load times for Firefox 9.0.1 are about 6 seconds (page has some php code) but IE is instant. If I change the link from localhost to 127.0.0.1 Firefox will load instantly as well.
I've made the changes recommended here
I've uncommented out the following line in my C:\WINDOWS\system32\drivers\etc\hosts file:
127.0.0.1 localhost
But no luck.I've tried seting network.dns.disableIPv6 to true with no luck.
Any other ideas?
Seems like a problem with you browser's DNS settings.
Try using this DNS service (it's free)
https://store.opendns.com/setup/
Also clear your DNS cache in firefox:
Mozilla Firefox (Win & Mac)
Go to the Tools menu, select Clear Recent History and check all boxes. Under Time range to >clear select Everything (except passwords, if desired) and click Clear Now.
And maybe also on your windows:
Run->cmd and type in: ipconfig /flushdns
For Firefox 94:
Including answers mentioned above: When using Firefox in private mode, try disabling private mode.
Set "Always create chronic" (1st Option) in Settings > Privacy & Security > Chronic.