Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Got a brand new server running Ubuntu12
I have 2 wordpress-sites, 1 newly installed with wp 3.4.1, one copied from other server running wp 3.2.1
Apache 2.2.22 & pure-ftpd-mysql
Problem is I can't install add-ons, also can't upgrade the older wp?
The installation starts, package is downloaded and unpacking starts.
I can see files being created under wp-content/upgrade/ until suddenly it stops.
Only message is like "could not copy file . /wp-content/upgrade/wp-table-reloaded.tmp/wp-table-reloaded/languages/wp-table-reloaded-ga_IR.mo"
I have tried with many add-ons, same result.
All site belongs to my user & group, in desperation I tried setting permission 777 on whole site but no difference.
It shouldn't be a permission problem as I can see the files being created? Unfortunately I can't find any other error message than the above ("it didn't work" - great, thanks for info...)
I found a plugin "ftp-upgrade-fix", I manually downloaded & unzipped it just to be told that the installation problem is already fixed in my version...
Apache doesn't tell me anything!
Unbelievable, I know, but that's a fact.
The server is new so I'm the only one using it right now. I watch both error.log and access.log in 2 terminals with "tail -f /var/log/apache2/error.log / access.log"
error.log does not output anything, access.log gives this one line:
Before trying that, I would suggest you check your file permissions. If the files are unpacked, but can't be copied into place, it may well be a permissions problem with the target directories/files.
I have checked the file permissions!
As I wrote in first post, I also chmoded the whole directory tree to 777, no difference.
The files & directories under wp-content/upgrade are created during installation, then everything is deleted.
But yes I could go the manual way, I probably would if it was a problem with just a few packages.
But it's everything - upgrading, plug-ins & themes just can't be installed.
And no decent error messages at all!
I think I'll go for Joomla, have used it a few times never any problems like this.
pingu, joomla wordpress and all the other open source CMS systems are very similar. I think this may be related to your open_basedir value for php. If you do a phpinfo page what is your open base dir value set to?
Well that would be your issue, you need to set your open_basedir to the folders that you want PHP to be able to write and have access to.
Thanks for trying, but this can't be the case.
1) open_basedir is off by default, not set means it's not used. mediatemple.net might use it, but, AFAIK, by default its off.
2) The only directory that exists before installation is wp-content/upgrade/.
When installation is started directories are created and files are extracted to subdirs of wp-content/upgrade.
This means apache / php can write to wp-content/upgrade.
Check those lines from syslog posted earlier, example:
"wp-content/upgrade/wp-table-reloaded.tmp/wp-table-reloaded/languages/datatables/lang-pt_PT.txt uploaded"
And I have checked during installation, files and directories are created, it's not a faulty log-message the files & directories are there.
3) I tried to manually download a package and unpack it under wp-content/upgrade. I set the permissions to rwXrwXrwX recursively. Then I tried installing via Wordpress interface and guess what? When installation failed all these files & directories were deleted!
Well, I'm pretty desperate so I'll still try it. Hopefully enabling open_basedir won't wreak havock on the other websites housed on this server...
Thanks for trying, but this can't be the case.
1) open_basedir is off by default, not set means it's not used. mediatemple.net might use it, but, AFAIK, by default its off.
No it is not. The default value is "NULL" which will inherit the current working directory as your open_basedir value. So if your php script is at /var/www/html/site1/script.php, script.php will only be able to access /var/www/html/site1/.
HA! Finally I got it working!
Tried a few things, asked in WP forums also.
It's like this:
WP checks if it has write access to complete file system for the site. If it has, meaning that if the user the webserver runs as ('www-data' in my case) owns all files, then WP downloads and installs directly.
If WP does not have write access to whole site user is asked for ftp-credentials.
This should work, but apparently in my case there's something wrong with ftp.
Now WP actually only needs write-access to wp-content to be able to install themes etc, and I do not want apache to have complete write-access to all files
So I found a workaround on cpanel forum (thanks shacker23 whoever you are):
Code:
Put this in the user's wp-config.php file:
define('FS_METHOD', 'direct');
And then make wp-content group-writable and group-owned www-data.
TADA! Direct installation works fine!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.