
/social-media-life-484161929-5c6f625dc9e77c000107b579.jpg)
- #MAC OS X APACHE PHP EXECUTION HOW TO#
- #MAC OS X APACHE PHP EXECUTION INSTALL#
- #MAC OS X APACHE PHP EXECUTION MANUAL#
- #MAC OS X APACHE PHP EXECUTION CODE#
- #MAC OS X APACHE PHP EXECUTION DOWNLOAD#
Could I maybe unlock the Documents folder without shutting down the webserver?Finally I would like to ask about a Perl-thing. Or is there a better way? If I wanna build websites, it'll be hard, since I very frequently switch between BBEdit and IE and test the code.
#MAC OS X APACHE PHP EXECUTION HOW TO#
I haven't become a friend with the Terminal application yet I'm afraid so I don't know how to enter the commands that BenW mentioned. BenW talks about PID and lucifer talks about apachetcl, but I don't know how to use any of them (although I'm a little bit familiar with TCL syntax). Or maybe they did, since I get a 403 Forbidden error, which means that the webserver knows what directory I wanna use, but just won't allow me to use that particular directory.Second, as adding/removing documents in the Documents directory appearantly requires the web server to be inactive (?), I need to know of a fast way to activate/stop the web server - and thereby unlocking the "Documents" folder. I was a bit unsure of how to link from my html file that contained the form (the html file was directly in the Documents folder), so I tried with both "cgi-bin/" and "./cgi-bin/" as the action parameter of the form tag (cause the cgi-bin directory is in the webserver root, and localhost points to the Documents folder). I linked to a cgi-bin directory, like BenW said. pl file that lies within the CGI Executables directory, I get a "403 Forbidden" error. Anyway, while PHP is working, I still have a couple of problems: First of all, I can't run Perl scripts.

Nice that some person had made an installer, cause editing that config file wasn't a very smooth way of doing it - at least not for a Mac user.
#MAC OS X APACHE PHP EXECUTION INSTALL#
I experienced the Mac-like install and saw the php-info appear when typing localhost/test.php in the browser. Ok, I followed lucifers's link and downloaded the package that contained an installer. one step closer to doing real webprogramming
#MAC OS X APACHE PHP EXECUTION DOWNLOAD#
what do I type to tell it that the command is aimed to the Apache application, not some other?2) How do I install new modules so that I can run everything I want to run - php, perl and C++ written CGI scripts? Is it possible to do ASP with Apache and, if so, where do I download the correct module?

My questions are these: 1) Where should I write this? In the Terminal application or in some textfile that tells Apache what to do on startup? If I should write it in the Terminal app. I read in "Documents/manual/handler.html" that you can register a handler by typing e.g. Second, you need to register a handler, mapping the right file suffix to the module that should take care of those kinds of files. First of all, you have to install some kind of file ("module"?) that does the actual script interpreting stuff.
#MAC OS X APACHE PHP EXECUTION CODE#
php extenstion respectively), but the web server just interpreted it as a plain HTML page - no execution of scripts resulting in that the source code showed up in the browser.įrom what I've read in Apache docs, there are two things involved in making scripts run on the server. I tested with a perl script and a php script (and named it with. But I want to be able to do serverside script execution. prefs and typing localhost in the address field in my browser gives me the index.html file in the Documents folder of the web server. I was looking for words like "Web sharing" like in OS 9, preferably written on a 256圆4 big button Ok, activating the web server from sys. Oh, and one more question - is it the pure UNIX version of Apache that comes with OS X PB or is it a somewhat modified MacOS version of it (I read Apache is open source)? If it is pure UNIX, I though I might replace the 1.3 version that comes with OS X PB with the newer 2.0 version.Īhh.it was so easy. I wonder if there is some tutorial on how to get Apache server up and running under OS X? My goal is to set up a small web server that can run C++ and Perl written CGI scripts and also do PHP stuff if possible. From what I understand, I don't have the so called "binary distribution", so I will have to compile Apache first before I can run it, correct?Īnyways, I don't know any UNIX stuff, so the compiling-instructions don't say much.
#MAC OS X APACHE PHP EXECUTION MANUAL#
I didn't find any program files, so I went on and opened the manual and began reading on the file "library/documentation/Administration/Services/apache/install.html".

I looked around in the system and found a few files in the "library/webserver" directory. I read that OS X comes with Apache web server.
