Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 13, 2008, 03:00:15 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Problems with VPS Configuration for Joomla  (Read 598 times)
Tertullian
Newbie
*
Offline Offline

Posts: 2


« on: March 19, 2008, 02:47:35 PM »

I am a web desiger and purchased a VPS account a few months ago so that the server could be set up optimally for running Joomla sites. But I have not yet found the solution to configuring the server properly for Joomla hosting. The problems I have encountered have been variously addressed in this Forum and on other sites, but I do not have the skill in using Linux + Apache + PHP to configure the server. I have called numerous times, read numerous posts, and bought a few books but still have not found a way or someone who could solve my problem.   Confused

The problem, as far as I can understand it, seems to be that Apache owns certain files/directories and FTP (me) owns other files/directories. Joomla is therefore confused about accessing certain files/directories. When I upload the Joomla script via FTP to the VPS server it shows that the files are not writable by Joomla during installation. Changing CHMOD to 777 creates security problems. Other problems which result from this situation have to do with installing components in Joomla or templates.
 
I would like to find a solution to configure the VPS server properly so that I can upload Joomla and not worry about the complexities of permissions  and ownership. I assume this is possible. Is there some method, PHP setup or script to make files/directories owned by both Apache and me. I read a little about suPHP but do not have any background with this. The whole issue bears strongly on security. I would like the best security as well as full access.

I have run Joomla on shared hosting accounts with Lunar Pages with no problems. What is different about how the VPS is set up and the shared accounts? Is there any way that the way in which the shared sites were configured could be done with my VPS account.

References:
http://www.joomla.org/
http://forum.joomla.org/viewtopic.php?t=121470
http://www.lunarforums.com/lunarpages_vps_hosting/problems_with_file_permissions-t44260.0.html
http://www.lunarforums.com/lunarpages_dedicated_web_hosting/server_upgrade_caused_access_errors_with_php_scripts-t40639.0.html

Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1058



« Reply #1 on: March 19, 2008, 10:11:43 PM »

Hi,

Our shared servers use suPHP to run PHP scripts. It appears to me that the best solution for you will be installing it on your VPS as well. suPHP makes PHP scripts to be executed with the user account permissions along with some other security features it adds. This will allow it to have all the access to the files you upload as they will be owned by the same user. You can review step 18 from the howto by the link below on how to setup suPHP:

http://www.web-hosting-control-panel-addons.com/description.php/HOW-TO_setup_a_PLESK_Dedicated_Server/6/

Also, Lunarpages admin can setup it for your for $75/hour assistance fee.
Logged

Kind Regards,
Vlad Artamonov
Tertullian
Newbie
*
Offline Offline

Posts: 2


« Reply #2 on: March 21, 2008, 11:23:42 AM »

Thanks for the reply. This is one of the solutions that I read about before but do not have the expertise to set it up myself. For my own reference I am copying part of your link above:

Quote
18. mod-suPHP (still experimental on PLESK to work 100% ok). A lot of people have problems with different PHP softwares like Joomla, different Gallery softwares, especially where need to upload pictures. Why? Because now in a new settings, PHP will work as apache:apache user and any files uploaded via a web interface will get this user rights. Any files uploaded via FTP clients, will get the domain ownership. SO, if you for example want to get all picture files added via WEB INTERFACE, you cannot download or overwrite via FTP because the file rights. Also on install a lot of people need to setup folders to 777 rights to uload in it. So seems the mod_suPHP solution is nice and working with the following settings.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM