New install: Connection missing layout (Resloved)
New install: Connection missing layout (Resloved)
Calling up the site up on the server http://localhost/mysite/index.php the displayed layout is normal
However make a connection to the website from the internet the display is missing all the formatting. The text is formatted but everything is running down the left side of the screen in an orderly fashion.
Since posting this minutes ago I also have discovered that (again) from the internet I can not log in. Error 404. It's not adding"serendipity_admin.php" to the URL. Instead it's creating a URL that is constructed as follows: http://mysite.com/mysite/index.php?/admin
if my S9y is located on my system at /var/www/html/mysite
The setup in S9y is:
Full Path: /var/www/html/mysite/
Relative Path: /mysite/
URL Blog: http://localhost/mysite/
Are these the correct setting?
What's this all about? and what do I do to correct this
However make a connection to the website from the internet the display is missing all the formatting. The text is formatted but everything is running down the left side of the screen in an orderly fashion.
Since posting this minutes ago I also have discovered that (again) from the internet I can not log in. Error 404. It's not adding"serendipity_admin.php" to the URL. Instead it's creating a URL that is constructed as follows: http://mysite.com/mysite/index.php?/admin
if my S9y is located on my system at /var/www/html/mysite
The setup in S9y is:
Full Path: /var/www/html/mysite/
Relative Path: /mysite/
URL Blog: http://localhost/mysite/
Are these the correct setting?
What's this all about? and what do I do to correct this
Last edited by chiriqui on Sun Jan 17, 2010 10:04 pm, edited 1 time in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: New install: Connection missing layout
Hi!
Make sure you enable "Autodetect HTTP-Host" in the s9y options, so that the baseURL will be changed to the HTTP-Host that is actually used. You configured it for "localhost", which is not valid when in internet context of course...
Regards,
Garvin
Make sure you enable "Autodetect HTTP-Host" in the s9y options, so that the baseURL will be changed to the HTTP-Host that is actually used. You configured it for "localhost", which is not valid when in internet context of course...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: New install: Connection missing layout
I'd already done a re-install .. and now I'm at the point of selecting Simple Installation or Expert Installation.
I'm going to wait for your reply to this because I don't see in the doc's on installation a reference to the advice you have given me
thank you
I'm going to wait for your reply to this because I don't see in the doc's on installation a reference to the advice you have given me
Is it a feature of the "expert installation" If that is the case will I get deeper into trouble configuring those features? I don't see thisMake sure you enable "Autodetect HTTP-Host" in the s9y options, so that the baseURL will be changed to the HTTP-Host that is actually used.
in what I believe are the "Simple Install" docsAutodetect HTTP-HOST
thank you
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: New install: Connection missing layout
If you do expert installation, you will see "Autodetect used HTTP-Host" as the second to last option under "paths". Regardless of which installation method you choose, you can return to the serendipity admin page, select "Configuration" in the "Administration" menu, so there is really no reason to reinstall - just modify this setting via configuration.
=Don=
Re: New install: Connection missing layout
Still have the problem after I believe I followed your instructions.. on this 2nd new install. So I need further assistance here.
I tried changing back to what I had and now I get this error.
I restored the owner and permissions and now this error
Ok I'm going to do a reinstall.. I've got s9y running enough from the server browser (on the machine that s9y is installed on) so that I can read the setup fields and so ask questions for the next attempt at a fresh install
Relative path: path for your browser typically /sererndipity/
question: which browser? a browser from localhost or out on internet, on the internet it would be /http://www/serendipity/
URL to your blog: Base URL to your serendipity installation
question: do you mean a typical URL call to the blog out on the internet as in http://www.mysite.biz
Autodtect used HTTP-Host
question: the default is No. I can not make sense of the description. I have a typical website running on a office computer with LAMP setup on it. What's this setting for?
I think now the system has made alterations to internal files that the advice given no longer fix the problem. I've lost display attributes now on the localhost browser.
edit: I'm prepared now to run the s9y setup a 3rd time.
Question: the previous attempt had me changing the Owner of files if there's a preferred owner like s9y suggesting I make the owner "WWW" I've been using my a system "users" name
I tried changing back to what I had and now I get this error.
I tried the above suggestion and now I get ForbiddenYou don't have permission to access /mysite/serendipity_admin.php on this server.- Cannot write to file serendipity_config_local.inc.php.
-> run chown -R www:www /var/www/html/mysite (Change 'www' to the user apache runs as (e.g. 'nobody').)
-> run chmod 770 /var/www/html/mysite
Once you have done this, hit your browser's "reload" button.
I restored the owner and permissions and now this error
this is going from bad to worse.serendipity error: could not include /var/www/html/mysite/serendipity_config_local.inc.php - exiting.
Please create the file yourself or check permissions
Ok I'm going to do a reinstall.. I've got s9y running enough from the server browser (on the machine that s9y is installed on) so that I can read the setup fields and so ask questions for the next attempt at a fresh install
Relative path: path for your browser typically /sererndipity/
question: which browser? a browser from localhost or out on internet, on the internet it would be /http://www/serendipity/
URL to your blog: Base URL to your serendipity installation
question: do you mean a typical URL call to the blog out on the internet as in http://www.mysite.biz
Autodtect used HTTP-Host
question: the default is No. I can not make sense of the description. I have a typical website running on a office computer with LAMP setup on it. What's this setting for?
I think now the system has made alterations to internal files that the advice given no longer fix the problem. I've lost display attributes now on the localhost browser.
edit: I'm prepared now to run the s9y setup a 3rd time.
Question: the previous attempt had me changing the Owner of files if there's a preferred owner like s9y suggesting I make the owner "WWW" I've been using my a system "users" name
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: New install: Connection missing layout
Hi!
First errrors seem to have happend because of the wrong read/write permissions of serendipity_config_local.inc.php. Yuo need to ensure that PHP on your server can read and write to that file, choose whatever chown/chmod is necessary for that...
Regards,
Garvin
First errrors seem to have happend because of the wrong read/write permissions of serendipity_config_local.inc.php. Yuo need to ensure that PHP on your server can read and write to that file, choose whatever chown/chmod is necessary for that...
This just refers to the path, so "/serendipity/" would be right, yes.Relative path: path for your browser typically /sererndipity/
question: which browser? a browser from localhost or out on internet, on the internet it would be /http://www/serendipity/
The URL you currently use to access your s9y backend, like http://localhost/serendipity/.URL to your blog: Base URL to your serendipity installation
question: do you mean a typical URL call to the blog out on the internet as in http://www.mysite.biz
Set it to "Yes" if you want to not only access your blog fvrom localhost, but also from internet via yourserver.dyndns.org for example.Autodtect used HTTP-Host
question: the default is No. I can not make sense of the description. I have a typical website running on a office computer with LAMP setup on it. What's this setting for?
That shouldn't be necessary at all, you can change all things from within the configuration.edit: I'm prepared now to run the s9y setup a 3rd time.
That's no problem, just change the ownership of the serendipity files to the user that your Apache/PHP server runs as. Usually that is "www" or "www-run" or "nobody" on most LAMPs. If your's is anything else, that's okay, as long as the s9y files are owned by that user. Well, at least serendipity_Config_local.inc.php.Question: the previous attempt had me changing the Owner of files if there's a preferred owner like s9y suggesting I make the owner "WWW" I've been using my a system "users" name
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: New install: Connection missing layout
3rd new install with the same problem
No s9y errors being posted at this point
Posting attachment of screen shot connection to my website on port 80
The localhost display is perfect! Problem shows up on a connection via the internet
I did a "Simple install" this 3rd time. Then as admin I changed the Autodetect to yes
All folders and files are owner and group apache:apache which is how Apache loads on my server
I'm not touching a thing until I hear back from you. You can try connecting yourself, I'll leave it running
(edit) try going to the admin page, look at the URL generated http://mysite.biz/mysite/index.php?/admin
I've been using an alias of "mysite" up to this point
Settings:
Full Path> /var/www/mysite
upload path> uploads/
relative path> /mysite/
relative template path> templates/
relative upload path > uploads/
URL to blog> http://localhost/mysite/
Autodetect used HTTP-Host yes
index file> index.php
No s9y errors being posted at this point
Posting attachment of screen shot connection to my website on port 80
The localhost display is perfect! Problem shows up on a connection via the internet
I did a "Simple install" this 3rd time. Then as admin I changed the Autodetect to yes
All folders and files are owner and group apache:apache which is how Apache loads on my server
I'm not touching a thing until I hear back from you. You can try connecting yourself, I'll leave it running
(edit) try going to the admin page, look at the URL generated http://mysite.biz/mysite/index.php?/admin
I've been using an alias of "mysite" up to this point
Settings:
Full Path> /var/www/mysite
upload path> uploads/
relative path> /mysite/
relative template path> templates/
relative upload path > uploads/
URL to blog> http://localhost/mysite/
Autodetect used HTTP-Host yes
index file> index.php
- Attachments
-
- Untitled.jpg (45.59 KiB) Viewed 6252 times
Last edited by chiriqui on Sun Jan 17, 2010 9:57 pm, edited 2 times in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: New install: Connection missing layout
Hi!
I get a 404 not found when I open http://earthly.biz/earthly/index.php
If you use http://localhost/earthly/, then in the internet, the path must also be http://earthly.biz/earthly. You cannot, for example use ://localhost/serendipity/ and ://earthly.biz/earthly. Paths must be equa.
Regards,
Garvin
I get a 404 not found when I open http://earthly.biz/earthly/index.php
If you use http://localhost/earthly/, then in the internet, the path must also be http://earthly.biz/earthly. You cannot, for example use ://localhost/serendipity/ and ://earthly.biz/earthly. Paths must be equa.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: New install: Connection missing layout
Nuts this isn't getting me anywhere I'm sorry to say
DID you try http://www.mysite.biz???
don't even try going for the index.php
just call it up like a regular web site!
that should have given you what I'm getting
trying to go the the admin page and YES it concatenates the URL similar to your last message. Where do I correct this?
edit: Oh so you are saying eliminate in the path for "URL to blog" the "localhost"? part of the path. Is that what you are telling me to do? Is this entry suppose to read like a normal URL such as: http://www.mysite.biz?
I did this and same issue as show in the attached screen capture above. try http://earthly.biz
I don't know what you are suggesting about a URL.. I don't want people access the site to have to type in and endless URL .. my apache is setup to accept calls with or with out the www
DID you try http://www.mysite.biz???
don't even try going for the index.php
just call it up like a regular web site!
that should have given you what I'm getting
trying to go the the admin page and YES it concatenates the URL similar to your last message. Where do I correct this?
edit: Oh so you are saying eliminate in the path for "URL to blog" the "localhost"? part of the path. Is that what you are telling me to do? Is this entry suppose to read like a normal URL such as: http://www.mysite.biz?
I did this and same issue as show in the attached screen capture above. try http://earthly.biz
I don't know what you are suggesting about a URL.. I don't want people access the site to have to type in and endless URL .. my apache is setup to accept calls with or with out the www
Last edited by chiriqui on Sun Jan 17, 2010 9:58 pm, edited 1 time in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: New install: Connection missing layout
Hi!
Your s9y is configured to "listen" to /earhtly on localhost. But on www.earthly.biz, s9y runs on the root, thus listens on "/". But it references all its files to /earthly/. That directory does not exist.
So you must take care that both on www.earthly.biz and localhost, both directories are EITHER / or /earthly/. They cannot be different.
That means, your Document-Root for localhost and www.earthly.biz must be the same in your apache config.
Regards,
Garvin
Your s9y is configured to "listen" to /earhtly on localhost. But on www.earthly.biz, s9y runs on the root, thus listens on "/". But it references all its files to /earthly/. That directory does not exist.
So you must take care that both on www.earthly.biz and localhost, both directories are EITHER / or /earthly/. They cannot be different.
That means, your Document-Root for localhost and www.earthly.biz must be the same in your apache config.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: New install: Connection missing layout
ServerAdmin root@localhost
is the only line in the http.config that mentions "localhost" and you want me to change that to what?
root@localhost/earthly that doesn't seem to make sense
After all that's been said I can only conclude that there is some sort of conflict between httpd.conf and s9y's path settings. But I don't understand your advice. I realize you know what you are saying but I can't follow it
Don't forget browser on localhost and www to mysite are accessing correctly but it's not formatted on the internet browser. That means doesn't it, that s9y is finding the virtual path to
<VirtualHost *:80>
ServerAdmin craig@tierrasaltas.net
DocumentRoot /var/www/html/mysite
ServerName http://www.mysite.biz
ServerAlias mysite.biz
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
I need more specificity in your statement here please
URL to blog .... to read http://localhost/
log out and log back in on my servers webserver (where everything in s9y is working) that s9y puts the field back to http://localhost/mysite
you may have no idea how many times I scrutinized you comments
did I mention I've been using these httpd.conf setting for years with s9y. I never made copy of s9y path setting which was my mistake I guess
is the only line in the http.config that mentions "localhost" and you want me to change that to what?
root@localhost/earthly that doesn't seem to make sense
After all that's been said I can only conclude that there is some sort of conflict between httpd.conf and s9y's path settings. But I don't understand your advice. I realize you know what you are saying but I can't follow it
Don't forget browser on localhost and www to mysite are accessing correctly but it's not formatted on the internet browser. That means doesn't it, that s9y is finding the virtual path to
<VirtualHost *:80>
ServerAdmin craig@tierrasaltas.net
DocumentRoot /var/www/html/mysite
ServerName http://www.mysite.biz
ServerAlias mysite.biz
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
I need more specificity in your statement here please
I just discovered in s9y if I edit the lineSo you must take care that both on http://www.mysite.biz and localhost, both directories are EITHER / or /mysite/. They cannot be different.
URL to blog .... to read http://localhost/
log out and log back in on my servers webserver (where everything in s9y is working) that s9y puts the field back to http://localhost/mysite
you may have no idea how many times I scrutinized you comments
did I mention I've been using these httpd.conf setting for years with s9y. I never made copy of s9y path setting which was my mistake I guess
Last edited by chiriqui on Sun Jan 17, 2010 10:01 pm, edited 2 times in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: New install: Connection missing layout
Hi!
Change your httpd.conf to this:
Currently, the virtualhost from above is NOT used when you access your localhost. The Default root seems to be used, which has a "DocumentRoot /var/www/html" (search for that line, it should be somewhere).
By making sure that your localhost also uses the same VHost contianer, you can make sure that the paths match.
Curently, your localhost "listens" on /var/www/html, while your internet vhost "listens" on /var/www/html/earthly. That is not allowed. Both need to use the same.
This is actually independent from Serendipity, so if you have trouble understanding, you might want to consult an apache-specific forum on how to configure a VHost so that it is the same for localhost and www...
HTH,
Garvin
Change your httpd.conf to this:
Code: Select all
<VirtualHost *:80>
ServerAdmin craig@tierrasaltas.net
DocumentRoot /var/www/html/earthly
ServerName www.earthly.biz
ServerAlias earthly.biz
ServerAlias localhost
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
By making sure that your localhost also uses the same VHost contianer, you can make sure that the paths match.
Curently, your localhost "listens" on /var/www/html, while your internet vhost "listens" on /var/www/html/earthly. That is not allowed. Both need to use the same.
This is actually independent from Serendipity, so if you have trouble understanding, you might want to consult an apache-specific forum on how to configure a VHost so that it is the same for localhost and www...
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: New install: Connection missing layout
With your addition
From what you are saying I guess the only option is for me to run s9y setup from a browser on www. This was not the case in the past when I ran s9y. I've run s9y for 4 or 5 yrs and I know I had it accessible from localhost and www and fully functional I might add (not with lost formatting) which drove me to submitting this tread in the first place.
I guess most of s9y users are posting/publishing their blogs on provider systems where they "have" to access them via www. That is not the case for me.
I suspect that with in s9y (even though I was connecting to the blog on www) that there are now path configurations being stored in the database or some sort of history file that s9y uses after setup with path instructions where the html layout cascading scripts files reside. Consequently having setup s9y from localhost has assigned path descriptions that don't function from a www access point
on www and from localhost the page came up a blank page with no error statementsServerAlias localhost
From what you are saying I guess the only option is for me to run s9y setup from a browser on www. This was not the case in the past when I ran s9y. I've run s9y for 4 or 5 yrs and I know I had it accessible from localhost and www and fully functional I might add (not with lost formatting) which drove me to submitting this tread in the first place.
I guess most of s9y users are posting/publishing their blogs on provider systems where they "have" to access them via www. That is not the case for me.
I suspect that with in s9y (even though I was connecting to the blog on www) that there are now path configurations being stored in the database or some sort of history file that s9y uses after setup with path instructions where the html layout cascading scripts files reside. Consequently having setup s9y from localhost has assigned path descriptions that don't function from a www access point
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: New install: Connection missing layout
Hi!
Hm, it depends on your actuall full config on whether "localhost" does not work as a VHost. Probably because your default host runs on localhost, so you need to make your global DocumentRoot match your VHost root.
If you installed s9y from the WWW, that would work, but then it would not work as localhost.
It is possible to make those two work, as long as the path is the same in your setup/apache. I don't know how else I can describe that to you, I've tried all I can
Regards,
Garvin
Hm, it depends on your actuall full config on whether "localhost" does not work as a VHost. Probably because your default host runs on localhost, so you need to make your global DocumentRoot match your VHost root.
If you installed s9y from the WWW, that would work, but then it would not work as localhost.
It is possible to make those two work, as long as the path is the same in your setup/apache. I don't know how else I can describe that to you, I've tried all I can
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: New install: Connection missing layout
I ran the install from a www connection and now this problem seems to be resolved.
did notice that the picture resize feature didn't store the re-size don't know what that's about.
but otherwise got s9y working
thanks for your support
did notice that the picture resize feature didn't store the re-size don't know what that's about.
but otherwise got s9y working
thanks for your support