31
Jan
2007
New location Apache and PHP in new instruction set
Posted by Richard5 under Apache , News , PHP[5] Comments
Just wanted to see if there are any objections to move the Apache and PHP installations from their current location in ‘/Library/’ to ‘/usr/local/’
The layout for Apache will become:
<layout DIYMacServer> prefix: /usr/local/apache2 exec_prefix: ${prefix} bindir: ${exec_prefix}/bin sbindir: ${exec_prefix}/bin libdir: ${exec_prefix}/lib libexecdir: ${exec_prefix}/modules mandir: ${prefix}/man sysconfdir: /etc/httpd/ datadir: /var/www installbuilddir: ${datadir}/build errordir: ${datadir}/error iconsdir: ${datadir}/icons htdocsdir: ${datadir}/htdocs manualdir: ${datadir}/manual cgidir: ${datadir}/cgi-bin includedir: ${prefix}/include localstatedir: /var runtimedir: ${localstatedir}/run logfiledir: ${localstatedir}/log/httpd proxycachedir: ${localstatedir}/cache/httpd </Layout>
This brings everything in-line with normal other installs. The configuration is as it was with the original Apache in ‘/etc/httpd
‘ and the log, cache and pid file are all in ‘/var
‘. Although I’m still having doubts about the datadir
, I would have put it in ‘/var/www/
‘ but on the normal OS X install it would be in ‘/Library/WebServer/
‘. What do you think ?
PHP5 will be located in ‘/usr/local/php5
‘, the php.ini
file will be located in ‘/etc
‘.
I hope to open up the new site tomorrow if all goes well…
Related entries:
- No related posts
- No related posts
January 31st, 2007 at 11:25 pm
Sounds good to me. I like things in standard places and there’s no place like /usr/local for 3rd party unix-apps
Jan
–
February 1st, 2007 at 6:29 am
I think I lean toward leaving it in Library. Unless you make your hidden folders available to the GUI, a lot of web colde gets placed in my Apache2 folder inside of Library. It is veiwable by the GUI. I can use my TextMate and BBEdit to save files there using the standard save dialog boxes that way.
February 1st, 2007 at 11:00 am
@Brad: We can leave the websites in /Library/WebServer as the original apache has but put the software/binaries in /usr/local !
April 28th, 2007 at 3:02 am
If you change the location and we already have installed everything for apache into the library, how would we move everything over to a new location easly?
April 28th, 2007 at 4:13 pm
The locations on the switch blog haven’t moved and won’t move. This post was related to setting up the documentation on the new site http://diymacserver.com.
Hope this explains…