its going to need to be done at some point, no doubt. #4Well i mean you could configure it to use that as the document but really what you should do is go through and adjust this. #3In short, the original developer wasn't very smart. #2Why are you hardcoding absolute paths like that into your PHP files? Sudo chmod -R +a "YOUR_USER_NAME allow delete,write,append,file_inherit,directory_inherit"
Sudo chmod -R +a "www allow delete,write,append,file_inherit,directory_inherit" the User/Group for apache is www so after you have created the dir structure: sudo chown -R www:www /home/web Now, youll also have to create the folder structure and set the permissions appropriately. I would us a virtual host for this: NameVirtualHost *:80ĭocumentRoot "/home/web/companysite/public_html"Īnd then add the host name your your /etc/hosts file: The website's directory is expected to be: /home/web/companysite/public_html/ The problem is that I need to configure it like the live server and my work computer (Linux and WinXP, respectively). I just bought my first Mac, and I'm trying to set up an apache server. Any advice? Is there a way I can reroute it without changing all of my PHP files and other scripts?
The website's directory is expected to be:īut on a Mac, the /home/ directory is taken. Macos Apache Configuration on a Mac?,macos,apache,Macos,Apache,I just bought my first Mac, and I'm trying to set up an apache server.