Linux?
mysql -u root -p create database wordpress; ← wordpressデータベース作成 grant all privileges on wordpress.* to wordpress@localhost identified by 'パスワード'; ← wordpressユーザ作成 exit
yum -y install php-mysql wget http://ja.wordpress.org/latest-ja.zip unzip latest-ja.zip mv wordpress /var/www/ chown -R apache:apache /var/www/wordpress/ rm -f latest-ja.zip
cp /var/www/wordpress/wp-config-sample.php /var/www/wordpress/wp-config.php vi /var/www/wordpress/wp-config.php
/** WordPress のためのデータベース名 */
define('DB_NAME', 'wordpress'); ← データベース名
/** MySQL データベースのユーザー名 */
define('DB_USER', 'wordpress'); ← データベースユーザー名
/** MySQL データベースのパスワード */
define('DB_PASSWORD', 'パスワード'); ← データベースユーザーパスワード
/**#@+
* 認証用ユニークキー
*
* それぞれを異なるユニーク (一意) な文字列に変更してください。
* {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org の秘密鍵ービス} で自動生成することもできます。
* 後でいつでも変更して、既存のすべての cookie を無効にできます。これにより、すべてのユーザーを強制的に再ログインさせることになります。
*
* @since 2.6.0
*/
認証用ユニークキーで生成した認証用ユニークキーを貼り付ける
define('AUTH_KEY','****************************************************************');
define('SECURE_AUTH_KEY','****************************************************************');
define('LOGGED_IN_KEY','****************************************************************');
define('NONCE_KEY','****************************************************************');
define('AUTH_SALT','****************************************************************');
define('SECURE_AUTH_SALT','****************************************************************');
define('LOGGED_IN_SALT','****************************************************************');
define('NONCE_SALT','****************************************************************');
/**#@-*/
echo Alias /wordpress /var/www/wordpress > /etc/httpd/conf.d/wordpress.conf /etc/rc.d/init.d/httpd reload
vi skin/pukiwiki.css.php
の
div#menubar
項目について
width:130px;
を変更。
<?php
function plugin_shadowheader_convert(){
if(func_num_args()<2){
return 'ERROR: argument shortage...';
}
$argv=func_get_args();
$header_level=$argv[0];
$header_str=$argv[1];
$shadowheader=array();
switch($header_level){
case 1:
$shadowheader[]='*'.$header_str;
break;
case 2:
$shadowheader[]='**'.$header_str;
break;
case 3:
$shadowheader[]='***'.$header_str;
break;
default:
break;
}
return convert_html($shadowheader);
}
?><Files "xmlrpc.php">
Satisfy any
order allow,deny
allow from all
</Files># mysql -u root -p Enter password: mysql> create database wp; Query OK, 1 row affected (0.04 sec) mysql> grant all privileges on wp.* to wp@localhost identified by 'wp用の任意パスワ ード'; Query OK, 0 rows affected (0.06 sec)
http://server.domain.net/wordpress/
http://server.domain.net/wordpress/
php_value upload_max_filesize 512M php_value post_max_size 512M php_value memory_limit 512M php_value max_execution_time 300 php_value max_input_time 300