I’m trying to deploy a site that I built locally on my mac. For some reason when I activate the Roots Theme, it only shows the HTML and none of CSS. I transferred all of the files to my digital ocean server and setup the vhost like so:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName 192.241.142.24/payroll
ServerAlias 192.241.142.24/payroll
DocumentRoot /var/www/payroll
<Directory />
Options FollowSymLinks
AllowOverride All.
</Directory>
<Directory /var/www/payroll>
Options Indexes FollowSymLinks MultiViews
AllowOverride All.
Order allow,deny
allow from all
</Directory>
</Virtual Host>
I also have the .htaccess setup using the default WP config
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
So I can’t tell why the Roots Theme isn’t loading correctly. I’m beginning to think the only way around this is to deploy with capistrana but I just wanted to make sure I wasn’t missing anything first.
|File does not exist: /var/www/app, referer: http://192.241.142.24/payroll/
[error] [client 173.74.49.22] File does not exist: /var/www/app, referer: http://192.241.142.24/payroll/
[error] [client 173.74.49.22] File does not exist: /var/www/app, referer: http://192.241.142.24/payroll/
I’m still getting the hang of debugging server stuff but obviously this is the wrong path, it’s missing my “payroll” project directory.
My theme directory is properly named too. Everything works locally, it’s just when I put it on the server that I have issues. And yes I do get 404 errors when I try to visit other pages.
Doesn’t seem like this has anything to do with Bedrock, either. Does a normal WP installation work okay? Boils down to your webserver configuration not being setup correctly.
Yes normal WP installation works, I just changed my permalinks structure back to default and now I can get to other pages using the TwentyFourteen theme. But the Roots theme is still appearing inactive. http://imgur.com/vFDZ7gP
We’re thinking this might be an issue with Bedrock and subdirectory installs. This thread has a similar setup and maybe the same problem: Broken Theme Directory
I put my theme in the /wp/wp-content/themes/ directory and that got roots to work. Now I’m just having issues with uploads, I changed the uploads directory from /app/uploads/ to /wp/wp-content/uploads/ and It’s still not uploading media because of permissions issues. I chmod 777 everything in frustration and still no success.
I’m going to try a regular wordpress install and then just pull down the roots theme and see if that will suffice.
Just to clarify, putting the theme in /wp/wp-content/themes/ is good for debugging purposes, but not a real solution. Nothing should be modified in wp since it’s managed by Composer. So if there is an issue with Bedrock, it will be fixed.
Unless I missed something, why are you changing the uploads path? The default is app/uploads and should stay that way, because once again, nothing should modify wp/.
I think I had the same problem with my install, and after a lot of trying I found out that my Apache Rewrite module was not enabled. This is what fixed my problem finally:
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart
ls /etc/apache2/mods-enabled/php*