投稿時間:2022-12-03 22:08:58 RSSフィード2022-12-03 22:00 分まとめ(10件)
カテゴリー等 | サイト名等 | 記事タイトル・トレンドワード等 | リンクURL | 頻出ワード・要約等/検索ボリューム | 登録日 |
---|---|---|---|---|---|
IT | 気になる、記になる… | 「DJI Mini 3 Pro」の廉価版「DJI Mini 3」の価格情報が明らかに | https://taisy0.com/2022/12/03/165697.html | djimini | 2022-12-03 12:50:13 |
python | Pythonタグが付けられた新着投稿 - Qiita | kaggle: 7z アーカイブファイルの取り扱い | https://qiita.com/Sainotsuno/items/b8fa82377a21f3bdbcc6 | pipinstallpyunpack | 2022-12-03 21:57:00 |
js | JavaScriptタグが付けられた新着投稿 - Qiita | 「const {変数} = () => {」がわからない人へ | https://qiita.com/kaburagi_/items/532a8fc22f19ab4605d2 | const | 2022-12-03 21:48:44 |
js | JavaScriptタグが付けられた新着投稿 - Qiita | 最も凶悪な退会ボタン | https://qiita.com/Yametaro/items/17dca0072ec1604e64eb | 退会 | 2022-12-03 21:38:46 |
AWS | AWSタグが付けられた新着投稿 - Qiita | Amazon S3 | https://qiita.com/taka-d/items/2977ecb1a8adb12a3e57 | amazonss | 2022-12-03 21:37:57 |
技術ブログ | Mercari Engineering Blog | クレジットカード取引とメルカードマイクロサービスについて | https://engineering.mercari.com/blog/entry/20221203-mercard-behind-the-scenes-03/ | hellip | 2022-12-03 12:00:51 |
海外TECH | MakeUseOf | How Long Does it Take to Charge an Electric Car? | https://www.makeuseof.com/how-long-does-it-take-to-charge-an-electric-car/ | charging | 2022-12-03 12:15:15 |
海外TECH | DEV Community | How to Install PHP and MariaDB on Amazon Linux 2 | https://dev.to/mkabumattar/how-to-install-php-and-mariadb-on-amazon-linux-2-4b4h | How to Install PHP and MariaDB on Amazon Linux IntroductionWe will learn how to set up PHP and MariaDB on Amazon Linux in this tutorial We will also discover how to set up PHP so that it functions with the Apache web server We will also discover how to set up MariaDB so that it functions with PHP PrerequisitesTo follow along with this tutorial you will need An Amazon Linux EC instance with a public IP address A non root user with sudo privileges A domain name pointing to the public IP address of your EC instance Apache web server installed and running How to Install Apache Web Server on Amazon Linux Installing PHP MariaDB setting up MariaDB and running a basic PHP demo Step ーInstalling PHPPHP is a free and open source scripting language that is used to create dynamic web pages It is the most popular web scripting language in the world At first we will enable amazon linux extras so that we can specify the PHP version that we want to install sudo amazon linux extras enable php yNext we will install PHP sudo yum install php php pear cgi common curl mbstring gd mysqlnd gettext bcmath json xml fpm intl zip imap yWe will now verify that PHP has been installed php vThe output should look like this PHP cli built Jun NTS Copyright c The PHP GroupZend Engine v Copyright c Zend Technologies Step ーInstalling MariaDBMariaDB is a free and open source relational database management system RDBMS that is used to store data for dynamic web pages It is a fork of MySQL At first we will install MariaDB sudo yum install mariadb server yNext we will start MariaDB sudo systemctl start mariadbWe will configure MariaDB so that it starts automatically when the system boots sudo systemctl enable mariadbWe will now secure MariaDB sudo mysql secure installationYou will be prompted to enter the current root password for MariaDB Press Enter to continue Enter current password for root enter for none Next you will be prompted to set a new root password for MariaDB Enter a new password and press Enter Set root password Y n You will be prompted to remove anonymous users Press Y and then press Enter Remove anonymous users Y n You will be prompted to disable remote root login Press Y and then press Enter Disallow root login remotely Y n You will be prompted to remove the test database and access to it Press Y and then press Enter Remove test database and access to it Y n You will be prompted to reload the privilege tables now Press Y and then press Enter Reload privilege tables now Y n Step ーConfiguring PHP to Work with ApacheAt first we need to restart Apache sudo systemctl restart httpdWe will create a directory for our PHP files sudo mkdir var www html phpNext we will create a PHP file sudo vi var www html php index phpWe will add the following content to the file lt php phpinfo We will now open the file in a web browser http your domain name php index phpYou should see the following output Step ーConfiguring MariaDB to Work with PHPAt first we will create a database for our PHP files sudo mysql u root pCREATE DATABASE php Next we will create a user for our PHP files CREATE USER php localhost IDENTIFIED BY password We will grant all privileges to the user GRANT ALL PRIVILEGES ON php TO php localhost We will now exit MariaDB exitWe will create a PHP file sudo vi var www html php db phpWe will add the following content to the file lt php db new mysqli localhost php password php if db gt connect error die Connection failed db gt connect error echo Connected successfully We will now open the file in a web browser http your domain name php db phpYou should see the following output ConclusionIn this tutorial we learned how to set up PHP and MariaDB on Amazon Linux We also learned how to set up PHP so that it functions with the Apache web server We also learned how to set up MariaDB so that it functions with PHP ResourcesHow to Install Apache Web Server on Amazon Linux AWS Amazon Linux | 2022-12-03 12:19:52 |
ニュース | BBC News - Home | Channel crossings: Dozens of Albanian child migrants go missing | https://www.bbc.co.uk/news/uk-england-kent-63845680?at_medium=RSS&at_campaign=KARANGA | council | 2022-12-03 12:29:32 |
ニュース | BBC News - Home | Pakistan v England: Tourists take charge in Rawalpindi | https://www.bbc.co.uk/sport/cricket/63845194?at_medium=RSS&at_campaign=KARANGA | pakistan | 2022-12-03 12:09:02 |
コメント
コメントを投稿