VM Installs Joomla but ftp fights Apache owner

7 posts / 0 new
Last post
#1 Tue, 05/13/2008 - 23:11
JerryJaz

VM Installs Joomla but ftp fights Apache owner

I am on the curent Linux CentOS set up with VM Pro. I used Install Scripts to add Joomla 1.5 and that went fine (after adding PHP and a few other VM requests). Everything is going smooth until I try to change a template I just added through the Joomla admin installer. I can't change any of the directories.

When I get info about them I discover all the VM Joomla files are owned by the designated server, but whatever I install through the Joomla Admin defaults to apache as the owner. Because Joomla installs of various components requires lots of housekeeping as orchestrated via the installed package's xml file, I can't perform a simple upload through VM's file manager.

I cannot change the Joomla Adnin ftp which is turned off. When I try with correct password and user (super admin) I am rejected with permission denied.

So I went through the VM admin through the file manager and found the installed template and got info, I change the owner to my server's owner (which appears on the other not-installed-through-Joomla files) but it won't complete the command because: permission denied.

So I am stumped as what to do next to regain these permissions for Joomla admin.

Thanks in advance for all excellent chin scratching/forehead slapping solutions.

Be well,

Jerry

Wed, 05/14/2008 - 00:34
Joe
Joe's picture

Was this system installed via the install.sh automated install script, or manually?

In either case, you'll want to switch your system over to executing PHP using mod_fcgid and suexec--then all files will be owned by, and all scripts will execute as, the user that owns the account.

This can be found in "Website Options" in the "Server Configuration" menu for each of your virtual servers. You'll also want to make this the default in your Server Template(s).

If your system was installed via install.sh, I've got some troubleshooting to do, as this should be the default on a newly installed system.

--

Check out the forum guidelines!

Wed, 05/14/2008 - 07:39 (Reply to #2)
JerryJaz

Thanks for your fast reply.

VM was installed using the install.sh. And I then upgraded to VMP from within VM after purchasing the license.

I see in Website Options

Run CGI as domain owner is checked YES
(is this the FCFId of which you spoke? I'm trying to secure my newbie status here)

PHP script execution mode is Apache mod_php

Write logs is Off

As for security between servers, I will be the owner of all the servers for the time being.

Wed, 05/14/2008 - 13:55 (Reply to #3)
JerryJaz

Here is the VM template setting for creating the servers

Wed, 05/14/2008 - 13:59 (Reply to #4)
JerryJaz

Sorry, the image was too large and I would not edit the last post. [img size=499]http://www.virtualmin.com/components/com_fireboard/uploaded/images/VMSer...

Wed, 05/14/2008 - 14:04 (Reply to #5)
Joe
Joe's picture

The best option is FCGId (run as virtual server owner). This choice is fast (roughly the same as mod_php), and secure as it runs under suexec, and scripts won't mess up permissions and ownership the way mod_php scripts can).

--

Check out the forum guidelines!

Wed, 05/14/2008 - 15:50 (Reply to #6)
JerryJaz

Aha1

Two interesting things happen:

When I set the PHP script execution mode to CGI wrapper -save- and hit the site with Firefox I get a what application would you like to open this with

And when I go to the server template to set it ti CGI wrapper it returns this:

Failed to save server template : PHP exection via fcgid requires the Apache mod_fcgid module

Does this sound like and incomplete install? Here is a snapshot of the System Settings / Features and Plug-ins

[img size=197]http://www.virtualmin.com/components/com_fireboard/uploaded/images/Syste...

Topic locked