Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-15 05:28:31

Tom68
New Member
Registered: 2005-12-14
Posts: 6

MAMP: 404 at "View Site"

Thought was doing well getting Textpattern up and going on MAMP, but now getting a 404 when trying to view the site being built. Textpattern 4.0.2 installed on MAMP 1.01 on Mac OS X 10.4.3 with diagnostics:
Textpattern version: 4.0.2 (r1076)
last_update: 2005-12-15 01:27:03/2005-11-01 02:01:30
Document root: /Applications/MAMP/htdocs/ (/Applications/MAMP/htdocs)
$path_to_site: /Applications/MAMP/htdocs/textpattern-4.0.2
Textpattern path: /Applications/MAMP/htdocs/textpattern-4.0.2/textpattern/
Permanent link mode: section_id_title
upload_tmp_dir: /Applications/MAMP/tmp/php
Temp folder: /Applications/MAMP/htdocs/textpattern-4.0.2/textpattern/tmp
Site URL: localhost:8888
PHP version: 5.0.4
server_time: 2005-12-15 18:02:47
MySQL: 4.1.12
Locale: en_GB.UTF-8
Server: Apache/2.0.54 (Unix) PHP/5.0.4 DAV/2
Apache version: Apache/2.0.54 (Unix) PHP/5.0.4 DAV/2

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

Have read where should try dropping comment # in .htaccess lines but can’t see where to get access to do so. Suspect an Apple issue?
Also gained the impression most .htaccess issues related to Textpattern prior to release 4.0.2, so thought there may be another simpler cause for my 404 problem. A path issue perhaps?
Would really appreciate some insight from someone more experienced with Textpattern than my meagre few hours. Thanks.

Offline

#2 2005-12-15 06:16:56

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: MAMP: 404 at "View Site"

My first guess would be this


Alex

Offline

#3 2005-12-15 07:07:42

Tom68
New Member
Registered: 2005-12-14
Posts: 6

Re: MAMP: 404 at "View Site"

Thanks Alex. Would like to try that but can’t find the .htaccess line to edit. Any suggestions where to look?

Offline

#4 2005-12-15 07:44:17

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,118
Website GitHub Mastodon Twitter

Re: MAMP: 404 at "View Site"

hi tom,
the .htaccess file is invisible in osx like all other docs starting with a dot. The way to view it is either with bbedit (File:open>the htaccess file should be in the root directory of txp. or with transmit (control click on the htaccess and chose ‘edit’)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2005-12-15 07:58:21

Tom68
New Member
Registered: 2005-12-14
Posts: 6

Re: MAMP: 404 at "View Site"

Thanks for that … thought it may be to do with Apple! Really appreciate the prompt and detailed feedback.

Offline

#6 2005-12-15 09:26:29

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: MAMP: 404 at "View Site"

Tom,
Its not apple’s fault :)

You may be looking in the wrong place :)

Try this instead: “http://localhost:8888” again, but drop the textpattern-4.0.2 directory, otherwise you should be looking for it at localhost:8888/textpattern-4.0.2

(If you want your site to be set up to be viewable at the root of the host server that is).

Hope that helps, It seems like that’s the issue?

Matthew


Offline

#7 2005-12-15 10:58:40

Tom68
New Member
Registered: 2005-12-14
Posts: 6

Re: MAMP: 404 at "View Site"

Thanks Matthew. Its OK, I like Apple too! Just trying to figure out where the .htaccess file was under OS X. Entering localhost:8888 just asks for the directory textpattern-4.0.2 to be selected, and goes back to the 404 again. The textpattern-4.0.2 in the path came from my set up in MAMP, and I agree it seems unusual in the off-site hosting context. The problem does seem likely to lie either there or in the DirectoryIndex issue.
Having trouble removing the comment from #DirectoryIndex index.php index.html as its “off” in the MAMP/conf/apache/httpd.conf configuration script but comes up as “on” in the Textpattern diagnostics. There is no sign yet of any over-riding configuration script within Textpattern. Confusing.
The discovery of the MAMP/Textpattern combination for local development had me quite excited, but the learning curve before productive work is proving to be rather steep for a newbie!

Offline

#8 2005-12-15 11:38:48

Tom68
New Member
Registered: 2005-12-14
Posts: 6

Re: MAMP: 404 at "View Site"

Problem solved: under Textpattern preferences, setting permanent link mode to “?=messy” allowed the “view page” to work.

Offline

#9 2005-12-15 15:36:11

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: MAMP: 404 at "View Site"

Tom,
Glad you figured it out.
If it helps I can see/view .htaccess files in osx using transmit (the ftp client), probably some other ftp’s will do this as well.

I should have remembered that myself :) I think I ran into that at one point too. If you have any more questions, lets dialog, as I am in the same boat you are.

Right now, I am experimenting with wordpress and drupal as well, trying to understand the differences, capibilities, niche’s etc.
All locally using MAMP.

Matthew


Offline

#10 2005-12-16 21:24:29

andymiller
Member
Registered: 2005-12-05
Posts: 17

Re: MAMP: 404 at "View Site"

Tom

TextWrangler (the free baby brother to BBedit) also lets you see hidden files in OSX.

I tried fiddling around with .ht access without success. So I think it may be a question of tweaking the apache settings to get it to work. It might be worth posting on the MAMP support forum to see what their advice is.

If you find a solution please post it! though maybe moskovich has found a way.

(Hurrah got textile to produce a link on the third attempt!)

Last edited by andymiller (2005-12-16 21:31:32)

Offline

#11 2005-12-16 21:36:05

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: MAMP: 404 at "View Site"

tom,
you may take a look at this too ?


Offline

Board footer

Powered by FluxBB