Web Sharing Issues... No PHP support

Good morning all, I guess it's fair to say that we are having problems with PHP, but I'm curious to see if anyone is having the same issues that I am... here is the story:
I have two Mac's, a powerbook G4, and a powermac G5. I decide to wipe the hard-drive and start fresh with my G4 so when I got leopard I got my chance.
The install went pretty smoothy, and I'm enjoying the OS quite a lot and look forward to when I have a better Idea as to what I'm doing. On this device I was able to get MySQL server running (after I installed the wrong bit - G4 is not 64bit... do'h) but I got it up and running and can connect to my web server's database.
With my G5 I did the standard upgrade, but here is where I wish I would have held off on that upgrade for a few weeks. When I turn on Web Sharing, and try to navigate out to http://computername.home/~Brian/ I get the message that says that I do not have permissions to access this Server...
I do the same thing on the G4 and it works just fine, as I can't install PHP on it yet... Anyway, I've called Apple and made them aware of the issue, and I think I'm going to try some things in the terminal to perhaps turn off PHP or turn it on (apple's version of it) to see if that will let me access my web-server as now when I'm working on my website it won't let me access my MySQL etc...
Anyway, did anyone else run into this same issue?
Thank you,
Brian
http://www.comicearth.com

I had the same/similar problems to start with.
If your issues are the same as mine it is because Apache has been upgraded from 1.3 to 2.2.
The thread with the details (and solution) is:-
http://discussions.apple.com/message.jspa?messageID=5649480#5649480

