Mac Help Forums


Reply
Thread Tools Display Modes

Lion OSX Server - Working outside Library folder

 
New Member
Join Date: Oct 2011
Posts: 2
 
      13th October 2011
Hi

I am brand new to the Mac. I bought a 1 year old iMac and installed Lion on it with the help of a friend.

I then downloaded and installed the Lion Server from the App Store.

I tested setting up a PHP website by creating the website folder within my Public directory (Easily accessable via Finder)

as /JohnCogan/Public/Development/PHP/Testsite

and set this up in Lion Server on Port 8081 and "Store site files in" points to that folder.

Stopped/Started server and Enable PHP web apps is enabled/checked.

Problem is it seems that PHP doesnt run on this website set up as it is.

If I create a new webiste/folder under the default /Library/Server/Web/Sites/ then PHP runs fine, phpinfo() displays data.

How can I set up Lion server to allow PHP to run outside of its default area. Reason I want it like this I dislike fiddling within the terminal with SUDO each time I want to create a new development website and add files.

Any help in this regard would be great, thanks

John
 
Reply With Quote
 
 
 
 
Senior Member
Kaveman's Avatar
Join Date: Nov 2010
Location: Westland, NZ
Posts: 1,355
 
      13th October 2011
If you look in your Home Folder there is a Sites folder thats where you make sites without SUDO and Terminal. You'll have to mess with Apache settings and who knows what else to change the default locations. You'll be battling OS X security all the way.

If all you want to do is run test Sites then Home > Sites is the best option.

Enable Web Sharing in System Preferences > Sharing and you seem to have worked out how to enable CGIs.
 
Reply With Quote
 
New Member
Join Date: Oct 2011
Posts: 2
 
      13th October 2011
Quote:
Originally Posted by Kaveman View Post
If you look in your Home Folder there is a Sites folder thats where you make sites without SUDO and Terminal. You'll have to mess with Apache settings and who knows what else to change the default locations. You'll be battling OS X security all the way.

If all you want to do is run test Sites then Home > Sites is the best option.

Enable Web Sharing in System Preferences > Sharing and you seem to have worked out how to enable CGIs.
Thanks. That has seemed to work.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xsan: Manually configuring Xsan after promoting OS X Lion to Lion Server Newsbot Apple News 0 25th August 2011 10:40 PM
Mac mini Server (Mid 2011): How to install Lion Server on a software RAID volume Newsbot Apple News 0 25th August 2011 02:10 AM
User Library Folder Hidden in 10.7 Lion M-M Apps 68 16th August 2011 01:26 AM
User Library Folder Hidden in 10.7 Lion M-M Mac 41 11th August 2011 08:39 PM
Lion. User/Library? ray UK Macs 10 27th July 2011 03:03 PM


All times are GMT +1. The time now is 02:36 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
PDF Document
yura (2 Hours Ago, 12:13 PM)

Difficulties with internet speed (nothing to do with connection)
sammethh (8 Hours Ago, 06:36 AM)

Deleting a homepage/website form my mac book pro
rgandajg (16 Hours Ago, 10:30 PM)

MacBook
basil422 (20 Hours Ago, 06:01 PM)

Outlook reminders not popping up
WonderBot (21 Hours Ago, 05:03 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51