Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-16-2012, 10:22 AM   #1
_Lush_
Confirmed User
 
_Lush_'s Avatar
 
Industry Role:
Join Date: Jul 2005
Location: GDL Jal.
Posts: 536
Wordpress 1 click install problem

I created a php file to unpack a tar file containing wordpress. here is the code below. Problem is after running php file it is not unpacking the files under the user associated with the domain. I can only modify files or folders by logging in as super user. Anybody have better code snippet that will fix this problem.

Code:
<?php
exec('tar -xzf wordpress.tar.gz');
?>
__________________
IcQ 50611033
_Lush_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-16-2012, 10:38 AM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,220
why are you trying to do it that way?

curious.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-16-2012, 10:42 AM   #3
_Lush_
Confirmed User
 
_Lush_'s Avatar
 
Industry Role:
Join Date: Jul 2005
Location: GDL Jal.
Posts: 536
trying to upload and unpack tar file in one instance over many different domains.

thought it would be faster

Last edited by _Lush_; 03-16-2012 at 10:44 AM..
_Lush_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-16-2012, 10:53 AM   #4
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,035
I do it with the file Manager in CPanel....
__________________
-

Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels
EddyTheDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-16-2012, 12:25 PM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,220
do you have shell access?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-16-2012, 04:48 PM   #6
_Lush_
Confirmed User
 
_Lush_'s Avatar
 
Industry Role:
Join Date: Jul 2005
Location: GDL Jal.
Posts: 536
Quote:
Originally Posted by fris View Post
do you have shell access?
yes I do
_Lush_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-16-2012, 05:09 PM   #7
Zverka
Confirmed User
 
Zverka's Avatar
 
Join Date: Jun 2005
Location: EU
Posts: 278
Quote:
Originally Posted by _Lush_ View Post
I created a php file to unpack a tar file containing wordpress. here is the code below. Problem is after running php file it is not unpacking the files under the user associated with the domain. I can only modify files or folders by logging in as super user. Anybody have better code snippet that will fix this problem.

Code:
<?php
exec('tar -xzf wordpress.tar.gz');
?>
You probably run php as apache mod so everything is owned to apache after unpacking it.
You need after that to chowm files and dirs back to user

chown -R user:user /home/path_to_user_account/path_to_wp_folder

I'm not expert for php but I doubt php can do it.

You need to issue that command as super user for every instance
you unpacked or make shell script for it
__________________
Zverka is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-16-2012, 05:18 PM   #8
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,220
Quote:
Originally Posted by _Lush_ View Post
yes I do
if you have subversion installed you could just issue the command

Code:
svn co http://core.svn.wordpress.org/tags/3.3.1 .
from inside the directory of the side you wanna install
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-16-2012, 05:57 PM   #9
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
hosting with cPanel real 1click install solution...
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.