Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-03 08:15:04

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,099
Website Mastodon

Internal Server Error after upgrade

Hi – I just upgraded to TxP 4.0.2. I replaced all files in the mysite/textpatter/ directory Except for the confiq.php file:
rw-r—r— 1 giovanni giovanni 273 Oct 9 21:50 config.php
-rw-r—r— 1 giovanni giovanni 445 Dec 3 07:40 css.php
drwxr-xr-x 3 giovanni giovanni 512 Oct 8 07:34 include/
-rw-r—r— 1 giovanni giovanni 2912 Dec 3 08:04 index.php
drwxr-xr-x 2 giovanni giovanni 512 Oct 8 07:34 lang/
drwxr-xr-x 2 giovanni giovanni 512 Oct 28 06:21 lib/
-rw-r—r— 1 giovanni giovanni 15127 Dec 3 07:40 license.txt
drwxr-xr-x 2 giovanni giovanni 512 Oct 8 07:35 publish/
-rw-r—r— 1 giovanni giovanni 30726 Dec 3 07:41 publish.php
drwxr-xr-x 2 giovanni giovanni 512 Dec 3 07:40 setup/
-rw-r—r— 1 giovanni giovanni 5760 Dec 3 07:41 textpattern.css
drwxr-xr-x 2 giovanni giovanni 512 Oct 27 18:09 tmp/
drwxr-xr-x 2 giovanni giovanni 1024 Oct 8 07:35 txp_img/
drwxr-xr-x 2 giovanni giovanni 512 Dec 3 07:40 update/

I then uploaded the index.php/textpattern/ and .htaccess/textpattern.
-rw-r—r— 1 giovanni giovanni 345 Dec 3 07:49 .htaccess
-rw-r—r— 1 giovanni giovanni 845 Dec 3 07:46 index.php

then when i opened my site i get this error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, web@nelson.textdrive.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

what now!!??


…. texted postive

Offline

#2 2005-12-03 15:25:14

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Internal Server Error after upgrade

Try removing the .htaccess file.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-12-03 21:57:52

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,099
Website Mastodon

Re: Internal Server Error after upgrade

> thebombsite wrote:

> Try removing the .htaccess file.

Ok thx. That brought back the site. Then when i went to login it complains that the .htaccess file is missing??

Pre-flight check

.htaccess file is missing ?
/home/giovanni/domains/bicilogic.com/public_html/textpattern/setup/ still exists ?

A click on the the “?” renders this:

htaccess File Missing
You are using a Permanent Link mode which requires an .htaccess file to be placed in your site directory. The recommended directives to place in this .htaccess file are:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php

And as i recall the Upgrade info says that I SHOULD replace my existing .htaccess with the new one contained in the upgrade folder. So now what? Do i or do i not need an .htaccess file???

Last edited by bici (2005-12-03 22:00:24)


…. texted postive

Offline

#4 2005-12-04 00:23:17

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

Re: Internal Server Error after upgrade

This is a FAQ

You need a .htaccess file to use clean URLs. If the standard .htaccess is causing an error, you’ll need to customize it for your server. Some pointers in the FAQ.


Alex

Offline

#5 2005-12-04 01:30:24

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Internal Server Error after upgrade

Do you still have a copy of your previous .htaccess?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2005-12-04 08:52:23

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Internal Server Error after upgrade

Which version did you upgrade from? Did you customize your previous .htaccess file to be able to use clean-urls? If so, you should make those same changes to the new .htaccess file.

Offline

#7 2005-12-04 17:29:50

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,099
Website Mastodon

Re: Internal Server Error after upgrade

> Sencer wrote:

> Which version did you upgrade from? Did you customize your previous .htaccess file to be able to use clean-urls? If so, you should make those same changes to the new .htaccess file.

Thx for the response:
I was using the first official version of Txp.. was that version 4?.. anyways the one that was released in Sept or so. I then upgraded to version 4.0.2.

And yes i still have the other copy of my .htaccess. as i backup all files prior to upgrading. call me overly cautious. And I don’t recall making any changes to the original .htaccess file. My ISP is TextDrive which I imagine is Txp aware.

Should i simply overwrite the problem .htaccess file with the old working one?

(PS I think that the upgrade instructions should be a little more clear and specific regarding what files get replaced etc. And after reading all the various hacks people have to do to their .htaccess files, i wonder if there is isn’t a more elegant programming way to handle “clean urls etc”)


…. texted postive

Offline

#8 2005-12-04 20:37:19

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Internal Server Error after upgrade

In the new .htaccess check this line:-

<code>#php_value register_globals 0</code>
<br />

Textdrive already has register_globals switched off so if this line isn’t “commented out” it will throw a 500 at you. Make sure it has the # at the beginning.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#9 2005-12-05 01:14:55

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,099
Website Mastodon

Re: Internal Server Error after upgrade

@ thebombsite ; i have repalce the “old” version with the one that came with the new update:
#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

And this time it works! I had in fact uploaded this version right after uploading all the other new files. BUT it caused all the the server errors. Now it works. beats me. anyways thanks for all your patience and help.


…. texted postive

Offline

#10 2005-12-05 08:30:40

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Internal Server Error after upgrade

Great! Glad it’s working again for you.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB