1 (edited by vincentieo 2012-05-19 17:34:32)

Topic: Installing on localhost using MAMP

HI I am trying to install on a localhost using MAMP.  Everything seems fine except prior to install monstra says 'Main .htaccess not writable'

http://www.vincentstephens.co.uk/test/images/monstra_install.png

Is this a problem?  Shouldn't monstra just write its own .htaccess file?

Re: Installing on localhost using MAMP

"Image not found".

File is writable?

Re: Installing on localhost using MAMP

I simply installed anyway...unzipped monstra again and copied the install.php to the root.  Ran install and and second time .htaccess was green lighted and marked as writeable... Dunno but all works fine now.. thanks

Deleted image on upload of localhost files to my server.

Re: Installing on localhost using MAMP

New problem with regard to using a local host to edit build and edit the site:

When adding images inside markitup editor the full url is required.  In my case:

http://localhost/images/image1.jpg

all good and well.

The problem is however, when the site is uploaded to a live server, all the image url's will be pointing to localhost and not:

http://mysite.co.uk/images/image1.jpg

I tried a to just bung in some php:

but of course that part of the page is being parsed as html not php.

Any ideas on this one, I am stumped?

Re: Installing on localhost using MAMP

Use relative links - "/images/image1.jpg" instead of "site.com/images/image1.jpg".

Re: Installing on localhost using MAMP

yes, I did try that. All I get is the image alt tag appearing with this code

image

However, I have now work it out.  simply omit the beginning '/' 

image

and all is good.  I dont think this would have stumped me if I had actually set the site url properly for my live version.  I had just uploaded all the local files to the server and forgotten I to configure the settings....opps

Any way...no slash and all is good. 

V

Re: Installing on localhost using MAMP

instead of

Monstra Loves You! Give some love back!

Re: Installing on localhost using MAMP

Awilum wrote:

instead of


This would work if I were editing a chunk (i suppose) but I am only talking about editing a page. 

The solution to use relative image url works fine for my localhost and live installs.


However, I do have another problem:

When using the markitup preview window, I am trying to get the main template css imported so that it look as it will on the site.  A must for happy customers where I am concerned.  The preview html and defauly css for mark it up are located in:

/plugins/markitup/markitup/templates/

For some reason when I place a url link from the preview html (in above folder) to my main css (/css/style.css) the preview displays with my background color and image.  However, if I place a copy of the css in the aforementioned folder all is fine. 

I dont mind this but I am obviously going to change the css a lot when developing so it is nice to have a quick access preview.  is there a way to create a dynamic file (like an alias or shortcut) on a server to replicate the css file to the markitup template folder?



On my localhost I have si

Re: Installing on localhost using MAMP

This would work if I were editing a chunk (i suppose) but I am only talking about editing a page.

You can use {siteurl} shortcode smile

Monstra Loves You! Give some love back!

Re: Installing on localhost using MAMP

I tried installing Monstra on Mamp. It installs fine for the first step after chmod those specific files and directories. But after I tried login in, my username and password I first created during installation don't save.

In fact, what Monstra ends up doing is taking me to a totally different URL after clicking the administration link at the bottom of the footer:

IN MAMP: http://localhost/projects/monstra/admin

It's suppose to be http://localhost/monstra/admin

Re: Installing on localhost using MAMP

Have you made sure that your document root path for the mamp server is correct.  if you move your htdocs folder from the applications folder you must remap the root from the preferences in mamp:

preferences -> apache select folder for your local host

Re: Installing on localhost using MAMP

Path is correct. This is what my path looks inside of MAMP:

/Users/waltwitty/Sites/localhost

localhost
- monstra (directory )
   - files
   - files

When clicking the administration link at the footer, I get this : http://localhost/projects/monstra/admin
I have no idea where the "projects" directory comes from. Before installation, I made sure all files were in the green before proceeding to install.

I am perplex on this one??? I tried going into the file and remove the directory path inside the PHP code. After doing that, it works and I can see the admin. Problem is, the css is not active and the login credentials don't save. I get a message that says the user doesn't exist... weird! I checked the database text file, it doesn't write a new user after installation.

I chmod using Terminal to change each file to 777, and still no positive results.

Re: Installing on localhost using MAMP

Well... I am not really a php coder. 

However, the file permissions you are setting are wrong...

They should be 644 for a file and 755 for a folder.  There will be some definable problem for the php parser if you set the wrong permissions. 

Not being funny but why dont you just change the link to go to the correct admin path?

Re: Installing on localhost using MAMP

check .htaccess file and rewrite rules.
if you installed the monstra to a subfolder, then check the path in the line 'RewriteBase'.

Re: Installing on localhost using MAMP

Installing Mamp is changing the permission inside the Terminal. The permission should be changed inside directory that holds the monstra.

Use command line to access sub-directories inside the parent directory that holds Monstra:

ls -la

Use this command line to change the permissions for sub-directories:
chmod -R 777 .htaccess

or chmod -R 777 .htaccess