I was up until 3am last night trying to make *$($#*#@@ Apache/PHP/MySQL just WORK on my lovely new iMac.
I mostly got it...I have a phpinfo() page that displays all of PHPs info...but I have some questions:
1. VI, while usable, is a lot more cumbersome than I want. All of the files I'm dealing with are locked by the OS and the only way I can edit them is to sudo vi filename. What a pain in the butt! How can I set everything up so the files belong to me and I can edit them in TextEdit or similar? I tried to sudo open- a textedit filename...that didn't work.
2. I seem to have more than one Apache installation on the computer...there are 2 httpd.conf files in different folders. Which one is the one I installed from the DIYMacServer directions and how do I get rid of the other one so it's not even more confusing?
3. On my windows and linux machines, I have always set up a series of VirtualServers, one for each project I work on. I've given them names to reflect the project, like project.localhost.com. I make an entry to the hosts file so that requests for that URL are served from the project's default directory, like this:
project.localhost.com localhost
That's always worked. It doesn't now. When I go to project.localhost.com, expecting the project's home page...I get a failure to connect to the server.
WTF?
I'm not really an expert at any of this stuff, but have followed the directions. I'm sort of at a loss and would really appreciate hearing from someone who's been through it before and who could give me a hand getting comfortable doing this in the obviously superior and more pleasant OS X environment.
I'm running Leopard, if that matters.
Shoot me an email or chat request at jcorry at gmail [dot] com
1 - depends on where your files are located, if it is config files in /etc I would advise to edit them as root as making them world writable is not very secure. Otherwise feel free to change ownership.
2 - You have the original Apache install and the new DIY install. The original config is in /etc/apache2 and the new DIY config is in /etc/httpd. You can remove anyone you like. I choose to keep them separate to avoid conflicts when Apple decides to change something during a security update.
3- that should be possible just as you did on the Linux machines. I think you missed something in the configuration.
#
I was up until 3am last night trying to make *$($#*#@@ Apache/PHP/MySQL just WORK on my lovely new iMac.
I mostly got it...I have a phpinfo() page that displays all of PHPs info...but I have some questions:
1. VI, while usable, is a lot more cumbersome than I want. All of the files I'm dealing with are locked by the OS and the only way I can edit them is to sudo vi filename. What a pain in the butt! How can I set everything up so the files belong to me and I can edit them in TextEdit or similar? I tried to sudo open- a textedit filename...that didn't work.
2. I seem to have more than one Apache installation on the computer...there are 2 httpd.conf files in different folders. Which one is the one I installed from the DIYMacServer directions and how do I get rid of the other one so it's not even more confusing?
3. On my windows and linux machines, I have always set up a series of VirtualServers, one for each project I work on. I've given them names to reflect the project, like project.localhost.com. I make an entry to the hosts file so that requests for that URL are served from the project's default directory, like this:
project.localhost.com localhost
That's always worked. It doesn't now. When I go to project.localhost.com, expecting the project's home page...I get a failure to connect to the server.
WTF?
I'm not really an expert at any of this stuff, but have followed the directions. I'm sort of at a loss and would really appreciate hearing from someone who's been through it before and who could give me a hand getting comfortable doing this in the obviously superior and more pleasant OS X environment.
I'm running Leopard, if that matters.
Shoot me an email or chat request at jcorry at gmail [dot] com
#
A short answer to your questions:
1 - depends on where your files are located, if it is config files in /etc I would advise to edit them as root as making them world writable is not very secure. Otherwise feel free to change ownership.
2 - You have the original Apache install and the new DIY install. The original config is in /etc/apache2 and the new DIY config is in /etc/httpd. You can remove anyone you like. I choose to keep them separate to avoid conflicts when Apple decides to change something during a security update.
3- that should be possible just as you did on the Linux machines. I think you missed something in the configuration.