Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-09 06:43:21
- lokimann
- New Member
- Registered: 2006-01-09
- Posts: 8
404 after installing to a subdirectory
This forum has been so helpful before, thought you may be able to explain this one.
I have a fresh install of TextPattern on my site.
The site address is : http://www.jgpayne.com though the textpattern install is in a subdirectory called /think. When browsing there (http://www.jgpayne.com/think/index.php) I am getting a 404 message.
Like this:
My Site: 404 Not Found
404 – The requested page was not found.
Is there a setting I’ve missed in TXP? A permissions thing? Something to do with the webserver?
Please help, I’m kinda stumped.
Thank you,
Jeremy
Offline
Re: 404 after installing to a subdirectory
What is your site_url set to in Preferences? It has to include the domain and the subdirectory (/think) as suggested by setup. If that doesn’t help, please post your diagnostics.
Offline
#3 2006-01-09 17:00:25
- lokimann
- New Member
- Registered: 2006-01-09
- Posts: 8
Re: 404 after installing to a subdirectory
That did it! Thankyou!
You folks are awesome!
Jeremy
Last edited by lokimann (2006-01-09 17:20:14)
Offline
Re: 404 after installing to a subdirectory
I am having a similiar issue. I do have the sub dir included in the path. I can get to the textpattern admin without any problem but get a 404 when trying to actually access the home page.
The requested URL /nfs/cust/6/17/87/378716/web/build/index.php was not found on this server.
index.php is in the build directory. Any help would sure be appreciated.
jds
My diagnostics
Textpattern version: 4.0.3 (r1188)
last_update: 2006-02-10 21:32:47/2006-02-10 20:53:09
Document root: /nfs/cust/6/17/87/378716/web
$path_to_site: /nfs/cust/6/17/87/378716/web/build
Textpattern path: /nfs/cust/6/17/87/378716/web/build/textpattern
Permanent link mode: section_id_title
upload_tmp_dir: /tmp/php-upl
Temp folder: /nfs/cust/6/17/87/378716/web/build/textpattern/tmp
Site URL: www.jdspeer.net/build
PHP version: 4.3.10
Register globals: 1
server_time: 2006-02-10 14:02:31
MySQL: 3.23.58
Locale: en_GB.UTF-8
Server: Apache
php_sapi_mode: cgi
os_version: Linux 2.4.29-1.2smp
Pre-flight check:
————————————
/nfs/cust/6/17/87/378716/web/build/textpattern/setup/ still exists
Your version of PHP has security related risks. Please turn register_globals off or update to a newer PHP version.
————————————
.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
————————————
Offline
Re: 404 after installing to a subdirectory
Forgot to mention I have tried messy urls and changing the .htacess to
RewriteBase /build/
Warning: main(/build/textpattern/publish.php): failed to open stream: No such file or directory in /nfs/cust/6/17/87/378716/web/build/index.php on line 27
Warning: main(): Failed opening ‘/build/textpattern/publish.php’ for inclusion (include_path=’.:/usr/local/php/include’) in /nfs/cust/6/17/87/378716/web/build/index.php on line 27
Fatal error: Call to undefined function: textpattern() in /nfs/cust/6/17/87/378716/web/build/index.php on line 28
Offline
Re: 404 after installing to a subdirectory
$path_to_site: /nfs/cust/6/17/87/378716/web/build
This should be your domain + (web)subdir as suggestd by setup.
Offline
Re: 404 after installing to a subdirectory
That is what the setup suggested the path to be. I just redid the setup and replaced the full path with http://jdspeer.net/web/build and I still get
The requested URL /nfs/cust/6/17/87/378716/web/build/index.php was not found on this server.
is there someplace to change this after the setup?
this is from my config.php
$txpcfg[‘host’] = ‘mysql.jdspeer.net’;
$txpcfg[‘table_prefix’] = ‘’;
$txpcfg[‘txpath’] = ‘jdspeer.net/web/build/textpattern’;
Offline
Re: 404 after installing to a subdirectory
in the admin section the site url is set to jdspeer.net/build
Offline
Re: 404 after installing to a subdirectory
Sorry about that, I got mixed up. Please revert it to the way it was before.
txpath should of course be the full filesystem url. path_to_site is autogenerated by tepattern, so it’s not even something you can control. And site_url sems to be set corretly.
Let’s try one more time.
Offline
Re: 404 after installing to a subdirectory
I have dumped the data base and reinstalled everything and still get the same 404
The requested URL /nfs/cust/6/17/87/378716/web/build/index.php was not found on this server.
I have also tried with Messy URLs
Thank you so much for your help, I am using Textpattern on several sites (IIS) and other than having to use messy URLs have had nothing but success. This is my first installation on apache linux.
Here are my diagnostics
Textpattern version: 4.0.3 (r1188)
last_update: 2006-02-11 16:27:16/2006-02-11 16:23:08
Document root: /nfs/cust/6/17/87/378716/web
$path_to_site: /nfs/cust/6/17/87/378716/web/build
Textpattern path: /nfs/cust/6/17/87/378716/web/build/textpattern
Permanent link mode: section_id_title
upload_tmp_dir: /tmp/php-upl
Temp folder: /nfs/cust/6/17/87/378716/web/build/textpattern/tmp
Site URL: www.jdspeer.net/build
PHP version: 4.3.10
Register globals: 1
server_time: 2006-02-11 08:28:59
MySQL: 3.23.58
Locale: en_GB.UTF-8
Server: Apache
php_sapi_mode: cgi
os_version: Linux 2.4.29-1.2smp
Pre-flight check:
————————————
/nfs/cust/6/17/87/378716/web/build/textpattern/setup/ still exists
Your version of PHP has security related risks. Please turn register_globals off or update to a newer PHP version.
————————————
.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
————————————
Offline
Re: 404 after installing to a subdirectory
Just for grins, I deleted the .htaccess and now it works, so then I replaced the .httacess with the line
RewriteBase /build/
and everything seems to be working.
Thank you for all your help
Offline
Pages: 1