Koozali.org: home of the SME Server

Wordpress 3.0

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Wordpress 3.0
« on: June 05, 2012, 08:12:53 PM »
I used SMeSiteMaker to create a directory for my wordpress installaation. I am able to set open_basedir values within the setup.
I understand there's a contrib, but it is not the latest wordpress, and I definitely need MultiSite.
I have untarred the latest Wordpress file in the /opt/wordpress directory.
Everything installed wonderfully, with the help of the Calisun walkthrough. Multisite, users, blogs directory; all work the way they are supposed to.
However, No matter what I do, I cannot upload media, install themes, or install plugins.
It can't create the proper files or directories in the /opt/wordpress/wp-content/ directory.
Any ideas?
I've already tried chmodding directories, and even 777 doesn't help.
I also created a "var" directory in upgrades to combat a "supposed" bug, but that did.
I don't mind installing into an ibay if that is what it takes, but I need to transfer my current settings. And I will also need to be able to setup different domains, as I already have a site in my main domain's ibay, so it will go into a subdirectory of that /html/ file. Will I be able to redirect other Ibays to that wordpress to pull up the site? working from /opt, I just have to put in a redirect rule in the ibay to go to /opt/wordpress. Will it work the same in an Ibay?
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Wordpress 3.0
« Reply #1 on: June 05, 2012, 08:48:00 PM »
99SMESiteMaker_wordpress
Code: [Select]
lias /wordpress /opt/wordpress
<Directory /opt/wordpress>
Options  FollowSymLinks  +ExecCGI
AddType application/x-httpd-php .php .php3 .phtml
AddHandler cgi-script .cgi .pl
AllowOverride All
order deny,allow
deny from all
allow from all
php_flag allow_url_fopen on
php_admin_flag register_globals on
php_admin_value eaccelerator.enable 1
php_admin_value open_basedir /tmp:/usr/share:/dev:/opt/wordpress
</Directory>
I had to creat a ".htaccess" file as well
Code: [Select]
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
I tried http://wiki.contribs.org/Htaccess#Procedure_-_authentication_against_a_user_password_file
But it didn't work.
I basically, deleted all the data in the pretense and used the supplied data that was for the .htaccess file.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Wordpress 3.0
« Reply #2 on: June 06, 2012, 01:42:23 PM »
Do you get any errors in /var/log/httpd/error_log or /var/log/messages when you try to upload media, install themes, or install plugins?

Have you tried "chown"ing /opt/wordpress (chown -R www:www /opt/wordpress)?

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Wordpress 3.0
« Reply #3 on: June 06, 2012, 06:40:47 PM »
var_log_messages
Code: [Select]
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 472
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 487
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 472
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 494
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 487
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 494
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 530
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 530
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 472
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 487
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 494
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 472
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 487
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 494
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 530
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 530
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/cache.php on line 103
Jun  6 22:27:16 mtrose last message repeated 2 times
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/query.php on line 21
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/cache.php on line 103
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/query.php on line 21
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/query.php on line 21
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/theme.php on line 623
Jun  6 22:27:16 mtrose last message repeated 2 times
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/query.php on line 21
Jun  6 22:27:16 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/theme.php on line 623
Jun  6 22:27:18 mtrose httpd: PHP Deprecated:  Function split() is deprecated in /opt/wordpress/wp-includes/rss.php on line 99
Jun  6 22:27:18 mtrose last message repeated 42 times
Jun  6 22:27:20 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 472
Jun  6 22:27:20 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 487
Jun  6 22:27:20 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 494
Jun  6 22:27:20 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 530
Jun  6 22:27:20 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/cache.php on line 103
Jun  6 22:27:20 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/query.php on line 21
Jun  6 22:27:20 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/theme.php on line 623
Jun  6 22:27:23 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 472
Jun  6 22:27:23 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 487
Jun  6 22:27:23 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 494
Jun  6 22:27:23 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 530
Jun  6 22:27:23 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/cache.php on line 103
Jun  6 22:27:23 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/query.php on line 21
Jun  6 22:27:23 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/theme.php on line 623
Jun  6 22:27:50 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 472
Jun  6 22:27:50 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 487
Jun  6 22:27:50 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 494
Jun  6 22:27:50 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-settings.php on line 530
Jun  6 22:27:50 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/cache.php on line 103
Jun  6 22:27:50 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/query.php on line 21
Jun  6 22:27:50 mtrose httpd: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /opt/wordpress/wp-includes/theme.php on line 623
Jun  6 22:29:14 mtrose smbd[23899]: [2012/06/06 22:29:14.493134,  0] smbd/nttrans.c:2296(call_nt_transact_ioctl)
Jun  6 22:29:14 mtrose smbd[23899]:   call_nt_transact_ioctl(0x1401c4): Currently not implemented.
Jun  6 22:31:05 mtrose proftpd[24403]: 10.1.12.1 (10.1.12.1[10.1.12.1]) - FTP session opened.
Jun  6 22:31:08 mtrose proftpd[24403]: 10.1.12.1 (10.1.12.1[10.1.12.1]) - Preparing to chroot to directory '/opt/wordpress'
Jun  6 22:31:09 mtrose proftpd[24403]: 10.1.12.1 (10.1.12.1[10.1.12.1]) - FTP session closed.

