Wordpress 1 click install problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • _Lush_
    Confirmed User
    • Jul 2005
    • 536

    #1

    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
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #2
    why are you trying to do it that way?

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

    Comment

    • _Lush_
      Confirmed User
      • Jul 2005
      • 536

      #3
      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, 09:44 AM.
      IcQ 50611033

      Comment

      • EddyTheDog
        Just Doing My Own Thing
        • Jan 2011
        • 25433

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

        Comment

        • fris
          Too lazy to set a custom title
          • Aug 2002
          • 55679

          #5
          do you have shell access?
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

          Comment

          • _Lush_
            Confirmed User
            • Jul 2005
            • 536

            #6
            Originally posted by fris
            do you have shell access?
            yes I do
            IcQ 50611033

            Comment

            • Zverka
              Confirmed User
              • Jun 2005
              • 307

              #7
              Originally posted by _Lush_
              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

              Comment

              • fris
                Too lazy to set a custom title
                • Aug 2002
                • 55679

                #8
                Originally posted by _Lush_
                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.

                Comment

                • HomerSimpson
                  Too lazy to set a custom title
                  • Sep 2005
                  • 13826

                  #9
                  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:

                  Comment

                  Working...