Hi :)
I followed some tutos and did a search on my issue on google, but no answer found worked for me. I hope you will be able to help me. Here is my configuration :
First, I have installed a LAMP for my PHP projects, so apache2 and mysql are correctly installed. I work in the folder : /home/ME/www (where I put my projects) And then, I linked with a symlink my folder /var/www eg: ln -s /home/pixy/www/project1 /var/www/project1
And I have correctly added a vhost (in sites-available, and a2ensite…) This PHP project correctly works on my subdomain : project1.pixy-media.com (don’t try, project1 is fake for the example ^^)
I also would like to run my Rails (4) applications, so I followed the tuto on Digital Ocean to install passenger with apache2. I think the compilation succeed, I had no problem (I think…) I also put the three lines given at the end of the install at the end of my apache2.conf file
Then I put a new project on my workspace : /home/pixy/www/blog
I want to access to this application with a vhost, with the subdomain : blog.pixy-media.com
I tried a lot of configurations, but no one worked =( I tried to :
And others but I don’t remember
I pastebin you my actual configurations :
I linked as symlink : /home/pixy/www/blog /var/www/rails/blog
You can try, it doesn’t work… What is wrong/missing with this config ? Do I have to a2ensite the config ? (I think I did it) Do I have to put the PassengerAppRoot ?
I work with ruby 2 and rails 4
If you have any question on my config I forgot to tell here ask me.
Many thanks in advance for your help ! :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Check apache’s error logs for errors: <br> <br><pre>tail /var/log/apache2/error.log</pre> <br>Do you see anything?
I believe apache runs as www-data by default so you will have to allow www-data to read your home dir/website’s files. <br> <br><pre>chgrp -R www-data /home/pixy/www</pre> <br><pre>chmod -R g+r /home/pixy/www</pre> <br> <br>Let me know if that fixes it.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.