Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th December 2013, 19:13
stefan@martolvan.is stefan@martolvan.is is offline
Junior Member
 
Join Date: Nov 2013
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Apache unable to write to jailed web dirs

Hi I just set up an server according to the Debian+ISPConfig3 instructions.
Most all is well I found out how to make WordPress work in the forums.
I also have setup Magento and SugarCRM that all struggle with the same problem.
They all need to write to some directories as Apache and I really would like to be able to let these php systems write to directories still owner by customer, but apache able to work normally and write to directories as needed.
Can this be done or do I need to figure out all individual permission changes for all customers and web apps?

cheers Stefan

Last edited by stefan@martolvan.is; 6th December 2013 at 19:14. Reason: spelling
Reply With Quote
Sponsored Links
  #2  
Old 7th December 2013, 12:09
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 922
Thanks: 16
Thanked 259 Times in 206 Posts
Default

Change the website settings php mode to fast-cgi.
This should solve the issues as apache then writes files as the web user.
__________________
Marius Cramer

pixcept KG
Reply With Quote
The Following User Says Thank You to Croydon For This Useful Post:
stefan@martolvan.is (9th December 2013)
  #3  
Old 9th December 2013, 10:37
stefan@martolvan.is stefan@martolvan.is is offline
Junior Member
 
Join Date: Nov 2013
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks but site is already in Fast CGI mode.
are there some permissions that should belong to someone else than the user ?
Reply With Quote
  #4  
Old 9th December 2013, 10:41
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,768
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Yo have to enable "suecec"in the site, so that the scriptsrun under the web user of the site and are able to write to the "web" directory of the website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 9th December 2013, 11:35
stefan@martolvan.is stefan@martolvan.is is offline
Junior Member
 
Join Date: Nov 2013
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

the site settings are:
Domain tab:
server: isp.config.server
Client: my client1
ipv4-Addr: *
domain: shop.mydomain.is
Hardisk Quota: -1 Mb
Traffic Quota: -1 Mb
CGI: 0
SSI: 0
Perl: 0
Ruby: 0
Python: 0
SuExec: 1
Own Error Doc: 1
Auto subdomain: None
SSL: 0
PHP: Fast-CGI
PHP Version: Default
Active: 1
Other tab are default except under SSL tab county is set to my country.

So SuExec is on still that web will not upload new logo or other stuff.
I had to change in WP the owner of the content dir to be able to upload modules etc. but there are more directories.

Regards Stefan
Reply With Quote
  #6  
Old 9th December 2013, 11:41
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,768
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Plesae post the output of:

ls -la /var/www/yourdomain.tld/web/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 9th December 2013, 16:30
stefan@martolvan.is stefan@martolvan.is is offline
Junior Member
 
Join Date: Nov 2013
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Here is the output from:
ls -la of the webdir
drwxr-xr-x 18 web7 client1 4096 Dec 6 16:40 .
drwxr-xr-x 9 root root 4096 Nov 25 13:39 ..
-rw-r--r-- 1 web7 client1 2834 Nov 25 20:48 api.php
drwxr-xr-x 7 web7 client1 4096 Nov 26 19:26 app
-rw-r--r-- 1 web7 client1 1617 Nov 25 20:48 cron.php
-rw-r--r-- 1 web7 client1 642 Nov 25 20:48 cron.sh
drwxr-xr-x 9 web7 client1 4096 Nov 25 20:48 downloader
drwxr-xr-x 2 web7 client1 4096 Nov 25 13:39 error
drwxr-xr-x 3 web7 client1 4096 Nov 25 20:48 errors
-rw-r--r-- 1 web7 client1 1150 Nov 25 20:48 favicon.ico
-rw-r--r-- 1 web7 client1 5979 Nov 25 20:48 get.php
-rw-r--r-- 1 web7 client1 5667 Nov 25 20:48 .htaccess
-rw-r--r-- 1 web7 client1 4600 Nov 25 20:48 .htaccess.sample
drwxr-xr-x 2 web7 client1 4096 Nov 26 19:21 includes
-rw-r--r-- 1 web7 client1 2674 Nov 25 20:48 index.php
-rw-r--r-- 1 web7 client1 2366 Nov 25 20:48 index.php.sample
-rw-r--r-- 1 web7 client1 6367 Nov 25 20:48 install.php
drwxr-xr-x 13 web7 client1 4096 Nov 25 20:48 js
drwxr-xr-x 11 web7 client1 4096 Nov 25 20:48 lib
-rw-r--r-- 1 web7 client1 10421 Nov 25 20:48 LICENSE_AFL.txt
-rw-r--r-- 1 web7 client1 10679 Nov 25 20:48 LICENSE.html
-rw-r--r-- 1 web7 client1 10414 Nov 25 20:48 LICENSE.txt
-r-xr-x--- 1 web7 client1 1319 Nov 25 20:48 mage
drwxr-xr-x 15 web7 client1 4096 Nov 29 16:50 media
-rw-r--r-- 1 web7 client1 3894 Nov 25 20:48 package.xml
-rw-r--r-- 1 web7 client1 751 Nov 25 20:48 php.ini.sample
drwxr-xr-x 2 web7 client1 4096 Nov 25 20:48 pkginfo
-rw-r--r-- 1 web7 client1 584421 Nov 25 20:48 RELEASE_NOTES.txt
drwxr-xr-x 2 web7 client1 4096 Nov 25 20:48 shell
-rw-rw-rw- 1 web7 client1 6540 Nov 27 09:07 sitemap.xml
drwxr-xr-x 5 web7 client1 4096 Nov 25 20:48 skin
drwxr-xr-x 9 1711 1712 4096 Nov 4 13:12 sqlbuddy
drwxr-xr-x 2 root root 4096 Dec 9 10:28 stats
drwxr-xr-x 2 1711 1712 4096 Oct 28 09:09 theme543
drwxr-xr-x 6 web7 client1 4096 Nov 26 22:20 var

regards
Stefan
Reply With Quote
Reply

Bookmarks

Tags
apache, magento, premissions, wordpress

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Job problem Ispconfig3.0.4.5 cypriot Installation/Configuration 1 4th June 2012 08:38
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
Unable to open ISPConfig Web neu2linux Installation/Configuration 27 25th May 2006 14:09
Apache Web Forwaring mattbrown Server Operation 1 17th May 2006 15:42
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45


All times are GMT +2. The time now is 09:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.