HI,
I have a site working on rhel5.11 and I need to transfer it to ubuntu but images point to www.mysite.com:81/sites/default/files/images/ instead of www.mysite.com:81/sdcwa/sites/default/files/images
I am new to Ubuntu, I just do not know what else to do. I tried following certain tutorials but to no effect. I was able to install drupal6 and run it but I am not able to run my drupal 6 site sdcwa.
HELP HELP HELP..........
I have tried setting it on several files but no luck setting.php # $base_url = 'http://www.example.com'; // NO trailing slash! $base_url = 'http://www.mysite.com:81/sdcwa'; // NO trailing slash!
on my .htaccess RewriteBase /sdcwa
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/sdcwa/ RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)$ /sdcwa/index.php?q=$1 [L,QSA] </IfModule>
and 000-default.conf <VirtualHost *:81> # Alias /sdcwa /var/www/html/sdcwa ServerAdminroot@mysite.com DocumentRoot /var/www/html/sdcwa <Directory /var/www/html/sdcwa> Options +FollowSymLinks AllowOverride All Order allow,deny Require all granted Allow from All
</Directory> </VirtualHost>
THANKS!!!
Nestor
On 11/17/14, 1:37 PM, Néstor wrote:
HI,
I have a site working on rhel5.11 and I need to transfer it to ubuntu but images point to www.mysite.com:81/ http://www.mysite.com:81/sites/default/files/images/ instead of www.mysite.com:81/ http://www.mysite.com:81/sdcwa/sites/default/files/images
I am new to Ubuntu, I just do not know what else to do. I tried following certain tutorials but to no effect. I was able to install drupal6 and run it but I am not able to run my drupal 6 site sdcwa.
One option might be to place a symbolic link in the document root named sdcwa pointing to the document root, or make a directory called sdcwa and place a link called sites to document root/sites
HI Richard thanks for reponding.
My sdcwa folder is in the DocumentRoot folder /var/www/ <-- DocumentRoot /var/www/sdcwa <-- Drupal site
It is working but the images are not.
Thnaks again,
Nestor
On Mon, Nov 17, 2014 at 5:14 PM, Richard Damon Richard@damon-family.org wrote:
On 11/17/14, 1:37 PM, Néstor wrote:
HI,
I have a site working on rhel5.11 and I need to transfer it to ubuntu but images point to www.mysite.com:81/ http://www.mysite.com:81/sites/default/files/images/ instead of www.mysite.com:81/ http://www.mysite.com:81/sdcwa/sites/default/files/images
I am new to Ubuntu, I just do not know what else to do. I tried following certain tutorials but to no effect. I was able to install drupal6 and run it but I am not able to run my drupal 6 site sdcwa.
One option might be to place a symbolic link in the document root named sdcwa pointing to the document root, or make a directory called sdcwa and place a link called sites to document root/sites
-- Richard Damon
-- [ Drupal support list | http://lists.drupal.org/ ]
Ok, I had it backwards, you want /var/www/sites to be a link to /var/www/sdcwa/sites
On 11/17/14, 9:37 PM, Néstor wrote:
HI Richard thanks for reponding.
My sdcwa folder is in the DocumentRoot folder /var/www/ <-- DocumentRoot /var/www/sdcwa <-- Drupal site
It is working but the images are not.
Thnaks again,
Nestor
On Mon, Nov 17, 2014 at 5:14 PM, Richard Damon <Richard@damon-family.org mailto:Richard@damon-family.org> wrote:
On 11/17/14, 1:37 PM, Néstor wrote: > HI, > > I have a site working on rhel5.11 and I need to transfer it to ubuntu > but images point to www.mysite.com:81/ <http://www.mysite.com:81/> > <http://www.mysite.com:81/>sites/default/files/images/ instead of > www.mysite.com:81/ <http://www.mysite.com:81/> > <http://www.mysite.com:81/>sdcwa/sites/default/files/images > > I am new to Ubuntu, I just do not know what else to do. I tried > following certain > tutorials but to no effect. > I was able to install drupal6 and run it but I am not able to run my > drupal 6 site sdcwa. > One option might be to place a symbolic link in the document root named sdcwa pointing to the document root, or make a directory called sdcwa and place a link called sites to document root/sites -- Richard Damon -- [ Drupal support list | http://lists.drupal.org/ ]
You should set the DocumentRoot to /var/www/sdcwa (if your Drupal files are under that) and comment out RewriteBase and the like out.
On 18 November 2014 15:38, Richard Damon Richard@damon-family.org wrote:
Ok, I had it backwards, you want /var/www/sites to be a link to /var/www/sdcwa/sites
On 11/17/14, 9:37 PM, Néstor wrote:
HI Richard thanks for reponding.
My sdcwa folder is in the DocumentRoot folder /var/www/ <-- DocumentRoot /var/www/sdcwa <-- Drupal site
It is working but the images are not.
Thnaks again,
Nestor
On Mon, Nov 17, 2014 at 5:14 PM, Richard Damon <Richard@damon-family.org mailto:Richard@damon-family.org> wrote:
On 11/17/14, 1:37 PM, Néstor wrote: > HI, > > I have a site working on rhel5.11 and I need to transfer it to ubuntu > but images point to www.mysite.com:81/ <http://www.mysite.com:81/> > <http://www.mysite.com:81/>sites/default/files/images/ instead of > www.mysite.com:81/ <http://www.mysite.com:81/> > <http://www.mysite.com:81/>sdcwa/sites/default/files/images > > I am new to Ubuntu, I just do not know what else to do. I tried > following certain > tutorials but to no effect. > I was able to install drupal6 and run it but I am not able to runmy
> drupal 6 site sdcwa. > One option might be to place a symbolic link in the document root named sdcwa pointing to the document root, or make a directory called sdcwa and place a link called sites to document root/sites -- Richard Damon -- [ Drupal support list | http://lists.drupal.org/ ]-- Richard Damon
-- [ Drupal support list | http://lists.drupal.org/ ]
It sounds like Drupal is storing absolute URL's. First thing's first, clear Drupal's cache! If that doesn't fix it, then turn on CSS and JS aggregation. If you do that and CSS and JS load, then you got something rewriting image URL's in your Drupal (you don't have the CDN module installed by chance, do you?). Also where are the images coming from? Are they inside of nodes? If so, then there's a chance the images are inserted into the body field using absolute URL's, which some modules do and/or have settings for. If that's the case, then the fix is either doing a MySQL search and replace on the affected fields, or a custom filter to preg_replace the URLs.
Jamie Holly http://hollyit.net
On 11/17/2014 1:37 PM, Néstor wrote:
HI,
I have a site working on rhel5.11 and I need to transfer it to ubuntu but images point to www.mysite.com:81/ http://www.mysite.com:81/sites/default/files/images/ instead of www.mysite.com:81/ http://www.mysite.com:81/sdcwa/sites/default/files/images
I am new to Ubuntu, I just do not know what else to do. I tried following certain tutorials but to no effect. I was able to install drupal6 and run it but I am not able to run my drupal 6 site sdcwa.
HELP HELP HELP..........
I have tried setting it on several files but no luck setting.php # $base_url = 'http://www.example.com'; // NO trailing slash! $base_url = 'http://www.mysite.com:81/sdcwa'; // NO trailing slash!
on my.htaccess RewriteBase /sdcwa
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/sdcwa/ RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)$ /sdcwa/index.php?q=$1 [L,QSA]
</IfModule>
and 000-default.conf <VirtualHost *:81> # Alias /sdcwa /var/www/html/sdcwa ServerAdminroot@mysite.com mailto:ServerAdminroot@mysite.com DocumentRoot /var/www/html/sdcwa <Directory /var/www/html/sdcwa> Options +FollowSymLinks AllowOverride All Order allow,deny Require all granted Allow from All
</Directory> </VirtualHost>
THANKS!!!
Nestor