Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-08-31 19:37:36
- candyman
- Member

- From: Italy
- Registered: 2006-08-08
- Posts: 684
Can't manage to install without WWW
I’ve installed TXP MANY times, always in www.mysite.it but this time I wanted to get my site with no www so I’ve installed in mysite.it
Unfortunately I get this:
Warning: main(/web/htdocs/mysite.it/home/textpattern/publish.php) [function.main]: failed to open stream: No such file or directory in /web/htdocs/www.mysite.it/home/index.php on line 38
Warning: main() [function.include]: Failed opening ‘/web/htdocs/mysite.it/home/textpattern/publish.php’ for inclusion (include_path=’.:/php/lib/php/’) in /web/htdocs/www.mysite.it/home/index.php on line 38
Fatal error: Call to undefined function: textpattern() in /web/htdocs/www.mysite.it/home/index.php on line 39
… and I have no idea of whre is the problem.
Last edited by candyman (2007-08-31 19:51:26)
Offline
Re: Can't manage to install without WWW
Either in config.php or in the TXP preferences, you have set ‘maidireblog.it’ instead of ‘www.maidireblog.it’
Offline
#3 2007-08-31 19:56:56
- candyman
- Member

- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Can't manage to install without WWW
I was set the URI without www in the config.php, setting with www works but in the url address of the browser I’ve got the www that I don’t want.
I’ve got this in the diagnosics: clean_url_data_failed…
Thanks for your help.
Offline
#4 2007-09-01 01:10:23
- candyman
- Member

- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Can't manage to install without WWW
I got a site with a strange effect: it seems that the default installation style (css) is ignored.
Offline
#5 2007-09-01 07:45:03
- candyman
- Member

- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Can't manage to install without WWW
Saw this but I can’t find the solution. I had TXP installed on the SAME server and, with www, clean URLs works but now, without www, they don’t. So I don’t think that is a server-related problem.
Offline
#6 2007-09-01 16:27:07
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Can't manage to install without WWW
Check your preferences again. In Admin > Preferences, the Site URL should also be mysite.it.
Also check in diagnostics if Document root, $path_to_site etcetera are correct.
Offline
#7 2007-09-02 07:24:45
- candyman
- Member

- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Can't manage to install without WWW
Thanks Els. Unfortunately the assistance of my Maintainer told me that the no_www URLs are incompatible with my space: they need to change the DNS. The space is on a Server Apache/2.0. Actually I’ve reinstalled all with www but, if you tell me what to change (if is it possible without reinstalling all or, at least, leaving the last installation untouched) I’ll do another try… :D
Well, I have to change:
- the Site URL In Admin > Preferences
- $path_to_site in Preferences > Advanced Preferences
- the Site URL in config.php
- the .htaccess file adding this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.mysite\.it$ [NC]
RewriteRule ^(.*)$ http://mysite.it/$1 [R=301,L]
Other?
Offline
#8 2007-10-04 12:55:35
- candyman
- Member

- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Can't manage to install without WWW
I’m still having problems: it seems that the TxP config files needs the www but I know that’s impossible.
During the install, n the “Welcome to Textpattern” page I put:
Site URL: http://mysite.com
but in the full server path to Textpattern what I have to write?
The default path is: /var/www/vhosts/mysite.com/httpdocs/textpattern
If I cancel the /www from the default path it doesn’t work… May I put a full path like http://mysite.com/textpattern/… ?
Last edited by candyman (2007-10-04 13:16:22)
Offline
#9 2007-10-04 13:27:17
- candyman
- Member

- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Can't manage to install without WWW
I get these errors:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /var/www/vhosts/mysite.com/httpdocs/index.php on line 38
Warning: include(http://mysite.com/httpdocs/textpattern/publish.php) [function.include]: failed to open stream: no suitable wrapper could be found in /var/www/vhosts/mysite.com/httpdocs/index.php on line 38
Warning: include() [function.include]: Failed opening ‘http://mysite.com/httpdocs/textpattern/publish.php’ for inclusion (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/vhosts/mysite.com/httpdocs/index.php on line 38
Fatal error: Call to undefined function textpattern() in /var/www/vhosts/mysite.com/httpdocs/index.php on line 39
In local, instead, I manage to get all running (without www of course).
Offline
Re: Can't manage to install without WWW
/var/www/vhosts/mysite.com/httpdocs/textpattern
That www in the path have nothing to do with address bar’s http://www.mysite.it. That path is the absolute full path in your webserver, it isn’t URL, so don’t change it. If you change it, your Textpattern installition wouldn’t work.
PS. In most of cases www can be also public_html.
Cheers!
Last edited by Gocom (2007-10-04 21:10:55)
Offline
Pages: 1