New to Xampp

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

New to Xampp

Postby crotographer » 19. April 2015 18:51

I have no idea of what most of this is so I am posting here to find some good information on how to proceed. I downloaded and successfully installed Xampp 5.6.3 on Yosemite OX S v 10.10.3. As far as being a developer I am not. I am mainly a WordPress user who is 66 years old and am trying to spread my wings and become knowledgeable as to PhP and Apache etc. I am a retired professional photographer and the technical is fine as long as I have a foundation on which to lay the framework. I have gone through what is provided by the installation and all is there for me but that is where it ends. I just need to figure out where to get started or whether I am in over my head. Apologies for this post as I understand that most here are developers and I am not. I find Xampp quite intriguing and am all ears for getting started properly rather than floundering around as I have been doing for the past 3 days. Any consideration is very much appreciated by me.
crotographer
 
Posts: 1
Joined: 19. April 2015 18:38
Operating System: OS X 10.10.3

Re: New to Xampp

Postby Nobbie » 20. April 2015 12:29

Look for a directory "htdocs" in your installation (somewhere under the Xampp installation folder) and put a simple test file into that folder, lets call it test.php and insert any trivial coding (mostly 'echo "Hello World";' or similar).

Start Xampp (at least Apache).

Start your browser (Safari?) and in order to view your first test file, enter http://localhost/test.php in your browser (you may also simply click on the link). That is the first most important thing, put any files into the htdocs directory and you may see the working result via http://localhost/filename.xyz

You may also create any subdirectories in any level under the htdocs folder and put your files there, this results in http://localhost/mysubfolder/filename.xyz (where mysubfolder of course is only a placeholder for your own subdirectory created before).

Of course there are plenty of options and configurations to change standard Apache behaviour on your PC, but this will take a long time to learn and to use them and fortunately, for your first own files (or even for your whole live) you dont need to change the configuration. There is only a possible problem with the accessibility of the created files, as Apache runs under a certain UserId, the folder htdocs has certain rights and you are running you own UserID. You may change any of the file and directory rights, you even may change ownership, if there are not sufficient rights for Apache, it cannot open the file and this will lead to a runtime Error (i.e. Error 403). This sometimes is a hassle for OSX Users, as they are not used to work an system level. But If you are struggling, you can ask here again.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 6 guests