Similar Messages

  • Is anyone having Web Sharing issues after switching from 10.6 to Mountain Lion?

    I want to upgrade to Mountain Lion from Snow Leopard (10.6.8) but I wanted to see if anyone is experiencing any issues with their Web Sharing after making the switch. I use Web Sharing daily to build and test  web sites for my clients and when I made the switch to 10.6 none of my database driven sites worked. Ultimately I had to install a new version of PHP 5 because 10.6 came with and older version.  And I had to reinstall SQL for my databases along with some other related items.  It wasn't a major problem but it took a couple of days to track down the issue.  Anyone seen any weirdness like that with Mountain Lion?

    Web sharing is absent in Mountain Lion. Apple removed the feature. There're some unofficial hacks to bring it back, search the forums.

  • Web Sharing issue after restore

    After restoring my imac from a time machine backup recently, everything is working great apart from my Web Sharing.
    I used to go to http://localhost/~username, that just gives localhost, server not found.
    I can still connect to the mysql server at localhost, but any attempt to browse any of my created sites comes up blank and looks to be a possible apache problem as http://localhost is also blank.
    In sharing prefs, web sharing is on, I've turned it off and on again. The weird thing is that where it previously would say http://localhost/~username it not says http://codename.lan.
    Connecting to this doesn't work surprisingly so I don't know what to say!
    Any starting places would be most welcome!

    at http://discussions.apple.com/thread.jspa?messageID=8768900&#8768900
    Thomas Flaherty wrote:
    Seems that a directory /var/log/apache2 was not there after the restore
    sudo mkdir apache2
    chmod 755 apache2"
    the owner/group should be root/wheel
    This solution worked for me, try it.

  • Web sharing & 403 Firbidden, one more time

    I've read, to varying degrees of understandability, various articles and help files on the 10.5 web sharing issue. I've tried & failed. I've come to the article below, which I think states clearly why web sharing does not work out of the box with 10.5.5. I want to follow the ix it offers, but, as with so many other articles, it talks a level or 2 above my expertise.
    My questions include:
    • How do you "Navigate to the Apache2 user configuration directory"? What does that mean?
    • What is "cd /private/etc/apache2/users"? Is it a file? Is it something you type in Terminal?
    • What it "tee"?
    Questions go on along these lines until the end of the article; in short, is there a how-to for Apache / Terminal beginners. The overriding question is, why hasn't Apple addressed the web sharing snag by the 10.5.5 iteration of the OS?
    FYI I am hung up on web sharing directly due to my move from Palm to iTouch as PDA. With the Palm Zire31 I was able to do light word processing, and did hundreds of paragraphs with it; also as a reader, and reads tens of thousands of articles on it. I want to do the same with the iTouch. To that end I've duly downloaded and installed BookZ and eReader, to enable me to move articles back & forth from the iTouch to my new iMac, to be blocked by the dreaded 403 error.
    After reckoning this problem I hope a 3rd party will come out with a real light WP app like that for the Palm: WordSmith.
    Here's the article-
    Configure Apache Web Sharing for user accounts in Mac OS X 10.5 Leopard:
    http://www.gigoblog.com/2007/11/08/configure-apache-web-sharing-for-user-account s-in-mac-os-x-105-leopard/
    Someone please help me.

    Leopard web sharing works just fine out of the box (well, it does for me anyway), although if you updated from Tiger rather than doing a fresh install (not really a good idea for new OS version), you may get the 403 error. Once turned on, it is as simple (?) as dropping files into your user's Sites folder.
    That article is horrible - I don't know what the heck they are doing using a utility such as tee to edit configuration files. For stuff like this, the free text editor TextWrangler works as well as shell utilities (especially for those not comfortable with them), and it can also navigate to and open those normally hidden files.
    As for Apache, it is industrial strength, so there is a lot of stuff you can do with it (don't ask me, I'm just a duffer). The default websites on your computer (as shown in the System Preferences > Sharing > Web Sharing pane) have links to the documentation on your computer, or you can wander around and find other references such as Apache DevCenter.

  • Web Sharing on Leopard 10.5.6

    Hi,
    Web Sharing Issue: I've modified my Hosts, httpd-vhosts.conf, and httpd.conf and had all of my local dev sites working fine. Since updating to 10.5.6 I now get a "Failed to Connect" error in my browser... web sharing is still enabled, but the links in the pref pane (Your personal Web site, Your Computers's web site) result in the a "failed to Connect" error, while my dev sites are "Address Not Found".
    I used the combo update to update. I've since restored my original files from apache2/orginal but the issue persists. Can anyone offer any ideas on this? I'm at a loss and I really don't want to reinstall apache...
    Thanks so much,
    j

    Ok... Turns out there was an apache folder in /logs/ that was hanging on the error_log file -it was blown away and sending it in a loop, so it never 'officially' started... I replaced it from a different mac and now all is well!

  • Personal Web Sharing in System Prefs

    Hi Everyone,
    Just a little frustration going on here when trying to turn on web sharing; after enabling php in conf file, Apache seems to want to turn on, and then back off. I'm getting this error log in Terminal:
    [notice] caught SIGTERM, shutting down
    name-name-powerbook59:~ name$
    Thanks in advance for your help.
    Mark

    Wow. It's like a desert over here.... : )
    http://discussions.apple.com/thread.jspa?threadID=516043&tstart=0

  • Personal Web Sharing in System Prefs/G4PB

    Hi Everyone,
    Just a little frustration going on here when trying to turn on web sharing; after enabling php in conf file, Apache seems to want to turn on, and then back off. I'm getting this error log in Terminal:
    [notice] caught SIGTERM, shutting down
    name-name-powerbook59:~ name$
    What am I doing wrong here to cause Apache to start then terminate?
    Hoping you guys can help.
    Mark

    In Terminal:
    Uncomment:
    LoadModule php4_module libexec/httpd/libphp4.so
    AddModule mod_php4.c
    Add lines:
    AddType application/x-httpd-php .php
    AddType application/s-httpd-php-source .phps
    (These lines are added above: AddType applicationh/x-tar .tgz)
    Add new index page for PHP:
    <IfModule mod_dir.c>
    DirectoryIndex index.html index.php index.htm
    </IfModule>
    Save the httpd.conf file.
    It was working great last night. This problem just jumped up; most annoying.

  • Is there any way to use the bundled PHP compiler without web sharing on?

    Is there any way to use the bundled PHP compiler without Web Sharing on? Is there a way to make sure Web Sharing only allows local access so others on the network cannot access it? Any other easy way to get a PHP compiler on a Mac? I currently run Mac OS X 10.7.4. Any other security issues that might pop up from leaving Web Sharing on? Basically I just want a local PHP compiler so I can do some coding.

    You can use another router as an 'extender' (I know that this will work seemlessly with AirPort Extemes and AirPort Express's - you'll have to check with your router manufacturer to determine what they recommend for range extenders).
    You may also want to take a look at this link - http://www.wi-fiplanet.com/tutorials/7-tips-to-increase-wi-fi-performance.html - it may offer some tips.
    Clinton

  • Personal web sharing+php 5.2.2

    I installed PHP 5.2.2 for Apache 2 (I'm working on making a simple photo gallery) and it worked just after i installed it but it didn't give me any errors when my code didn't work. But now whenever I try and start web sharing it just says "web sharing starting up..." and stays like that. looking at the console I see a error:
    Processing config directory: /private/etc/httpd/users/*.conf
    Processing config file: /private/etc/httpd/users/+entropy-php.conf
    Syntax error on line 8 of /private/etc/httpd/users/+entropy-php.conf:
    Cannot load /usr/local/php5/libphp5.so into server: (reason unknown)
    /usr/sbin/apachectl start: httpd could not be started
    any ideas on how to fix this? I tried reinstalling PHP but it did not help.

    Hi--
    but i still have the problem of just getting back a
    blank screen when there is errors in my code. This
    makes it very hard to trouble shoot what is wrong
    with my code.
    You have two choices here. One is to just read the Apache error logs with the Console app. Otherwise, you'll need to find the php.ini file and enable sending the errors to the browser (they're off by default because it's something of a security risk). This page has pretty good instructions for doing that. His directions give the php.ini file's location as /usr/local/php/lib/php.ini, but mine, using the Entropy PHP5 distribution is at /usr/local/php5/lib/php.ini (note the extra "5").
    charlie

  • Web Sharing Not Starting Up After installing PHP

    On Mac OS 10.4.9 on a G4 PPowerbook, using O'Reilly's "Learning PHP and MySQL," my Personal Web Sharing will not start up.
    I enabled Apache per their instructions and things seemed fine.. Then I i installed PHP with these commands, sudo vi/etc/httpd/httpd.conf , then %s/#LoadModule php/LoadModule php/. Then %x/#AddModule php/AddModule php/. Then <espcape>:wq. Then
    vi ~/Sites/test.php
    o
    <?php phpinfo() ?>
    <escape>:wq
    First of all, the test query from the book didn't work quite right, but now my Personal Web Sharing won't start up. It says "starting up." forever.
    Help. And if you can't tell, I have extremely limited knowledge of Unix and command lines, etc.
    What do I do? Assume I know nothing... : )

    The first thing to do is read the Apache error log which will give you more detail about what's gone wrong.
    <pre class=command>tail /var/log/httpd/error_log</pre>
    The other thing to do is run configtest which might also indicate errors in the configuration:
    <pre class=command>sudo apachectl configtest</pre>
    although it'll probably tell you the same thing as the error log.

  • Issue on Web sharing and XSL files

    Hi all,
    What are the things to be taken care while we are doing websharing. I have an issue with one of my xMII projects. Everything is working fine on that server except xsl files. It is not getting transformed into HTML at run time. It is showing in XML format instead. I really doubt the problem is with my web sharing, because the same set of files(<b>including XSL file</b>) are working on a different server without any issue.
    I have done websharing by right clicking on the folder name, selecting the websharing tab and giving Alias name. Is that ok or anything more as to be done?
    Can anyone please trace out the issue.
    Thanks in advance
    Muzammil P.T

    Hi,
    Webroot is still in c:\inetpub\wwwroot, but i set up a new virtual directory to <b>c:\Lighthammer</b> and accessing xMII using the URL http://*...*/Lighthammer
    and my project contects using http://*...*/Lh/CompApps/MyProj/HomePage.html
    (I have given Lh as the Alias name).
    Here, My xMII homepage is working and myProj Homepage is also working fine. Once i calls the HTML pages which contains XSL files, the problem is coming.
    Please Note: The same contents is working on our different server without any change.
    Regards
    Muzammil

  • Web Sharing, Firewall, & Security Issue

    I recently turned on/activated Web Sharing, but I forgot to turn on the Firewall. Now I think I may have gotten malware, or some other sort of bad stuff on my machine.
    Am I right in this thinking? If so, what steps might I take to offset the damage? Thanks.
    Quick background note: I was experimenting with the using the Apache server that comes built in with Mac (because I'm learning mysql, php, etc.) And this tutorial mentions the importance of activating the Firewall if the user turns on Web Sharing http://www.macinstruct.com/node/112
    Specs:

    I didn't know about Quarantine being included in the Leopard OS ("Quarantine is a feature of Mac OS X introduced in version 10.5 (aka Leopard)) Thanks for pointing that out.
    More generally, I've been using Macs for several years and really like them, but this was the first time I activated/enabled Web Sharing for using the Apache server software and so I was just a little worried about that. And also, it seems as though my system has been working more slowly than it usually does.
    BTW: I did some of the most commonly suggested steps for improving performance.
    1. Check to see I have latest OS updates. [Done]
    2. Run/verify/repair disk permissions via Disk Utility [Done]
    3. Clear browser caches [Done]
    Thanks again.

  • Personal Web Sharing

    So I fire up ol' Personal Web Sharing, and it works fine for localhost. When I try to access it from the ip & name string I get a 403 forbidden error. I've done the "Get Info" and verified my permissions are correct. Still happens. According to Apple Tech Support, "...we can't help you fix it. There's nothing in our database about that."
    I've also used the disk utility to rebuild permissions, and restarted the server via the terminal interface - both to no avail.
    Any ideas would be greatly appreciated.
    BTW...I'm new to Mac, so if suggesting I investigated files such as .ini. or .conf, please include their paths. I can't seem to find the native install - apache folder.
    Thanks in advance for the help.
    SAM

    This posting on another thread has some good suggestions that might tell us more about what's going on. The first suggestion is to check the Console for error messages, which might show what's happening when you try to bring up your website either locally or from another computer. The other thing is to check apache's configuration using a Terminal command. Read this posting for more details:
    http://discussions.apple.com/message.jspa?messageID=1956252#1956252
    If the problem comes down to an Apache configuration issue, I found this free app that might make configuring Apache easier than using a text editor. It's called WebControl 1.0.7 and you can download it from here:
    http://www.macupdate.com/info.php/id/17003

  • The trial period for this product has expired or Secure Store Shared Service is not supported for this SKU - SharePoint Foundation 2013

    After sucessfulling installing the SharePoint Foundation 2013, when i try to access the Secure Stored Service Application i get the below error
    11/16/2012 18:13:02.84  w3wp.exe (0x1774)                        0x15E8 Secure Store Service         
     Secure Store                   g0n6 High     The trial period for this product has expired or this feature is not supported in this SKU. b3b6e19b-7de2-e016-ad32-0fc975829ef0
    11/16/2012 18:13:02.84  w3wp.exe (0x1774)                        0x15E8 SharePoint Foundation        
     General                        8nca Medium   Application error when access /_admin/sssvc/ManageSSSvcApplication.aspx, Error=The
    trial period for this product has expired or Secure Store Shared Service is not supported for this SKU.   at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.Execute[T](String operationName, Boolean validateCanary, ExecuteDelegate`1
    operation)     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.IsMasterSecretKeyPopulated()     at Microsoft.Office.SharePoint.ClientExtensions.SecureStoreAdministration.SSSAdminHelper.EnsurePrerequisite(SecureStoreServiceApplicationProxy
    proxy, String& errorMessage)     at Microsoft.Office.SharePoint.ClientExtensions.SecureStoreAdministration.ManageSSSvcApplication.InitializeGridView()     at Microsoft.Office.SharePoi... b3b6e19b-7de2-e016-ad32-0fc975829ef0
    11/16/2012 18:13:02.84* w3wp.exe (0x1774)                        0x15E8 SharePoint Foundation        
     General                        8nca Medium   ...nt.ClientExtensions.SecureStoreAdministration.ManageSSSvcApplication.OnLoad(EventArgs
    e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) b3b6e19b-7de2-e016-ad32-0fc975829ef0
    11/16/2012 18:13:02.84  w3wp.exe (0x1774)                        0x15E8 SharePoint Foundation        
     Runtime                        tkau Unexpected Microsoft.Office.Server.ProductExpiredException: The trial period for this product
    has expired or Secure Store Shared Service is not supported for this SKU.    at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.Execute[T](String operationName, Boolean validateCanary, ExecuteDelegate`1 operation)    
    at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.IsMasterSecretKeyPopulated()     at Microsoft.Office.SharePoint.ClientExtensions.SecureStoreAdministration.SSSAdminHelper.EnsurePrerequisite(SecureStoreServiceApplicationProxy
    proxy, String& errorMessage)     at Microsoft.Office.SharePoint.ClientExtensions.SecureStoreAdministration.ManageSSSvcApplication.InitializeGridView()     at Microsoft.Office.SharePoint.ClientExtensions.SecureSto... b3b6e19b-7de2-e016-ad32-0fc975829ef0
    11/16/2012 18:13:02.84* w3wp.exe (0x1774)                        0x15E8 SharePoint Foundation        
     Runtime                        tkau Unexpected ...reAdministration.ManageSSSvcApplication.OnLoad(EventArgs e)    
    at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) b3b6e19b-7de2-e016-ad32-0fc975829ef0
    11/16/2012 18:13:02.84  w3wp.exe (0x1774)                        0x15E8 SharePoint Foundation        
     General                        ajlz0 High     Getting Error Message for Exception System.Web.HttpUnhandledException
    (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Office.Server.ProductExpiredException: The trial period for this product has expired or Secure Store Shared Service is not supported for this SKU.    
    at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.Execute[T](String operationName, Boolean validateCanary, ExecuteDelegate`1 operation)     at Microsoft.Office.SecureStoreService.Server.SecureStoreServiceApplicationProxy.IsMasterSecretKeyPopulated()    
    at Microsoft.Office.SharePoint.ClientExtensions.SecureStoreAdministration.SSSAdminHelper.EnsurePrerequisite(SecureStoreServiceApplicationProxy proxy, String& errorMessage)     at Microsoft.Office.Sha... b3b6e19b-7de2-e016-ad32-0fc975829ef0
    11/16/2012 18:13:02.84* w3wp.exe (0x1774)                        0x15E8 SharePoint Foundation        
     General                        ajlz0 High     ...rePoint.ClientExtensions.SecureStoreAdministration.ManageSSSvcApplication.InitializeGridView()    
    at Microsoft.Office.SharePoint.ClientExtensions.SecureStoreAdministration.ManageSSSvcApplication.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
    Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.HandleError(Exception e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)    
    at System.Web.Htt... b3b6e19b-7de2-e016-ad32-0fc975829ef0
    11/16/2012 18:13:02.84* w3wp.exe (0x1774)                        0x15E8 SharePoint Foundation        
     General                        ajlz0 High     ...pApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) b3b6e19b-7de2-e016-ad32-0fc975829ef0
    11/16/2012 18:13:02.86  w3wp.exe (0x1774)                        0x15E8 SharePoint Foundation        
     General                        aat87 Monitorable   b3b6e19b-7de2-e016-ad32-0fc975829ef0
    Is it a bug or any issue in configuration?
    Raghavendra Shanbhag | Blog: http://moss-solutions.blogspot.com
    Please click "Propose As Answer " if a post solves your problem or "Vote As Helpful" if a post has been useful to you.
    Disclaimer: This posting is provided "AS IS" with no warranties.

    Hello
    something should be related wuith this service, take a llok at my visual studio output whne I try to deplay and autohosted sharepoint app: (anyone can help)
    1>------ Build started: Project: MySharePointAppWeb, Configuration: Debug Any CPU ------
    1>  MySharePointAppWeb -> C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\bin\MySharePointAppWeb.dll
    2>------ Build started: Project: MySharePointApp, Configuration: Debug Any CPU ------
    2>C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\Web.Debug.config(34,4): warning : No element in the source document matches '/configuration/connectionStrings'
    2>  Transformed Web.config using C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config.
    2>  Auto ConnectionString Transformed obj\Debug\TransformWebConfig\transformed\Web.config into obj\Debug\CSAutoParameterize\transformed\Web.config.
    2>  Copying all files to temporary location below for package/publish:
    2>  obj\Debug\Package\PackageTmp.
    2>  Packaging into C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointApp\obj\WebDeploy\MySharePointApp.Web.zip.
    2>  Adding sitemanifest (sitemanifest).
    2>  Adding IIS Application (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp)
    2>  Creating application (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp)
    2>  Adding virtual path (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp)
    2>  Adding directory (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp).
    2>  Adding directory (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\bin).
    2>  Adding directory (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\bin\en).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\bin\en\Microsoft.IdentityModel.resources.dll).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\bin\Microsoft.IdentityModel.dll).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\bin\Microsoft.IdentityModel.Extensions.dll).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\bin\Microsoft.SharePoint.Client.dll).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\bin\Microsoft.SharePoint.Client.Runtime.dll).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\bin\MySharePointAppWeb.dll).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\bin\MySharePointAppWeb.pdb).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\packages.config).
    2>  Adding directory (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\Pages).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\Pages\Default.aspx).
    2>  Adding directory (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\Scripts).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\Scripts\jquery-1.7.1.js).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\Scripts\jquery-1.7.1.min.js).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\Scripts\_references.js).
    2>  Adding file (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp\Web.config).
    2>  Adding ACL's for path (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp)
    2>  Adding ACL's for path (C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointAppWeb\obj\Debug\Package\PackageTmp)
    2>  Adding declared parameter 'IIS Web Application Name'.
    2>  Package "MySharePointApp.Web.zip" is successfully created as single file at the following location:
    2>  file:///C:/_works/visual%20studio%202012/Projects/MySharePointApp/MySharePointApp/obj/WebDeploy
    2>  To get the instructions on how to deploy the web package please visit the following link:
    2>  http://go.microsoft.com/fwlink/?LinkId=124618
    2>  Sample script for deploying this package is generated at the following location:
    2>  C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointApp\obj\WebDeploy\MySharePointApp.Web.deploy.cmd
    2>  For this sample script, you can change the deploy parameters by changing the following file:
    2>  C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointApp\obj\WebDeploy\MySharePointApp.Web.SetParameters.xml
    2>  Successfully created package at: C:\_works\visual studio 2012\Projects\MySharePointApp\MySharePointApp\bin\Debug\app.publish\1.0.0.0\MySharePointApp.app
    3>------ Deploy started: Project: MySharePointApp, Configuration: Debug Any CPU ------
    3>Active Deployment Configuration: Deploy App for SharePoint
    3>Uninstall app for SharePoint:
    3>  Skipping the uninstall step because the app for SharePoint is not installed on the server.
    3>Install app for SharePoint:
    3>  Uploading the app for SharePoint...
    3>  Creating a trusted root authority in SharePoint for IIS Express.
    3>  Installation is in progress (00:00:00)
    3>  Installation is in progress (00:00:01)
    3>  Installation is in progress (00:00:02)
    3>  Installation is in progress (00:00:03)
    3>  Installation is in progress (00:00:05)
    3>  Installation is in progress (00:00:06)
    3>  App failed to install, cleaning up...
    3>  App installation cleanup failed due to errors.  Please see the app on the SharePoint site’s “Site Contents” page for details.
    3>  App installation encountered the following errors:
    3> 
    3>  @"Error 1
    3>        CorrelationId: ceeeafab-3834-40ea-b360-c29d103e2248
    3>        ErrorDetail: The remote hosting service is not configured.
    3>        ErrorType: Configuration
    3>        ErrorTypeName: Configuration
    3>        ExceptionMessage: The trial period for this product has expired or Secure Store Shared Service is not supported for this SKU.
    3>        Source: RemoteWebSite
    3>        SourceName: Remote Web Site Deployment
    3> 
    3>  @"Error 2
    3>        CorrelationId: ceeeafab-3834-40ea-b360-c29d103e2248
    3>        ErrorDetail: The remote hosting service is not configured.
    3>        ErrorType: Configuration
    3>        ErrorTypeName: Configuration
    3>        ExceptionMessage: The trial period for this product has expired or Secure Store Shared Service is not supported for this SKU.
    3>        Source: RemoteWebSite
    3>        SourceName: Remote Web Site Deployment
    3>Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.
    ========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
    ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

  • Turning on Web Sharing does not work and fails to load apache web server

    Sort of answering my own question here but hope it will be useful to other people and save them some time.
    After receiving my shiny new imac with os x lion pre-installed, I was a little dismayed and confused when I went to System Preferences -> Internet and Wireless -> Sharing and attempted to check the Web Sharing. Every time I clicked this option I was told Web Sharing was starting but would then repeatedly fail and apache failed to start.
    Looking in the Console I find:
    org.apache.httpd: dyld: Library not loaded: /usr/lib/libpq.5.dylib
    org.apache.httpd: Referenced from: /usr/sbin/httpd
    org.apache.httpd: Reason: image not found
    Entering in the console:
    vim /Library/Logs/DiagnosticReports/httpd_2011-08-06-165030_localhost.crash (date and time bit will vary)
    reveals:
    Process:         httpd [2418]
    Path:            /usr/sbin/httpd
    Identifier:      httpd
    Version:         ??? (???)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [1]
    Date/Time:       2011-08-06 16:50:30.106 +0100
    OS Version:      Mac OS X 10.7 (11A511a)
    Report Version:  9
    Crashed Thread:  0
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Application Specific Information:
    dyld: launch, loading dependent libraries
    Dyld Error Message:
      Library not loaded: /usr/lib/libpq.5.dylib
      Referenced from: /usr/sbin/httpd
      Reason: image not found
    Binary Images:
           0x1022f6000 -        0x102352fef  httpd (??? - ???) <9D63FBFD-DD87-3DD5-AD1A-D8A79FEC3EE8> /usr/sbin/httpd
    "/Library/Logs/DiagnosticReports/httpd_2011-08-06-165030_localhost.crash" 32L, 1469C
    TO FIX THIS ISSUE:
    It appears /usr/lib/libpq.5.dylib does not exist but /usr/lib/libpq.5.3.dylib does.
    Fix by creating a symbolic link from /usr/lib/libpq.5.3.dylib to /usr/lib/libpq.5.dylib
    =
    sudo ln -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
    Going back to System Preferences -> Internet and Wireless -> Sharing clicking Web Sharing a couple of times turns Web Sharing on successfully!
    Going to http://localhost/ displays the "It Works!" page.
    HTH people as it took me a while to find the correct solution online from:
    http://www.azattis.com/2011/07/os-x-lion-postgresql-84-install-problem.html

    Hi there,
    You seemed to have had a similar problem to what I now have and so wondered if you might be able to help me :-)
    I have posted this as a new post as well but if anyone has five mins could they take a look - I would be very grateful. Here you go:
    I am new to all this so I have probably made some simple errors and I hope someone can help me. I will retell what I have done as I haven't a clue what part of what I have done has mucked things up.
    I am really stuck. Web sharing will not start on my iMac running Lion OS X. It did work fine and then I wanted to activate PHP so my test website contact form would work (and send the data on the form throught to my email address.
    Before I did anything I turned on websharing and could view my website from another computer using: http://192.168.1.4/~stewartfergusson/
    I think followed the instructions on this link to activate PHP -http://foundationphp.com/tutorials/php_leopard.php
    I then did a few things in terminal and will paste below what I did:
    Last login: Sun Jan  1 09:01:52 on console
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd/private/etc
    -bash: cd/private/etc: No such file or directory
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd prvate
    -bash: cd: prvate: No such file or directory
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd private
    -bash: cd: private: No such file or directory
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd /private/etc
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo cp php.ini.default php.ini
    WARNING: Improper use of the sudo command could lead to data loss
    or the deletion of important system files. Please double-check your
    typing when using sudo. Type "man sudo" for more information.
    To proceed, enter your password, or type Ctrl-C to abort.
    Password:
    Stewart-Fergussons-iMac:etc stewartfergusson$
    Last login: Wed Jan  4 09:03:03 on console
    Stewart-Fergussons-iMac:etc stewartfergusson$
    Last login: Thu Jan  5 06:19:15 on console
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo In -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
    Password:
    sudo: In: command not found
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo ln -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
    ln: /usr/lib/libpq.5.dylib: File exists
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo apachectl -t
    Password:
    Syntax error on line 1 of /private/etc/apache2/httpd.conf:
    Invalid command '1', perhaps misspelled or defined by a module not included in the server configuration
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo apachectl configtest
    Password:
    Syntax error on line 1 of /private/etc/apache2/httpd.conf:
    Invalid command '1', perhaps misspelled or defined by a module not included in the server configuration
    Stewart-Fergussons-iMac:etc stewartfergusson$
    An important point to note is that I now appear to have more than one http.config file and they are located in the following locations:
    1) Macintosh HD/etc/apache2/httpd.conf.default
    2) Macintosh HD/etc/apache2/httpd.conf.default.default
    3) Macintosh HD/etc/apache2/original/httpd.conf
    I edited this file (which one I have not got a clue) and also the php.ini file within Macintosh HD/etc/ using Terminal - the command I used was sudo cp php.ini.default php.ini
    This php.ini file now exists in two locations now as well:
    1) Macintosh HD/etc/php.ini
    2) Macintosh HD/etc/php.ini.default
    I then edited this file by changing the line of code below from:
    514 error_reporting = E_ALL & ~E_NOTICE (I think it said E_DEPRECATED actually) but I am lifting this from the web page in the link above)
    To:
    514 error_reporting = E_ALL
    I then saved this file.
    I then deactivated web sharing in System Preferences and since then have not been able to restart Web Sharing. I click it and it flashes orange for a second then does not start.
    This was all done to activate PHP on my iMac so I can host my own site which has a PHP contact form page.
    Please help I am so out of my depth I am very worried I may have changed things and I am going to forget what I did.
    If you need to know anything then please ask.
    Thank you so much
    sfergusson1
    'JollyoldEngland'

Maybe you are looking for