Question: 1 ) Run dnf - y update on your VM if you have not yet done so ( this may take a while )
Run dnf y update" on your VM if you have not yet done so this may take a while
verify the firewalld service is stopped and disabled; set SELinux to permissive:
a systemctl stop firewalld
b systemctl disable firewalld
c setenforce
activate the httpd server preinstalled on Fedora: systemctl start httpd and systemctl enable httpd
a use the browser to check that the 'localhost' site is working
install php into the web server: dnf y install php phpmysqlnd phpmysqli
restart the httpd service and check that php is running both must be active and running:
systemctl status httpd
systemctl status phpfpm
create a file called info.php in varwwwhtml containing just :
a chmod both the varwwwhtml directory and the info.php file inside the directory
b test via localhost in browser: localhostinfophp you should see the PHP information page, which should include mysqli module
Disable the 'default' installed mysql module as root user:
dnf y module disable mysql
install MySQL server: dnf y install communitymysqlserver
start the mysql service: systemctl start mysqld and then enable the service: systemctl enable mysqld
run the mysql config process: mysqlsecureinstallation:
a Answer No to the first question about validating password component. In other words, do NOT activate secure password rules
b use the password sesame for the root user you will be asked to enter it twice
c Answer Nno to removing the anonymous user
d Answer Nno to disallowing remote logon
e Answer Nno to removing the test database
f Answer Y to reloading the privilege tables
Note: the next steps require you to download the files at the bottom of this lab posting to your Fedora virtual machine. Some virtual machines depending on network configuration may have a problem connecting to the Internet. If this happens an alternative is to download the files to a flash drive, and then from the VirtualBox top menu with fedora virtual machine running choose the USB option under the 'Devices' menu item. This should let you select your flash drive and directly connect it to the virtual machine it will disappear from the Windows drive list on the host while you are using it on the virtual machine You can then use the Fedora 'Files' feature on the dash at the bottom of the Fedora screen to copy the files from the flash drive.
Download the SALESDB.sql database build script below You will need to know the exact, full path to the location where you download the script. Then open the mysql command window with at the $ terminal prompt:
mysql u root p
when challenged you will give sesame as the password
Load the SALESDB database by running the script inside MySQL note that path is the full path to the location of the SALESDB.sql file:
pathSALESDBsql
For example, if SALESDB.sql is in JohnDoe's Downloads folder one would type: homejohndoeDownloadsSALESDBsqlwithout the doublequotes The first character is the backslash.
create CustSales as a new folder under varwwwhtml and set its permissions to
copy the index.php and dblink.php files to the varwwwhtmlCustSales folder. Set their permissions to
run the app as localhost in browser to verify results; in other words, at browser URL type: localhostCustSales
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
