GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress and suPHP (https://gfy.com/showthread.php?t=1072653)

3xmedia 06-26-2012 01:51 AM

Wordpress and suPHP
 
On two of my hosts (VPS, Liquidweb and Servint) I can't get wordpress media upload working (as well as wordpress/plugins auto update):

Quote:

"Unable to create directory /home/xxxxx/public_html/wp-content/uploads/2012/06. Is its parent directory writable by the server?"
Host's recommended method for solving this issue is to enable suPHP. And yes, it's working when I run suPHP. However, suPHP requires more server resources. Is this the only solution? Well, I don't consider chmod 777 or turning off PHP safe mode as a solution. Thanks!

AdultEUhost 06-26-2012 02:14 AM

php safe mode is deprecated since 5.3
http://php.net/manual/en/features.safe-mode.php

you should upgrade your php first if you are concerned about security

I would advice suphp, especially with wordpress which get hacked a lot
Your normal sites can still run mod_php

3xmedia 06-26-2012 03:17 AM

Thanks, actually I run only wordpress on those accounts.

Brujah 06-26-2012 05:08 AM

Change the owner of wp-content to apache or whatever is required to allow you to upload images. Note: this may not let you modify or delete any of those files through FTP later.

If that doesn't work because of safe mode, you're stuck with using FTP to do all your uploads manually.

careerbuilder 06-26-2012 05:56 AM

imho

create a new user who has apache and ftp permissions then

chown the new user

is what you need., i had the same issue., you most likely cant update wordpress too.

raymor 06-26-2012 07:32 AM

You are correct suPHP is the WRONG answer. suPHP is the same as chmodding ALL of your files 777 - it let's all scripts write anywhere they want. Stupid. Very stupid.

Along with chmodding that directory (and only the required directory) 777, use a <Directory> entry outside of that directory to lock it down - "deny from all" if possible, at least turn off PHP for that directory.

If you want to get fancy, you can bind mount the directory noexec.

3xmedia 06-26-2012 01:41 PM

Thanks guys for your advices.

fris 06-26-2012 02:24 PM

they probably have nobody/nobody as the apache user


All times are GMT -7. The time now is 07:47 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123