プログラムするときエラー表示は大事なのでPHPの設定を画面にエラー表示するように変更します。
・エラーを表示する設定です。
# php.ini設定ファイル変更
[root@lucen /]vi /etc/php.ini
error_reporting = E_ALL
display_errors = On
# 設定後Apache再起動
[root@lucen /]/usr/sbin/apachectl restart
Web program by lucenhangulLinux. CentOS. PHP. MySQL. Mobile. iPhone. twitter. GoogleAPI |
Skip to: Home | About Me | RSS2.0 | Contact |
# php.ini設定ファイル変更
[root@lucen /]vi /etc/php.ini
error_reporting = E_ALL
display_errors = On
# 設定後Apache再起動
[root@lucen /]/usr/sbin/apachectl restart
Category: PHP | Posted by: lucen |
500 OOPS : cannot change directory:/home/lucen
500 OOPS : child died
[root@localhost vsftpd]# /usr/sbin/setsebool -P ftp_home_dir 1
[root@localhost vsftpd]#
Category: Linux | Posted by: lucen |
# 実行許可
[root@lucen ~]# chmod 755 sz
# ダウンロード
[root@lucen ~]# sz filename
Category: Linux | Posted by: lucen |
# tar 圧縮
[root@lucen ~]# tar cvpf backup.tar public_html/
[root@lucen ~]# ls -l
-rw-r--r-- 1 root root 38144000 6月 28 11:25 backup.tar
# gzip 圧縮
[root@lucen ~]# gzip -9 backup.tar
[root@lucen ~]# ls -l
-rw-r--r-- 1 root root 33285575 6月 28 11:25 backup.tar.gz
# gunzip 解凍
[root@lucen ~]# gunzip backup.tar.gz
# tar 解凍
[root@lucen ~]# tar xvpf backup.tar
Category: Linux | Posted by: lucen |
[root@lucen ~]# crontab -l
00 05 * * * /root/backup.sh
Category: Linux | Posted by: lucen |
# 単純なタグ
<table>
<tr>
<td>内容</td>
<td>内容</td>
</tr>
</table>
# タグの設定
<table align="center" border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100" height="10">
<tr>
<td width="50" height="10">内容</td>
<td width="50" height="10">内容</td>
</tr>
Category: CSS | Posted by: lucen |
# 最後の行にこれを追加
#Virtual Setting File Include : ./virtual.conf
Include conf/virtual.conf
Category: Linux | Posted by: lucen |
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
RewriteBase /
# Rewrite URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
Category: Drupal | Posted by: lucen |
[root@lucen ~] mysql -uroot -p
Enter password:
..
..
# user idが「userid」で、設定するパスワードが「userpass」の場合
mysql> set password for userid@localhost=password('userpass');
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
[root@lucen ~] mysql -uuserid -puserpass
Category: MySQL | Posted by: lucen |

# HTMLの<head>と</head>の間に書きます。
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
Category: JavaScript | Posted by: lucen |