Answer the question
In order to leave comments, you need to log in
How to output text from a file?
Tell me the easiest way to display text from a file (for a beginner) (best source :D) The index.php file should output itself
Answer the question
In order to leave comments, you need to log in
You need to install LAMP.
What needs to be done for this.
1) Install tasksel. To do this, run the command in the console sudo apt-get install tasksel
2) Run tasksel sudo tasksel
. Use the cursor arrows on the keyboard to select LAMP Server and press OK . Don't touch anything else in the program window!!! After a while, LAMP Server will be installed.
3) Additionally, you need to install phpmyadmin
When finished, enter the address in the browser window http://localhost
and you will be taken to the start page of your test site.
These are the initial stages. The rest is not up to you, but I still recommend doing it. Create a localhost
directory in your home directory, in this directory create www and two files - error.log and access.log . You will place your projects in the localhost/www directory.
Then copy the configuration file of your test site and rename it. Think of a name yourself.
This is done in the console.
cd /etc/apache2/sites-available
sudo cp 000-default.conf mySite.conf
sudo service apache2 restart
sudo a2dissite 000-default
sudo a2ensite mySite
<?php
echo phpinfo();
http://localhost
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question