twtwtw wrote:
just as an aside, unless you like using command-line text editors for some bizarre reason, you'll find it much easier to edit files like php.ini (or other config files) using TextWrangler. Some of the old-school unix guys forget (or don't care) that there are GUI programmer's text editors that make life much simpler.
Also - as someone who has been helping people with computer problems for a loooong time - whenever I hear someone say something like "I realize that that is not the default Mac page, but I have forgotten why I ever changed it. But that is of little importance here", I roll my eyes. Let me make two points perfectly clear, just so you have an easier time with forums like this in the future:
- If you have a problem you cannot diagnose on your own, you are not in a position to determine what is and is not important.
- If someone who's trying to help you in good faith asks you a question, answer it. Best case scenario is that you waste a couple of minutes answering a question that's of no relevance and build some good will; worst case, you cost yourself days of discussion and dozens of posts because you've neglected to provide some piece of information that turns out to be important, and everyone (including yourself) thinks you're a bonehead.
Up to you, of course. đ
Point taken and fully appreciated. Thanks for the reminder.
As I understand it, Step 1 is the command "cd /etc"
when I give this command only "Mac-Pro:~ geoffreydyson$ " is returned
Step 2 is "sudo cp php.ini.default php.ini", When I give this command, I am asked to enter my password, after which "Mac-Pro:~ geoffreydyson$ " is returned
Am I to understand that these two commands should have given results other than those I just mentioned?
After having given those two commands "http://localhost/" and "http://localhost/~gdyson/" still give me the "Safari can't connect to the server" message even though "Web Sharing" is enabled in System Preferences.
The command "sudo lsof -i -P | grep -i "http" in Terminal asks me to enter my password, after which "Mac-Pro:~ geoffreydyson$ " is returned.
If that Safari connection fails, then check both your Safari access and error logs in /var/log/apache2 directory.
I don't know what you mean by "check both your Safari access" unless it is the attempts to connect to localhost. I was not able to check the log. I don't remember how you acces a path such as /var/log/apache2 directory
So the first question is, have I been doing everything correctly? If not what ?
And secondly where do I go from here ?
And lastly where is the default php.ini document meant to reside, as I can't find it ?