You have to make a few additional tweaks to get the ~/Sites folder back up and running.Īdd a “nf” filed under: /etc/apache2/users/ Make that folder before you set up the user configuration file described next. Once you make the Sites folder you will notice that it has a unique icon which is a throwback from a few versions older. You need to make a " Sites" folder at the root level of your account and then it will work. This takes a bit longer to set up but some users are very accustomed to using it. The other web root directory which is missing by default is the ' ~/Sites' folder in the User account. The files are shared in the filing system at - /Library/WebServer/Documents/ User Level Root the default system document root is still found at. It is easier to use the user level one as you don't have to keep on authenticating as an admin user. It seems there is less effort from Apple in continuing with the user level one but it still can be set up with a couple of extra tweaks in configuration files. Document Rootĭocument root is the location where the files are shared from the file system and is similar to the traditional names of ' public_html' and ' htdocs', macOS has historically had 2 web roots one at a system level and one at a user level - you can set both up or just run with one, the user level one allows multiple accounts to have their own web root whilst the system one is global for all users. This will give you an indication of what might be wrong. If you don't get the localhost test, you can try troubleshooting Apache to see if there is anything wrong in its config file by running apachectl configtest The Apache version that comes in macOS Big Sur is Apache/2.4.46Īfter starting Apache - test to see if the webserver is working in the browser - you should see the "It Works!" text. To start Apache web sharing sudo apachectl start Using the prefix of sudo is required for commands that have their applications protected in specific folders - when using sudo you will need to confirm with your admin password or iCloud password if set up that way. This needs to be done in the Terminal which is found in the OS filing system at /Applications/Utilities/Terminalįor those not familiar with the Terminal, it really isn't as intimidating as you may think, once launched you are faced with a command prompt waiting for your commands - just type/paste in a command and hit enter, some commands give you no response - it just means the command is done, other commands give you feedback. I tried to open phpMyAdmin and it says "#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)"įrancesco fdesensi Posts: 1 Joined: 08.Web serving is built into Big Sur with Apache app, it is installed ready to be fired up. I tryed to manually start it using mampp start and it says it started and no errors are displayed. I used the gui program to start it and it says it is starting it and then doesn't say anything else. Oh and I am having one more problem.in the XAMPP control page I can see that MySQL is deactivated. This file normally lives in /private/etc/ in os x 10.5.6 but I don't know what to change since I am using XAMPP. One thing that I think might be a problem is that many of the guides for installing cakephp tell you to make changes to /etc/hosts so that there is an setting for test_app. So if I got to I get an error from CakePHP saying that there is no xampp controller. The problem is this.now that I have restarted everything in /Applications/xampp/xamppfiles/htdocs/ is now considered part of the CakePHP application. # match a ServerName or ServerAlias in any block.ĭocumentRoot /Applications/xampp/xamppfiles/htdocs/test_app/app/webroot # The first VirtualHost section is used for all requests that do not # Almost any Apache directive may go into a VirtualHost container. # You may use the command line option '-S' to verify your virtual host # for further details before you try to setup virtual hosts. This is indicated by the asterisks in the directives below. # use only name-based virtual hosts so the server doesn't need to worry about # machine you can setup VirtualHost containers for them. # If you want to maintain multiple domains/hostnames on your Include /Applications/xampp/etc/extra/nf" in nf and then added the following vhost configuration to nf so that it now looks like this. Then I wanted to add a virtual host so I uncommented the line "# Virtual hosts So I created a directory in /Applications/xampp/xamppfiles/htdocs/ and copied the required CakePHP files into this directory. I need to configure a site for CakePHP development. I checked /private/etc/hosts and it seems that localhost should be going to 127.0.0.1. I am running Mac OS X 10.5.6 and I have installed XAMPP 0.7.4 for os x and I was able to get to the XAMPP control panel however I had to use 127.0.0.1/xampp for the address instead of localhost.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |