We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Migration | Forum

matt
matt Jun 2 '15
Hi,

I am having some trouble with migration to a different server. I am moving my oxwall from a shared host to a dedicatd centos server.

With webmin for a GUI - I have setup a virtual host in apache.

I think I am having trouble with the routing..

we have moved the file system and db into the new server, as a subdomain. And can see the index page of oxwall, but not any other page.

I have mod_rewrite enabled in the apache conf
----------------
    ServerName oxwall.myserver.com
    DocumentRoot /var/www/html/oxwall/
    #Redirect / https://oxwall.myserver.com/

<Directory /var/www/html/oxwall/>
        Options FollowSymLinks
        AllowOverride All
</Directory>
----------------------------

and in the htaccess...

----------------------------

Options +FollowSymLinks
RewriteEngine On

AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
  ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
  ForceType text/css
</FilesMatch>


RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php

----------------------

my config.php has :-

define('OW_URL_HOME', 'https://oxwall.myserver.com/');


and I have tried (but with no luck) to place (in the .htacess)

RewriteCond %{HTTP_HOST} !https://oxwall.myserver.com/$

Can someone please help me figure this out?

Kindest.

Matt
The Forum post is edited by matt Jun 2 '15
matt
matt Jun 2 '15
Trying to get to the admin panel, gives this error....

Not Found

The requested URL /admin was not found on this server.



The Forum post is edited by matt Jun 2 '15
matt
matt Jun 2 '15
Okay, well my apache virtual setup is working properly. If I do a clean install of 1.74 it all works. But my production site, which I am migrating, is currently on 1.73. I can try doing an upgrade, and seeing if my plugins still work with the new core.

But, Can I please get a zip of 1.73 core. So that I can do a fresh install of 1.73?

Thanks!
matt
matt Jun 2 '15
Update - The above is not working. It is simply refusing to rewrite to https - Bizzare.

I have searched the forums, and tried any advice I can find. But nothing is working. Any clues?


ross Team
ross Jun 2 '15
Matt, the issue you have is caused by the htaccess rules you're trying to apply to open your subfolder as a subdomain oxwall.myserver.com


You need to do that not via .htaccess but as a subdomain. You will need create such subdomain in the cpanel and point it to the oxwall subfolder (/oxwall) where the migrated software is. 

matt
matt Jun 3 '15
Hi Ross,

Thanks. I understand. The subdomain points to the /html/oxwall folder. But the constuction of the subdomain in webmin does not (cannot work) as

www.mysite.com/oxwall

only as

oxwall.mysite.com

This is because the public site sits in the root of the server. All other scripts are provided for, only, in the subdomain.

The non secure version of the site works fine

http://oxwall.mysite.com

but not

https://oxwall.mysite.com

So I am assuming that the ssl config is doing something to the rewrite.

I know you guys dont support server setups. I am just confused as to how to get oxwall to play well on a server with a)multiple scripts and b) SSL


So I am perplexed as to how to make this work.
ross Team
ross Jun 3 '15
I'm sorry Matt, you confused me. 

Did you create a subdomain oxwall.mysite.com?

Did you point it to the oxwall subfolder?

I believe "YES" to both questions as your site works under http but your .htaccess condition for the site to work under https breaks the site. Is it correct?

matt
matt Jun 3 '15

Quote from ross I believe "YES" to both questions as your site works under http but your .htaccess condition for the site to work under https breaks the site. Is it correct?

Yes! Thats right.
kalvindarwan
kalvindarwan Dec 21 '23
In case of such problems, though, you might want to engage a reliable auto glass company for effective and long-lasting solutions. Oxnard Auto Glass Repair
James Walter
James Walter Jan 2
Our team of mobile technicians is more than up to the task of diagnosing and repairing any electrical problems you’re having. North Las Vegas On-Site Truck Repair
kunal
kunal Apr 11
Their girls are highly educated and have excellent social standing, most hailing from respectable families while remaining well-mannered and polite. Many even dream of becoming models owing to their sensuous bodies and beautiful features that are well-known throughout society. Most Escorts in New Delhi are professional and well-mannered individuals dedicated to providing outstanding client services. They aim to make you feel special by treating you like royalty and treating you with respect while giving you that coveted girlfriend experience you have always longed for.
Alex Jones
Alex Jones Jul 24
Drug detox centers in Atlanta provide medically supervised detoxification services to help individuals safely withdraw from substances. Drug Detox Atlanta