I've recently been developing a Laravel app on my Mac OSX under an XAMPP/Apache server. And suddenly a couple days ago (no updates or anything) my server started resolving the pages at over a minute (roughly 80s on average). It obviously makes development really difficult and was wondering the possible issues could be? Please let me know what files/code snippets would be needed!
I'm running my app on a virtual host in the httpd.conf file if that's any help.
I've also reinstalled XAMPP with PHP 7.0 and reset my entire repo as well but to no avail. Other website load perfectly fine too. Other coders on the app don't see a change in the loading time, so this seems like a local issue and not one concerning the size of the app.
Would appreciate any help, thanks!
Related
Recently I have switched on Macbook from Windows, and I had to re-do all my working processes.
I am working to set up a WordPress local website to look like the live one, and usually how I would have done that is through Git and then MigrateDB (pull) from the live.
I came across this error while pulling, at the Media stage:
Unable to process payload.
I was wondering if anyone has ever been through this and you might be able to help.
I am going to answer my own question as I found out why this was happening and leave it here with the hopes that if anyone ever encounters this issue, will know what to do.
The "Unable to process payload." happens due to Xampp, if you want to download the latest version on a Macbook M1 type processor, won't work, and you are forced to download an older version 7.2.3, this version does not work well with some of the WordPress Plugins so you will get all bunch of errors.
Solution
Get rid of XAMPP, if you are using a Macbook M1 type processor and install MAMPP, the free version, it will work fine and smoothly.
I am using latest version of xampp and wordpress for development of my new website. Although i am working with xampp and wordpress since couple of years but this new version has frustrated me like anything. Using this new version of Xampp with wordpress is loading one page of the site on local machine in 3-5 minutes. I have tried many changes but really not helping. Can I have some insight over this. This is really annoying and frustrating. Any advice will be lifesaver for me.
My system specs :
Processor - Intel(R)Core i5-5200U CPU #2.20GHZ
RAM 8GB
64 Bit OS
Windows 10 Home
Errors are not coming but the loading of any page is extremely slow. Internet speed is pretty descent and as its on localhost so it should not worry about that.
In your WordPress wp-config.php file, is the entry for DB_HOST ‘localhost’? If so, change it to ‘127.0.0.1’ and see if it helps.
Another way check your IP address on your local network like 192.168.0.111 Then edit your hosts file like
Change to
/etc/hosts 192.168.0.111 mysite.org
or try MAMP it is more speed optimized
I'm having a frustrating problem with all the forms of a Symfony2 website for a couple of days now.
In fact, every form are OK when my coworkers and I work on the project on our local computers (we're all on PC, Windows 7 64bits or 8.1 64bits, using WAMP 64bits too and having PHP v5.4 and Symfony v2.4.3 set on it). But when we want to test on our distant dev environment, there is no form that works properly: in the Symfony profiler, the problem seems to reside in the fact that no POST parameters go through the process of submitting the form. But once again, this situation only appears when the project is hosted on the distant server.
I have checked the configuration of the server because I thought it was a config issue, but everything looks just the same as what we have on our WAMPs.
I have also checked my config.yml file, just to see if something could be wrong in it, but I can't see any kind of "local-only" configuration.
Moreover, I've found a very few people telling that they encountered the same problem on the internet, but they never explained how they did to go through that.
As I said, I am currently on this issue for days now, and every suggestion and clue will be very welcome!
Thank you for your time,
[Edit 1] This is a complementary information: the only difference between our local and remote configuration is that, on the remote server, the "short_open_tag" thing is enabled and, due to some provider restrictions, can't be disabled.
So I enabled it on my WAMP (and restarted it) to see if to see if the forms would keep working. And they do work with short_open_tag enabled on my local machine, so I assume that the problem is not from there.
I have spent 2 days and have read multiple posts / articles re this subject with no resolution. I am running WebMatrix 2 on XP Pro with sp/3. WM works like a charm until I try to open Word Press through Web Gallery. Every time I get a message that the
"installation failed because php-cgi.exe is not available. Please rerun the Windows installer for PHP and enable either 'IIs FastCGI' or 'Other CGI'."
The PHP starter site also fails for the same reason.
Apparently all php files were installed by webmatrix (including php-cgi.exe) so I can't figure out why word press (and the PHP starter site) fails and keeps throwing this error.
I even tried a totally new install of WebMatrix on an unused laptop with no existing PHP or mySql files and got exactly the same result. Apparently, there is a flaw built in to the WebMatrix program regarding running PHP.
I have a hard time believing that MSFT would even release this with such a functionality problem. I am not knocking MSFT because I think WM is an awesome product. But, if there are known post installation steps which need to be taken, a heads up would have been nice. I hope WebMatrix 3 users are not encountering the same problem.
Has anyone been able to figure this out?
Any help to fix this would be greatly appreciated.
Thanks for your help.
Have you watched this video? and followed all the instructions?
Installing Wordpress on Webmatrix
php-cgi.exe is a file which IIS runs to emulate PHP. This error is todo with the configuration of you IIS server on Windows.
Also have a look at this, which shows you how to install fast cgi on IIS
Installing Fast CGI with IIS
I have run into problems getting my local php and rails development environments to play nicely with each other on OSX 10.7.
Developing is a hobby, and I am a total noob. I use MAMP for developing in PHP. A few months a ago I decided to give RoR a whirl, and set up a dev environment using Passenger.
A couple of weeks ago I reinstalled MAMP when I noticed I could not access the MAMP sites.
Now I can't access the RoR sites. I've tried reinstalling Passenger. I still get the error "Oops! Google Chrome could not find app.local" when I type the local URL. If I navigate to localhost, I get an "It Works!" page, so something is being served.
I have experimented with Pow. The server seems to work if I navigate to localhost, but when I go to the app I get a rake not found error. Strange, as all the gems worked under Passenger. I've since uninstalled Pow.
So I have three questions.
1) How do I troubleshoot my setup to find out what is going wrong? I'm guessing it is an issue with the Apache server (though I could be very wrong). Where should I look for log files to help resolve this?
2) What is the best way to set up a local dev environment so that I can switch easily between RoR and PHP? (I know that virtualization is an option, but would prefer not to go down this route, unless there is a very good reason to).
3) Can anyone recommend a good guide or source of info for beginners on setting up dev environments? I have read a lot of different things online, but need to get a better grasp of the basics - i.e., understanding where gem files etc are being installed, proper use of bash files, macports vs homebrew, passenger vs pow etc.
Thanks for taking the time to help a frustrated beginner.
Andy
OK, I'm going to answer my own question. I have got the rails apps running locally, but I still don't feel confident that I fully understand what's happening.
This is what I did.
Uninstalled Passenger
gem uninstall passenger
Uninstalled Passenger PrefPane by right clicking in system preference.
Updated all system gems
gem update --system
cd'd to app directory and updated all app gems
bundle update
Reinstalled Passenger
gem install passenger
passenger-install-apache2-module
Recompiled Passenger Prefpane for OSX 10.7 using xcodebuild and installed.
Deleted and readded apps to passnger prefpane.
I'm not sure what fixed it, but the apps are now running. This is what I think happened. Somehow the configuration between Passenger and Apache had become corrupt, and reinstalling prefpane added the correct lines back into the Apache config file.
The problem is that I stil don't know which Apache install Passenger is using- mac default, macports, or MAMP. I think this is what confused me before, as the config file I was checking was not the correct one.
As a byproduct, I have learned that several of my gems were not up to date or missing dependencies. This may explain the difficulties I experienced with Pow. If so, the Pow seems to be a much easier alternative to Passenger.
So, things are up and running, but I still have a long way to go before I understand how all these configuration files a working. I still don;t think I'm using the Apache install that I would prefer to use!
EDIT
PS: MAMP is also still working for PHP development, and I can easily switch between the two by disabling web sharing in system preferences, and launching MAMP. So all issues resolved for now!