'웹/php'에 해당되는 글 3건

  1. 2017.04.01 wordpress / ubuntu 16.04 설치
  2. 2017.03.18 centos 6.5 / 그누보드4.34.15 (11.10.24) / phpMyAdmin
  3. 2014.05.29 페이지 이동

    1  ls

    2  pwd

    3  sudo apt-get install php5-gd

    4  sudo a2enmod rewrite

    5  sudo apt-get install apache2

    6  sudo apt-get install php5

    7  sudo apt-get install mysql-server

    8  sudo apt-get install php5-mysql

    9  mysql -u root

   10  mysql -u root -P

   11  mysql -uroot -p

   12  sudo vi /etc/apache2/sites-available/default-ssl.conf

   13  sudo vi /etc/apache2/sites-available/000-default.conf 

   14  cd /var/www/

   15  ls

   16  wget http://wordpress.org/latest.tar.gz

   17  ls

   18  sudo wget http://wordpress.org/latest.tar.gz

   19  ls

   20  ls -al

   21  sudo tar -xvzf latest.tar.gz 

   22  ls

   23  cd html/

   24  ls

   25  ifconfig

   26  sudo chown www-data:www-data * -R 

   27  ls

   28  cd ..

   29  sudo chown www-data:www-data * -R

   30  ls

   31  ls -al

   32  sudo usermod -a -G www-data user

   33  ls

   34  ls -al

   35  sudo chmod -R 775 /var/www/

   36  ls

   37  ls -al

   38  sudo /etc/init.d/apache2 restart

   39  ls

   40  cd html/

   41  ls

   42  mv ../wordpress/ .

   43  sudo mv ../wordpress/ .

   44  ls

   45  ls -al

   46  cat index.html 

   47  sudo apt-get install php

   48  sudo apt-get install php7.0-gd

   49  apt-get update

   50  sudo apt-get update

   51  sudo apt-get install php7.0-gd

   52  sudo a2enmod rewrite

   53  service apache2 restart

   54  ls

   55  sudo chmod -R 775 /var/www/

   56  sudo chown -R www-data:$USER

   57  sudo chown -R www-data:$USER .

   58  ls

   59  ls -al

   60  apt-get install php libapache2-mod-php

   61  sudo apt-get install php libapache2-mod-php

   62  sudo apt-get install php-xml

   63  sudo apt-get install php-gd

   64  sudo apt-get install php-mysql

   65  ls

   66  sudo apt-get install  php5-mysqlnd-ms

   67  sudo service apache2 reload

   68  ls

   69  cd wordpress/

   70  ls

   71  cat wp-config-sample.php 

   72  cat wp-config-sample.php  | more

   73  #

   74  ls

   75  cd ..

   76  ls

   77  history > 1.txt


    8  sudo apt-get install apache2

    9  sudo apt-get install php

   10  sudo apt-get install mysql-server

   create database wp;

   11  sudo apt-get install php7.0-mysql 

   12  sudo a2enmod rewrite

   13  sudo /etc/init.d/apache2 restart

   14  service apache2 restart

   15  sudo apt-get install libapache2-mod-php

   16  sudo service apache2 reload

   17  cd /var/www/

   18  ls

   19  cd html/

   20  ls

   21  sudo wget http://wordpress.org/latest.tar.gz

   22  sudo tar -xvzf latest.tar.gz

   23  ls

   24  ls -al

   25  sudo chown -R www-data:$USER *

   26  ls -al

   27  mysql -uroot -p

   28  ls


--------------------------------------------------------------------------------------

    1  sudo apt-get update

    2  sudo apt-get install apache2

    3  sudo apt-get install php

    4  sudo apt-get install mysql-server

    5  mysql -uroot -p

create database aa;

quit  

    6  sudo apt-get install php7.0-mysql 

    7  sudo apt-get install libapache2-mod-php

    8  sudo a2enmod rewrite

    9  cd /var/www/html

   10  sudo wget http://wordpress.org/latest.tar.gz

   11  sudo tar -xvzf latest.tar.gz

   12  sudo vi /etc/apache2/sites-available/000-default.conf

DocumentRoot /var/www/html/wordpress

   13  sudo service apache2 restart

   14  sudo service apache2 reload

   15  sudo chown www-data:$USER /var

   16  sudo chown www-data:$USER /var/www/

   17  sudo chown www-data:$USER /var/www/html/

   18  sudo chown -R www-data:$USER /var/www/html/wordpress/

   19  sudo chmod 777 /var

   20  sudo chmod 777 /var/www/

   21  sudo chmod 777 /var/www/html/

   22  sudo chmod 777 /var/www/html/wordpress/

   23  sudo chmod -R 777 /var/www/html/wordpress/wp-content/

INSERT INTO mysql.user (host, user, authentication_string, ssl_cipher, x509_issuer, x509_subject) VALUES ('%', 'root', password('mysql'), '', '', '');

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';

FLUSH PRIVILEGES;


sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf

bind-address            = 127.0.0.1 을

bind-address            = 0.0.0.0 으로


sudo service mysql restart

sudo ufw allow 3306/tcp

sudo service ufw restart

