Got through the rest of the steps successfully.
Now just trying to figure out how to implement the MySQL for my website. If you create something local server through the phpMyAdmin then does it provide the code for website use? Or is this only really for local testing? Already have a dedicated server and website up.
I created the folder Sites under Users, that help me. The connection was reset. Home Questions Tags Users Unanswered. Grateful to Mr. Email Required, but never shown. Modify this: Thanks for the quick reply, I am still getting permission error:
Yes having the MySQL installed on your localhost is best for local testing and development. You will just need to install MySQL on your dedicated server. What OS are you running on it?
Server Settings Apache version 2. Upon entering http: Do you know why that is? Hi Tom. This is because the php module is not enabled in the httpd. You can see instructions in Step 2. Thanks for answering my question, Mr. As embarrassing as it is to have to admit, in the short time between my question and your response everything that I had gotten to work following your steps has stopped working all together. Parts of it that were clicking just a few weeks ago when all this was making sense are not there.
Someday, though…. Please I was confortable untill step 5.
I got this message on firefox: The connection was reset. The connection to the server was reset while the page was loading. I got osx I am still studying php now and for days I cannot get enable. However I search google but no solutions. Please help. I did some quick research and it looks like it might be a problem with firefox http: Thanks for this guide.
Apache2 works since I can type in http: This was the default. Could you help me set up my configuration file the right way? My end goal is to be able to load Dokuwiki. Hi Alex Try this. Put the path in quotes when you type it in a file or on the command line. When a path has spaces it needs to be either wrapped in quotes.
I proceeded through all the steps, but when I go to my browser and enter http: Try this. Check to make sure you restarted your apache server correctly. In your terminal run sudo apachectl restart. I was having the same problem until I noticed the the curlysign in front of the username.
Uncomment #Include /private/etc/apache2/extra/asmarsifi.tk in /etc/apache2 /asmarsifi.tk; Add asmarsifi.tk to /etc/hosts. Save this as. Web sharing not working on Mac OS X , OS X localhost is ok but sharing The higher document root level of http://localhost/ displays “It Works” but when is is pretty much the same as on OS X Mountain Lion
I was not adding it when I typed the: Hello thx for sharing the knowledge. Its that only work in Safari? Apache comes preinstalled so the localhost should work on all browsers. What do you see when you go to the address http: I have two quick questions for you. After setting up the username. If you did restart the server, is the path in the conf file directory set correctly? Your email address will not be published.
Notify me of follow-up comments by email. Notify me of new posts by email. If you upgraded from a previous version of OSX your hosting environment will be broken. Step 1 How to start your Apache web server: Apache comes preinstalled on Apple OS X Uncomment the userdir While the httpd. Type Y to confirm.
Then press enter. Step 3 How to set up a user configuration file: Check your Apache version. You will need this in a couple minutes. Type the following in Terminal. It will output your Apache version. Setting up a user configuration file: If you are running Apache 2. Step 4 How to enable and configure Htaccess: Many php applications rely on htaccess for URL routing.
Again open the httpd. In your terminal type the following and press enter to restart your Apache server. Create a test file in your Sites folder called phpinfo. Change the permission of your Sites folder to allow Apache to access your files and folders. Next you will need to create a phpinfo. It will look something like this. Optional Update the permission of the phpinfo. You have set up your PHP Apache server on your mac. Hey Jonathan, I have followed each and every step but the testing isnt getting through.
Hi Pulkit, can you please let me know what error the Apache log returns? Your help in solving this issue will be greatly appreciated! Run the following in your terminal.
Remember to replace username with your username. Hello Jonathan, Thanks for the instructions.
Could you provide any troubleshooting tips? Once restarted it should work fine. Jonathan Whiting-Thank you so much: This is really useful and precise. Hi Nishchay, Glad it was helpful for you!
Hi Sydney, Sorry about that. The command is: Thanks for the quick reply, I am still getting permission error: Permission denied This is my code: Hi Aditya, Okay, so I think I may have found the problem. Cheers, Stephan. Hi Stephan, The error is because of the command format. Try this: It requires 2 things 1. Unable to open logs and when I run sudo nginx I get: Hi Hjalmar, this looks like a port error and is pretty unusual.