Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: newburns 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?
-
99SMESiteMaker_wordpress
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
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.
-
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)?
-
var_log_messages
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/
-
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.
-
who is the owner:group of /opt/wordpress?
-
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
-
I found that by adding the following to wp-config.php:
define('FS_METHOD', 'direct');
...and then, from command line:
chown -R apache: /opt/wordpress/wp-content
...WordPress no longer prompts for FTP info.
Also, I added to php.ini:
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.
-
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
-
Knyte
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
-
Thanks mary...I think this thread (http://)applies to my config (single Wordpress site, single user) a bit better...any thoughts?
EDIT: Link fail, I'm an idiot =/
-
Knyte
this thread (http://)
Your link is broken or incorrect, I think it refers to a localhost URL