Elxis CMS Forum
Support => General => Topic started by: xmanhattan on May 06, 2008, 11:32:27
-
Hello all,
I am not sure what to classify this problem as but here it is.
I have a linux server that I has multiple test domains including the root. When I installed elxis in test.cxm, I installed it in a subdirectory so that it appeared as test.cxm/elxis/.
I recently created a new install of elxis into the root of example.com so that I could test it on the internet using the database created in test.cxm. I exported that db and then imported into the new.
On the Local network both domains show the site correctly. Both domains use separate ip's 192.168.x.x
I searched through the db to find references to test.cxm and changed them to example.com and changed them in the tables where they are referenced. I am using separate db name extensions, elx_ and eno_.
In the editor, I checked the html and notice that the image was being referenced to test.cxm and not example.com.
<img src="http://test.cxm/images/photos/photoalbum01.jpg" alt="photoalbum01" title="photoalbum01" width="302" height="200" />
When I called example.com through the internet using http://xmanhattan.homelinux.com/ (http://xmanhattan.homelinux.com/) and a system not connected to the local net, the site appears but without images. I checked the code and saw that the images are referenced to the test.cxm site so I logged into admin on example.com to change the image references.
Now the html shows <img src="http://example.com/images/photos/
etc... but no images are appearing.
First, I checked the .htaccess file and rewritebase is set to / for example.com and all files are under /var/www/public_html
Then I checked that all image files and directories have been copied and with proper attributes 777.
I rechecked the db to see if there is any other referencing problem there but did not see any.
Configuration.php is using the eno_ for the db.
So my question is what am I missing?
-
Did you edit the sql file in order to change the URLs before importing them to the other site? If no, you should do so!
-
Hello datahell,
Well, I exported the test db and then edited the sql file which was easier than the way that I did it before.
I should have thought about that.
Then I dropped the tables in the second db and reloaded using the updated sql but this still does not work.
Other ideas?
You can take a look at the site using the link in my previous message if you wish.
Petros
-
At the above link image references to <img src="http://linux.cxm/images/enosi_photos/photoalbum12.jpg" alt="photoalbum12" title="photoalbum12" height="100" width="346">
Are you sure enosi_photos/photoalbum12.jpg exists?
-
Check twice you configuration.php for mistakes!!
and what it is the http://linux.cxm all you files call this domain.
If you can't do it, send to me via pm access for the website.
-
Hello Sirigos,
Sadly yes. The files are in that directory and the owner and group is root.
I usually have a static page in the / area with some images and those always show so I do not believe that my server is the problem. The only thing that I am unsure about is whether the .htaccess file.
The file is as follows and I have not altered the security section:
# Options -Indexes +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^(administrator/|bridges/|cache/|components/|editor/|help/|images/|includes/|language/|mambots/|media/|modules/|templates/|tmpr/) - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
The $mosconfig
absolute path = /var/www/html
live site = http://linux.cxm
The live site is the name of server and domain that I have used at other times for demo on the net.
This site does not have a valid domain name and uses a dynamic ip.
Any other ideas that might help?
-
Just a thought while working on elxis, an additional quick question to the above.
If I create directories under /images to place the images that I intend to use at the site rather than adding them through the image upload, could that possibly create this problem?
Although I uploaded the pictures this way, I still changed their settings to 777.
Petros