var/log/httpd/error_log has nothing.
Any ideas?
Should I just move the wordpress file into my website ibay and put the contents in ./html/wordpress/
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Wordpress 3.0
« Reply #4 on: June 06, 2012, 08:24:43 PM »
Don't know why, but it works.
I changed everything to chmod 777
Then in WinSCP I changed everything but index.php in the wp-content folder back to 775.
Everything works now.
I am trying to run a security scanner to doublecheck all the permissions to make sure there aren't any issues?
Any ideas, I don't want security holes.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Wordpress 3.0
« Reply #5 on: June 06, 2012, 09:31:35 PM »
who is the owner:group of /opt/wordpress?

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Wordpress 3.0
« Reply #6 on: June 06, 2012, 10:23:17 PM »
blogger:www

blogger is the user that has chroot access into /opt/wordpress: That is the only way I could think of doing the ftp within Wordpress
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline Knyte

  • *
  • 39
  • +0/-0
    • knyte.org
Re: Wordpress 3.0
« Reply #7 on: July 03, 2012, 10:58:45 PM »
I found that by adding the following to wp-config.php:
Code: [Select]
define('FS_METHOD', 'direct');...and then, from command line:
Code: [Select]
chown -R apache: /opt/wordpress/wp-content...WordPress no longer prompts for FTP info.

Also, I added to php.ini:
Code: [Select]
upload_tmp_dir =/tmp/...and WordPress accepts media file uploads.

Hopefully someone can suggest a better method for file uploads?  I understand it's better practice to apply a different tmp folder per web app, rather than globally.
SME 8.1 (currently restoring to SME 9.2) running in ESXi 5.5

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Wordpress 3.0
« Reply #8 on: July 03, 2012, 11:05:31 PM »
Great! Will try this to confirm when I get around a terminal. Command line from Android is too frustrating.

New issue:
What is needed to have the URL different for different blogs using multisite, I.e.: http://mtrosemedia.tk/wordpress/ronblog  to http://mtrosemedia.tk/ronblog
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Wordpress 3.0
« Reply #9 on: July 04, 2012, 12:51:51 PM »
Knyte

Quote
Hopefully someone can suggest a better method for file uploads?  I understand it's better practice to apply a different tmp folder per web app, rather than globally.

Create
/opt/wordpress/tmp1
/opt/wordpress/tmp2
etc

and then do
for site 1
upload_tmp_dir =/opt/wordpress/tmp1
for site 2
upload_tmp_dir =/opt/wordpress/tmp2
and so on
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Knyte

  • *
  • 39
  • +0/-0
    • knyte.org
Re: Wordpress 3.0
« Reply #10 on: July 05, 2012, 12:32:23 AM »
Thanks mary...I think this thread applies to my config (single Wordpress site, single user) a bit better...any thoughts?

EDIT:  Link fail, I'm an idiot =/
« Last Edit: July 05, 2012, 03:12:15 PM by Knyte »
SME 8.1 (currently restoring to SME 9.2) running in ESXi 5.5

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Wordpress 3.0
« Reply #11 on: July 05, 2012, 10:24:34 AM »
Knyte

Quote
this thread

Your link is broken or incorrect, I think it refers to a localhost URL
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.