Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Apple Macintosh install and operational issues

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 4113 Views
  • jungle
    Avatar
    Community Member
    6 Posts

    Apple Macintosh install and operational issues Link to this post

    How do I deploy new page templates (Homepage.php, eg) on a Macintosh system running MAMP and SS?

    I can't get the http://localhost/dev/build/?flush=1 command to work, updating the page type template as per tutorial 1 section 'Creating a new page'. I've tried using the port numbers of apache server and mySQL server (8888 and 8889 resp.) and get different results but none succeed in updating the page types in CMS.

    With no port spec, I get:

    Safari can’t connect to the server.
    Safari can’t open the page “http://localhost/dev/build?flush=1” because Safari can’t connect to the server “localhost”.

    With localhost:8889 (mySQL) I get

    a little downloaded text file that has some gobbledygook and then 'Bad Handshake'

    with localhost:8888 (Apache) I get

    Not Found
    The requested URL /dev/build was not found on this server.
    Apache/2.0.59 (Unix) PHP/5.2.6 DAV/2 Server at localhost Port 888

    Is there some other security setting I need to adjust perhaps?

    I am not a developer or IT specialist, I come to this from graphics and comms side, but know my way around the tech side too. Any help appreciated, happy to provide more details as needed.

    OS X 10.5.7 Leopard
    MAMP and SS latest downloads, just installed this week

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Apple Macintosh install and operational issues Link to this post

    How I configure my MAMP is apache to port 88. Leave mysql with whatever it chooses. I also set the Document Root (in prefs) for mamp to /Users/Will/Sites/ rather then the default one inside MAMP folder. Then it should just be a simple task of reseting mamp (as you have edited the ports) and visiting http://localhost/. Then each site is setup as a folder in /Users/Will/Sites/*

    Make sure when you move files around in OSX you move the .htaccess file as well. By default this file will be hidden so you need to turn hidden files off or move it via Terminal (if you have to move it with the mv command - mv /path/to/.htaccess /path/.htaccess. I think this is whats causing your last error.

  • jungle
    Avatar
    Community Member
    6 Posts

    Re: Apple Macintosh install and operational issues Link to this post

    will what string to you use for dev/build/?flush ? That the part that's not working. i can edit the site and view in browser no problems, its only updating database with new page types thats failing.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Apple Macintosh install and operational issues Link to this post

    I'm developing on mamp too. You should simply use dev/build, works fine here.

  • jungle
    Avatar
    Community Member
    6 Posts

    Re: Apple Macintosh install and operational issues Link to this post

    Can anyone on Mac using MAMP please supply the full URL for this dev/build flush? I have changed MAMP to default ports, 80 for Apache, but still can't get the new page type to show up in CMS. I get stuck at the step after creating a new PHP file for homepage type -- its in code folder but won't appear in CMS editor as page type choice -- the dev/build doesnt seem to be working.

    I have tried: http://localhost/dev/build?flush=1

    http://localhost:80/dev/build?flush=1

    http://localhost:3036/dev/build?flush=1 (MySQL port)

    also tried to flush the SS cache afterwards to see if that helped, but no.

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Apple Macintosh install and operational issues Link to this post

    Ok so in my Environment sites are located /Users/Will/Sites/SiteName/
    The MAMP Root is set to /Users/Will/Sites
    So my dev/build URL is http://localhost/SiteName/dev/build/

    You should see a List of Tables when running dev/build. If you see a blank page or something else then it did not work.

  • jungle
    Avatar
    Community Member
    6 Posts

    Re: Apple Macintosh install and operational issues Link to this post

    OK, my MAMP root is /Users/jungle/Sites/htdocs

    inside of htdocs is /silverstripe/silverstripe-v.2.3.2/[unzipped all files here]

    I tried all combos i could think of but none seemed to work, no tables listed in browser window.

    http://localhost/silverstripe/dev/build?flush=1

    reports apache not found on server 404 error, as do all other combos now that i'm on port 80

    this is my path to CMS editing http://localhost:80/silverstripe/SilverStripe-v2.3.2/admin/

    thanks, will sorry it's not so easy.

  • jungle
    Avatar
    Community Member
    6 Posts

    Re: Apple Macintosh install and operational issues Link to this post

    might be worth noting, my issue is updating the DB to see new page type templates, is there any other way but build?flush to do this? Perhaps I can test what issue is if there's an alternate way.

    4113 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.