Koozali.org: home of the SME Server

WordPress on SME, cannot upload media

Offline LANMonkey

  • ****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
WordPress on SME, cannot upload media
« on: February 15, 2012, 07:55:17 PM »
I have WordPress installed on several iBays.  I have the latest version, 3.3.1 and an older version.  In order to upload media for WordPress use, a folder must be available to it.  The latest version has a folder wp-content/uploads and I added that, but I am still unable to upload media to my library.  There is a full URL path entry available, but I am clueless as to what that might be.

Is this an SME issue or is it a WordPress issue?  If the former, what can I do about it?

Offline calisun

  • *
  • 601
  • +0/-0
Re: WordPress on SME, cannot upload media
« Reply #1 on: February 20, 2012, 07:37:31 AM »
See my step-by-step instructions, see if they help:
http://wiki.contribs.org/User_talk:Calisun
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline calisun

  • *
  • 601
  • +0/-0
Re: WordPress on SME, cannot upload media
« Reply #2 on: March 27, 2012, 07:39:39 AM »
Hey LANMonkey, just wondering if you were able to get your wordpress working by using my step-by-step instructions?
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline LANMonkey

  • ****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: WordPress on SME, cannot upload media
« Reply #3 on: March 27, 2012, 05:22:03 PM »
Thank you for your post, but I haven't tried it yet.  But I have realized that my installation of WordPress was not by way of a contrib.  Since there is a contrib available, I'll set aside the problem until I actually try the contrib and find the problem again.  This is a low priority problem.  I have hoped to use WordPress more, but every time I try something new, I find new obstacles and limitations.  It's proven itself useful, but only to a point.

Offline Knyte

  • *
  • 39
  • +0/-0
    • knyte.org
Re: WordPress on SME, cannot upload media
« Reply #4 on: April 13, 2012, 07:25:43 PM »
I had to edit php.ini to specify a /tmp folder, then ensure said folder had the correct permissions.

Working now!
SME 8.1 (currently restoring to SME 9.2) running in ESXi 5.5

Offline calisun

  • *
  • 601
  • +0/-0
Re: WordPress on SME, cannot upload media
« Reply #5 on: April 14, 2012, 01:24:24 AM »
I had to edit php.ini to specify a /tmp folder, then ensure said folder had the correct permissions.

Working now!

Specifying below command did not work for you?
For me, both work, below command and specify a /tmp folder in php.ini.

But using below command is much safer solution since each iBay will have its own temp folder, as opposed to specifying a /tmp folder in php.ini where all iBays and all php programs will share a /tmp folder.

-------- clip from http://wiki.contribs.org/User_talk:Calisun
--------------------------------------------------------------------------------------------------------------------------------------------
2) Issue a following command to enable PHP temporary upload folder in that iBay. (Change "iBay" to the name of your ibay and remove quote marks)

   db accounts setprop "iBay" PHPBaseDir /home/e-smith/files/ibays/"iBay":/tmp
   signal-event ibay-modify "iBay"
--------------------------------------------------------------------------------------------------------------------------------------------

« Last Edit: April 14, 2012, 01:26:22 AM by calisun »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline Knyte

  • *
  • 39
  • +0/-0
    • knyte.org
Re: WordPress on SME, cannot upload media
« Reply #6 on: April 14, 2012, 03:33:04 AM »
Nope, that did not work, partly because WordPress is not installed in an iBay (I believe I used a wget and a yum localinstall), and partly because I wasn't sure how to adapt your command to my particular scenario.

It installed to /opt/wordpress but changing the path in your command didn't seem to work, and by that I'm just reporting what happened.  This was about a week ago, and late at night, so I wasn't together enough at the time to document it  :-?
« Last Edit: April 14, 2012, 03:36:52 AM by Knyte »
SME 8.1 (currently restoring to SME 9.2) running in ESXi 5.5

Offline calisun

  • *
  • 601
  • +0/-0
Re: WordPress on SME, cannot upload media
« Reply #7 on: April 15, 2012, 07:01:36 AM »
....  installed in an iBay (I believe I used a wget and a yum localinstall), ....

It installed to /opt/wordpress ...

aha, that explains it, the command only works on iBay installation, not sure how to make it work on /opt/wordpress ... installation.
You did not want to install a wordpress from a contrib http://wiki.contribs.org/Wordpress? Contrib  also installs in /opt/wordpress folder and it also sets up everything for you automatically.

And if the the wordpress version in the contrib is not the latest version, all you need to do is i follow upgrade instructions from wordpress site http://codex.wordpress.org/Upgrading_WordPress.
« Last Edit: April 15, 2012, 07:24:58 AM by calisun »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline Knyte

  • *
  • 39
  • +0/-0
    • knyte.org
Re: WordPress on SME, cannot upload media
« Reply #8 on: April 15, 2012, 07:05:32 AM »
...tried, but got an error "nothing to install".  Pretty sure I failed to correctly add the repo.

Would WordPress be better suited in an iBay?  It might be nice to see /blog or something other than /wordpress in the URL, but in the end I'll take whatever works :)
« Last Edit: April 15, 2012, 07:10:32 AM by Knyte »
SME 8.1 (currently restoring to SME 9.2) running in ESXi 5.5

Offline calisun

  • *
  • 601
  • +0/-0
Re: WordPress on SME, cannot upload media
« Reply #9 on: April 15, 2012, 07:36:11 AM »
...  It might be nice to see /blog or something other than /wordpress in the URL, but in the end I'll take whatever works :)

If you install in an iBay, your wordpress install will be your URL directly, no need for /wordpress or /blog after your URL.

But if for some reason you need to have wordpress installed in /opt/ folder and you want to access it from URL/blog, I believe you just need to change where you install it from /opt/wordpress  to /opt/blog and you will be able to access it  URL/blog

Also, LANMonkey and Knyte,
you both mentioned that wordpress contrib is not available. SME8 is still in Beta, so there are no contribs for it yet, all the listed contribs are for SME7. In order to make Contribs work on SME8, see here:
http://wiki.contribs.org/SME8.0_Contribs_QA
« Last Edit: April 15, 2012, 08:19:47 AM by calisun »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: WordPress on SME, cannot upload media
« Reply #10 on: April 16, 2012, 01:26:35 PM »
I use the following settings when installing wordpress in an ibay:
Code: [Select]
IBAY=myibay
/sbin/e-smith/db accounts setprop $IBAY \
FollowSymLinks enabled \
CgiBin enabled \
AllowOverride All \
Group www \
PublicAccess global \
UserAccess wr-group-rd-everyone \
PHPBaseDir /home/e-smith/files/ibays/$IBAY/:/tmp/
/sbin/e-smith/signal-event remoteaccess-update

Combined with this to create the database:
Code: [Select]
DBUSER=wpdbuser
DBPASS=longobscuredbpassword
DBNAME=wpdbname
mysql -e "drop database IF EXISTS $DBNAME"
mysql -e "create database $DBNAME COLLATE=utf8_general_ci"
mysql -e "grant all privileges on $DBNAME.* to $DBUSER@localhost identified by '$DBPASS' with grant option"



Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: WordPress on SME, cannot upload media
« Reply #11 on: April 16, 2012, 02:46:35 PM »
Off topic for this Forum, moving to contribution section.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.