![]() You don’t have to log in, just click “No thanks, just start my download”.įinish installation and set it up to be running on startup by going into your system preferences bottom line and clicking on MySQL icon, you will get a default password, save it, you will need it later. Here you can configure your time zone and other settings, just type: sudo nano 99-liip-developer.ini For the CGI and CLI versions, it happens on every invocation. For the server module versions of PHP, this happens only once when the web server is started. The configuration file ( php.ini) is read when PHP starts up. Uncomment the following line (remove #): LoadModule php5_module libexec/apache2/libphp5.so Enable PHPĬd into Documents: cd /Library/WebServer/Documents/Ĭd into apache directory: cd /etc/apache2/ Whatever is the current version of your PHP, go ahead and update it here. Mac OSX 10.8 comes with PHP 5.2 by default, in order to check what version you currently have just type php -v. Then to give apache permissions to read we type sudo chmod 644 nf and press enter, lastly we type sudo apachectl restart Press “Ctrl + x” to exit, “y” to save changes and hit enter. Type ls and check if you have a config file named after your nf username, if you can’t find one, that’s ok, then just type sudo nano nf Sudo apachectl restart Setting up root directoryĪpache’s default directory is /Library/WebServer/Documents that is where ` It work’s!` file is located at. ![]() You can start, stop, and restart your server by typing: sudo apachectl start If you see “It works!” apache is running. Verify if apache is running by accessing If you get “This site can’t be reached”, you need to start apache, just type, sudo apachectl start and press enter: To check what version of apache you have currently installed on your mac just open you terminal and type httpd -v To create a local web server, all you need to do is configure Apache and install MySQL. So it's worser equipped but faster on the same machine.Apache and PHP come packaged with OS X. Docker has 2CPUs and 4GB RAM while (the faster) VirtualBox setup has only 1 CPU and 1GB RAM. VirtualBox on the same 2,8 GHz Dual-Core Intel Core i5 with 8GB RAM on Mac OS 12.3 Monterey. I don't have a M1 yet, I'm currently testing on my old system. But since they're the future I definitely need a long-term solution without virtual machines for developing. Since our whole test suite now runs over one hour this is absolutely a no-go and would definitely stop me from buying a new M1 mac. I would be really happy about all ideas that you could share with me on how to get closer to the reason for this docker setup being that slow. docker/php/ini/php.ini:/opt/bitnami/php/etc/conf.d/php.ini:ro This is my docker-compose.yml: version: "3" I'm also not really sure what exactly causes the setup being slow - is it the database or PHP itself? Does anybody has an idea on how I could get closer to the actual reason? changed mysql storage to a named volumeīut after 8 hours of trying I'm still seeing the same bad numbers for this test suite, it ranges between 28 and 38 seconds instead of five seconds.I've read a lot in the last days about the problems with file sharing between container and host, and I've tried some things so far, but in fact nothing changed regarding the performance (not even a bit which really makes me wonder): A test suite that simply checks if sql statements are valid against the mysql db takes 31.44 seconds on the docker setup while it completes in under 5 seconds on the old setup. Especially when running PHPUnit tests, the performance is so bad that it is in fact unusable. I've now build up a docker environment and for now all works well - except the performance. Since I want to move to a new M1 Mac, I need to unfortunately change this setup. I'm currently using a vagrant operated VirtualBox setup to develop my web services.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |