XF 1.3 Ubuntu 14.04 LTS and Xenforo

TouchFish

New member
So I had to move my forum today from one host to the other, this host is running ubuntu 14.04. I set up apache 2.4.7, php, mysql and ran the test script and everything verified ok.

The front page of the site comes up fine and im able to load the admin page but when clicking on a form link I get a

Code:
The requested URL /forums/announcements/ was not found on this server.

apache log says

Code:
199.27.128.81 - - [04/Sep/2014:18:57:48 +0000] "GET /forums/announcements/ HTTP/1.1" 404 522 "http://forums.example.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"

note, i changed the domain name since we are not up yet..

I also make sure mod rewrite is enabled.
 
Last edited:
Ok just thought I would share this since with apache 2.4.7 a few things have changed. Since I started with scratch on the vhost file by copying their demo one it was missing some <Directory> stuff along with whats in it, adding that back in fixed my issue..

here is an example of my vhost for xenforo, im not 100% sure if this is the proper config for it but works for me.

Code:
<VirtualHost *:80>
        ServerName forums.touchfactor.com
        ServerAdmin support@touchfactor.com
        DocumentRoot /var/www/html
      
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /var/www/html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
      
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Some other things to note with 2.4.7

  • vhosts files need a .conf extension now
  • document root is now /var/www/html instead of /var/www
 
Back
Top Bottom