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 1 click install problem (https://gfy.com/showthread.php?t=1061384)

_Lush_ 03-16-2012 10:22 AM

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');
?>


fris 03-16-2012 10:38 AM

why are you trying to do it that way?

curious.

_Lush_ 03-16-2012 10:42 AM

trying to upload and unpack tar file in one instance over many different domains.

thought it would be faster

EddyTheDog 03-16-2012 10:53 AM

I do it with the file Manager in CPanel....

fris 03-16-2012 12:25 PM

do you have shell access?

_Lush_ 03-16-2012 04:48 PM

Quote:

Originally Posted by fris (Post 18827787)
do you have shell access?

yes I do

Zverka 03-16-2012 05:09 PM

Quote:

Originally Posted by _Lush_ (Post 18827551)
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

fris 03-16-2012 05:18 PM

Quote:

Originally Posted by _Lush_ (Post 18828303)
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

HomerSimpson 03-16-2012 05:57 PM

hosting with cPanel real 1click install solution...


All times are GMT -7. The time now is 10:17 AM.

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