Search for the term DocumentRoot and change the value to where you want. If you want, change to default directory of where you serve your websites from. Using your favorite text editor, open /usr/local/etc/httpd/nfįind the line that says Listen 8080 and change it to Listen 80 You should now be able to go to and see an "It Works" message. Setup Apache to autostart: $ sudo brew services start httpd $ sudo launchctl unload -w /System/Library/LaunchDaemons/ 2>/dev/null If you already have the built-in Apache running, it will need to be shutdown first, and any auto-loading scripts removed: $ sudo apachectl stop Homebrew: $ /usr/bin/ruby -e "$(curl -fsSL )"Ĭatalina Required Libraries: $ brew install openldap libiconvġ) Completely uninstall php, httpd (apache), and delete xdebug files (if you had them already installed): $ brew updateįind whatever versions of php you have installed based on the brew list command then uninstall them, e.g.: brew uninstall -force php72Ĭlean out any old php configurations rm -Rf /usr/local/etc/php/* Xcode command line tools: $ xcode-select -install Here is what I did for a full Mac PHP Development setup:Ġ) Install prerequisite software if not already installed (homebrew, xcode, etc) Ok, I got this working, thanks to Derek's help. PHP, Apache, Homebrew, Eclipse are all installed and working.just can't get xdebug to work. Something has to be wrong with permissions and the read only file system in Catalina and I can't seem to wrap my head around it. Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20180731/ Or when making from the actual source i get the following on make install: xdebug % sudo make install done: 242,853 bytesįatal error: Cannot use result of built-in function in write context in /usr/local/pear/share/pear/Archive/Tar.php on line 639 Starting to download xdebug-2.9.0.tgz (242,853 bytes) WARNING: channel "" has updated its protocols, use "pecl channel-update " to updateĬannot install, php_dir for channel "" is not writeable by the current ~ % pecl config-get ~ % sudo chown robshpiel1 /usr/lib/phpĬhown: /usr/lib/php: Read-only file ~ % pecl config-set php_dir ~ % sudo pecl install xdebug Did you mean to use "continue 2"? in /usr/local/pear/share/pear/PEAR/PackageFile/v2/Validator.php on line 1933 Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in Validator.php on line 1933 ![]() Trying to install via pecl: sudo pecl install xdebug ![]() I have tried a complete reinstall of homebrew, cleared out php and installed the newest version, reinstalled apache (following: ) and now have tried to install using pecl as well as from the source xdebug and I continue to get errors. I've been struggling to get xdebug to work all day.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |