This is a discussion on "PHP on MacOS Apache server" within the PHP Forum section. This forum, and the thread "PHP on MacOS Apache server are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
PHP on MacOS Apache server
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
PHP on MacOS Apache server
I work on Mac OS 10.3.9. I use skEdit for coding.
I have started using php includes on my site. Problem is I can only preview them by uploading to my remote server as the Apache server on my mac doesn't handle php files. I'd like to be able to preview pages on my mac without uploading to the remote web server. I've downloaded php, but whoa! those installation instructions are way beyond me. I'm not an IT expert, just a humble graphic/web designer. Is this worth me pursuing? I just don't have the time to learn a whole new coding language (just getting by with html, css and some javascript!!). Any tips/pointers? |
|
|
|
#2
|
||||
|
||||
|
Re: PHP on MacOS Apache server
If you want to learn PHP, go for it. Get yourself a good hosting package and a domain name and your server should support PHP.
If not, just let someone else do it, you can always subcontract parts of design jobs to other people more specialized in the technical aspect of web design. |
|
#3
|
|||
|
|||
|
Re: PHP on MacOS Apache server
Thanks. I have a host, domain name and website and all that.
What I do want to do though is to preview my work before I upload it to my webserver i.e. on the apache server on my mac. I'd like to able to test and play around with new pages before I upload them to my public space. Apart from that, and pardon my ignorance!... but to start learning php do I not need to install anything on my computer? Heyulp!! |
|
#4
|
|||
|
|||
|
Re: PHP on MacOS Apache server
To bad Macs come with Apache. I would suggest you download XAMPP for Macs. Its apache, mysql and phpadmin all toether. I use the windows version but I can view my php work locally..which it sounds like you want to do. If you want to look at it
http://www.apachefriends.org/en/xampp.html
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
|
|
#5
|
|||
|
|||
|
Re: PHP on MacOS Apache server
Hi Sannbe,
Yeah I looked at that site once before but the warning put me off a bit. Quote:
|
|
#6
|
|||
|
|||
|
Re: PHP on MacOS Apache server
Ha. Youw ill need to install php locally if you want to view php files locally. It is a bit technical but it's not too bad when you work it out. Read through the instrudtions again and see if it clicks. I haven't installed php in a while as I don't really bother with it but I'll have a look and see if I can work it out.
Pete. |
|
#7
|
|||
|
|||
|
Re: PHP on MacOS Apache server
You don't have to learn german. Scroll down the forum page and you will find an English version.
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
|
|
#8
|
|||
|
|||
|
Re: PHP on MacOS Apache server
Hang on, folks ... Apache on OS X *is* built with PHP - it's just that you need to change the config file to enable it. As I recall, the lines you need are even in the configuration file - just commented out by default!
|
|
#9
|
|||
|
|||
|
Re: PHP on MacOS Apache server
Ooer! that looks scary!! Good news though! I knew you wouldn't let me down!I'm afraid I don't know how to change the config though!
Could you clue me in on how to do that please Grahame? Sannbe - glad I don't have to learn German - cheers! |
|
#10
|
|||
|
|||
|
Re: PHP on MacOS Apache server
The file to change is /etc/httpd/httpd.conf ... you simply remove the # character from the front of lines 240 and 284 (line number may differ a bit on different OS X versions). The report I have posted up is from the shell "diff" command that shows all changes to a file - you see the before and after in my "scary bit". Use any text editor that you like - there are lots of them in OS X.
Having made the change, turn off and turn on again the web sharing in your system settings, OR reboot, and this change is made to a configuration file to effects apache httpd as it starts up. |
|
#11
|
|||
|
|||
|
Re: PHP on MacOS Apache server
Snappy, its relatively easy to change the config file. Apache is real good about IDing how to make things work on their server by making changes in the config files. However, I will not tell you how many times I added or removed the wrong thing (apache crash) until, by trial and error, success well, 1 maybe 2 times.... I wish I could give you more help but I am stil working on getting apache not to growl at me.
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
|
|
#12
|
|||
|
|||
|
Re: PHP on MacOS Apache server
I really am a novice at this side of things. Where do I find the config file?
|
|
#13
|
|||
|
|||
|
Re: PHP on MacOS Apache server
Top level folder "etc" ... in there a folder called "httpd" ... and the file is called httpd.conf
Where in the UK are you? If you happen to be near to us ... we could sort you out "in real life" |
|
#14
|
|||
|
|||
|
Re: PHP on MacOS Apache server
I've done a search for all of those things but no result !
I'm on Mac OS 10.3.9 if that helps... By the way I'm in North Wales, bit of a trek!! |
|
#15
|
|||
|
|||
|
Re: PHP on MacOS Apache server
It'll be there. Just not visible through things like finder (at least that's the situation I have). I use a shell window and vi to work at an underlying unix level as I'm not an OS X expert ... and not knowing much about the OS X specifics it's probable best for me to leave other who are to advise further on how best to edit the file in question using point and click tools.
|
|
#16
|
|||
|
|||
|
Re: PHP on MacOS Apache server
Sounds like something beyond the realm of standard preference setting. Will search some mac forums and post my findings here if they might be of use to some other poor lost soul like me!
Thanks for your help so far everyone. |
![]() |
| Tags |
| apache, installation, php |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| URGENT!!!! Send HTTP request from one web server to another server | chandra.nowduri | ASP.NET Forum | 1 | Aug 7th, 2006 19:18 |
| PHP/Apache | ktsirig | PHP Forum | 2 | Feb 9th, 2006 03:44 |
| Need to process data on one server, utilize it on another server ... can it be done? | jaobrien | Classic ASP | 1 | Dec 6th, 2005 00:58 |
| Apache | Alan | PHP Forum | 3 | Aug 4th, 2005 12:48 |
| Can ASP run on a apache web server on a windows xp home edit | jperson19468 | Classic ASP | 9 | Aug 8th, 2004 10:45 |