netstat -ntlp




sudo apt-get install php7.0-zip

sudo apt-get install php-xml

sudo apt-get install php7.0-xml php7.0-xmlrpc



sudo vi /etc/php/7.0/apache2/php.ini 

extension=zip.so

extension=dom.so

upload_max_filesize = 500M

max_execution_time = 180

max_input_vars = 1500



sudo service apache2 restart

' > php' 카테고리의 다른 글

centos 6.5 / 그누보드4.34.15 (11.10.24) / phpMyAdmin  (0) 2017.03.18
페이지 이동  (0) 2014.05.29
Posted by wakira
,

    1  ping www.naver.com

    2  ifconfig

    3  vi /etc/sysconfig/network-scripts/

    4  vi /etc/sysconfig/network-scripts/ifcfg-eth0 

    5  reboot

    6  ping www.naver.com

    7  ifconfig

    8  ls

    9  df

   10  wget

   11  wget ?

   12  wget -help

   13  wget --help

   14  yum install wget

   15  wget

   16  ls

   17  pwd

   18  yum -y install httpd

   19  cd /var/www/

   20  ls

   21  cd html/

   22  ls

   23  ls -al

   24  yum -y install system-config-firewall-tui

   25  system-config-firewall-tui 

   26  /etc/init.d/iptables stop

   27  vi /etc/selinux/config

   28  reboot

   29  yum -y install mysql

   30  yum -y install mysql-server

   31  ls

   32  cd /var/www/html/

   33  ls

   34  vi

   35  ls

   36  vi test.php

   37  service  vsftpd restart

   38  service  system-config-firewall-tuivsftpd restart

   39  system-config-firewall-tui

   40  export LC_ALL=C

   41  system-config-firewall-tui

   42  local

   43  locale

   44  python --version

   45  /etc/init.d/iptables restart

   46  service httpd start

   47  yum -y install php

   48  ls

   49  ls -al

   50  chomd 707 test.php 

   51  chmod 707 test.php 

   52  ls

   53  systemctl enable httpd.service  

   54  vi /etc/sysconfig/iptables

   55  iptables -I INPUT -p tcp --dport 80 -j ACCEPT

   56  /etc/init.d/iptables save

   57  /etc/init.d/iptables restart

   58  ls

   59  vi test.php 

   60  yum -y install php php-mysql php-gd php-pear

   61  systemctl restart httpd.service

   62  yum install systemctl

   63  service httpd restart

   64  vi /etc/php.ini

   65  mysql -uroot -p

   66  yum -y install mysql

   67  yum -y install mysql-server

   68  mysql 

   69  service mysqld start

   70  mysql -uroot -p

   71  /usr/bin/mysqladmin -u root password '1234'

   72  mysql -uroot -p

   73  ls

   74  cd ..

   75  ls

   76  wegt

   77  wget

   78  wget http://10.211.55.3/gnuboard4.utf8.4.37.31.(2015.07.29).tgz

   79  wget http://10.211.55.3/gnuboard4.tgz

   80  ls

   81  tar xvzf gnuboard4.tgz 

   82  ls

   83  mv html html2

   84  mv gnuboard4 html

   85  ls

   86  chmod 707 hyml

   87  chmod 707 html

   88  ls

   89  cd hyml

   90  cd html

   91  ls

   92  mkdir data

   93  chmod 707 data

   94  ls

   95  vi /etc/php.ini

   96  ls

   97  vi test.php

   98  service httpd restart

   99  ls

  100  cd ..

  101  ls

  102  rm gnuboard4.tgz 

  103  rm -rf gnuboard4.tgz 

  104  ls

  105  rm -rf html2

  106  ls

  107  rm -rf html/

  108  wget http://10.211.55.3/gnuboard4.utf8.4.34.15.2011.10.24.tgz

  109  ls

  110  tar cvxf gnuboard4.utf8.4.34.15.2011.10.24.tgz 

  111  history

  112* tar xvfz gnuboar

  113  ls

  114  mv gnuboard4 html

  115  chmod 707

  116  chmod 707 html/

  117  ls

  118  cd html/

  119  ls

  120  mkdir data

  121  chmod 707 data

  122  ls

  123  cd ..

  124  ls

  125* wget 

  126  wget http://10.211.55.3/nuboard4.utf8.4.34.15.2011.10.24.tgz

  127  wget http://10.211.55.3/gnuboard4.utf8.4.34.14.2011.10.05.tgz

  128  ls

  129  tar xvzf gnuboard4.utf8.4.34.14.2011.10.05.tgz 

  130  ls

  131  mv gnuboard4 html

  132  l

  133  ls

  134  chmod 707 html

  135  ls

  136  cd html

  137  ls

  138  cd ..

  139  ls

  140  mv html2 html15

  141  cd html

  142  ls

  143  mkdir data

  144  chmod 707 data

  145  ls

  146  cd data/

  147  ls

  148  ls -al

  149  cd file/

  150  ls

  151  cat index.php 

  152  ls

  153  cat index.php 

  154  cd g1`


;

exit

q

  155  ls

  156  cd g1a1/

  157  ls

  158  cd ..

  159  ls

  160  cd ..

  161  ls

  162  cd log/

  163  ls

  164  ca index.php 

  165  cat index.php 

  166  cd ..

  167  ls

  168  cd session/

  169  ls

  170  ls -al

  171  ls

  172  ls -al

  173  ls

  174  cd ..

  175  ls

  176  cd member/

  177  ls

  178  cd ..

  179  ls

  180  cd cheditor4/

  181  ls

  182  cd ..

  183  ls

  184  cd cheditor

  185  ls

  186  cd ..

  187  ls

  188  cd ..

  189  ls

  190  cd ..

  191  ls

  192  cd html15/

  193  ls

  194  cd data/

  195  s

  196  ls

  197  cd session/

  198  ls

  199  cd ..

  200  ls

  201  cd ..

  202  ls

  203  cd ..

  204  l

  205  ls

  206  mv html14

  207  mv html html14

  208  mv html15 html

  209  ls

  210  cd html

  211  l

  212  ls

  213  cd cheditor5

  214  cd popup/

  215  ls

  216  cd js/

  217  ls

  218  vi dialog.js 

  219  cat dialog.js 

  220  ls

  221  cd ..

  222  ls

  223  cd ..

  224  ls

  225  cd ..

  226  ls

  227  cd data

  228  ls

  229  cd cheditor

  230  ks

  231  ls

  232  cd ..

  233  ls

  234  cd cheditor

  235  ls

  236  cd ..

  237  ls

  238  cd cheditor4

  239  ls

  240  cd 1703/

  241  ls

  242  cd ..

  243  pwd

  244  ls

  245  cd file/

  246  ls

  247  cd g1a1/

  248  ls

  249  pwd

  250  ls

  251  ls -al

  252  ls

  253  ls -al

  254  ls

  255  cd ..

  256  ls

  257  cd ..

  258  ls

  259  cd ..

  260  ls

  261  cd cheditor5

  262  ls

  263  cd ..

  264  ls

  265  cd cheditor4

  266  ls

  267  cd example/

  268  ls

  269  vi textarea.html 

  270  ls

  271  cat textarea.html 

  272  ls

  273  vi textarea.html 

  274  ls

  275  cd ..

  276  ls

  277  cd ..

  278  l

  279  ls

  280  cd data

  281  ls

  282  cd cheditor4

  283  ls

  284  cd 1703/

  285  ls

  286  rm phpshell.php 

  287  ls

  288  pwd

  289  ls

  290  cd ..

  291  ls

  292  cd ..

  293  ls

  294  cd file/

  295  ls

  296  pwd

  297  ã…›ã…•ã…yum install phpMyAdmin

  298  yum install phpMyAdmin

  299  curl -s -I http://localhost/phpMyAdmin/ | head -3

  300  ls

  301  cd ..

  302  ls

  303  cd ..

  304  ls

  305  mkdir db

  306  ls

  307  cd db

  308  s

  309  wget https://files.phpmyadmin.net/phpMyAdmin/4.0.10.19/phpMyAdmin-4.0.10.19-all-languages.zip

  310  ls

  311  unzip ./phpMyAdmin-4.0.10.19-all-languages.zip 

  312  yum install unzip

  313  unzip ./phpMyAdmin-4.0.10.19-all-languages.zip 

  314  ls

  315  mv phpMyAdmin-4.0.10.19-all-languages ../phpMyAdmin

  316  ls

  317  cd ..

  318  ls

  319  cd db

  320  ls

  321  mv phpMyAdmin-4.0.10.19-all-languages.zip ../..

  322  ls

  323  cd ..

  324  ls

  325  cd html

  326  ls

  327  rm db

  328  rm -rf db

  329  ls

  330  cd phpMyAdmin/

  331  ls

  332  vi libraries/config.default.php 

  333  curl -s -I http://localhost/phpMyAdmin/ | head -3

  334  cd /etc/httpd/conf.d/

  335  grep 127.0.0.1 phpMyAdmin.conf

  336  ls

  337  yum install php-mbstring

  338  service httpd restart

  339  ls

  340  cd /var/www/

  341  ls

  342  cd html

  343  ls

  344  cd data/

  345  ls

  346  history > 1.txt


' > php' 카테고리의 다른 글

wordpress / ubuntu 16.04 설치  (0) 2017.04.01
페이지 이동  (0) 2014.05.29
Posted by wakira
,

페이지 이동

웹/php 2014. 5. 29. 07:54

PHP

<?header("Location:abc.php")?>

 

JSP

<jsp:forward page="abc.jsp"/>  또는

<% response.sendRedirect("abc.jsp"); %>  

 

ASP

<% Response.redirect "download.asp"  %>

 

자바스크립트

 

<script type="text/javascript">

     location.replace("abc.html");

</script>






<html>

<script type="text/javascript">

     location.replace("page/index.html");

</script>

<body>

</body>

</html>

' > php' 카테고리의 다른 글

wordpress / ubuntu 16.04 설치  (0) 2017.04.01
centos 6.5 / 그누보드4.34.15 (11.10.24) / phpMyAdmin  (0) 2017.03.18
Posted by wakira
,