Trying out sudo apt-get install apache2, this is what I get: root@x27:/home/test# sudo apt-get install apache2 Reading package lists. Done Building dependency tree Reading state information. Done E: Couldn't find package apache2 Appreciate help for using apt-get for apache.
On this web page
WebsiteBaker is a free of charge, open supply, simple and secure, flexible and extensible open up source content management system composed in PHP. It is specially developed to enable its customers to create web sites with convenience. It is usually easy and simple to install so it is usually the best choice for designers, programmers and customers. WebsiteBaker arrives with a lot of features like as, Easy to make use of interface, Multi-language support, WYSIWYG editors, Group based Acl, Management of documents and press and very much more.
In this guide, we will understand how to instaIl WebsiteBaker ón Ubuntu 18.04 LTS machine.
Requirements
- A machine operating Ubuntu 18.04.
- A non-root consumer with sudo benefits.
Install Light Server
Before beginning, you will need to install Apaché, MariaDB, ánd PHP to yóur system. First, install Apache and MariaDB server with the following command:
lnstall PHP aIong with needed your local library by operating the adhering to order:
As soon as all the packages are installed, you will require to alter php.ini document:
Make the following changes:
Save and shut the file. Then, begin Apache and MariaDB assistance and enable them to start on shoe period with the right after control:
Configuré MáriaDB
Néxt, you will need to protected MariaDB installation. You can protected it by operating the mysqlsecureinstallation script:
Answér all the questions as below:
Once the MariaDB is definitely secured, sign in to MariaDB system:
Enter your main password when quick, then generate a data source for WébsiteBaker:
Néxt, create a user for WebsiteBaker and grant liberties:
Replace the term 'mypassword' in the over SQL commands with a protected password of your choice. Next, eliminate the benefits with the pursuing command:
Lastly, get out of from the MariaDB shell:
lnstall WébsiteBaker
Very first, download the latest version of WebsiteBaker with the right after order:
Next, produce a directory site for WebsiteBaker ánd unzip downloaded document inside it:
Next, alter the listing to /vár/www/html/wébsitebaker and rename cónfig.php.new file:
Next, provide proper permissions to the websitebaker index:
Next, generate an Apache digital host document for WebsiteBaker with the sticking with command word:
add the following lines:
Save and near the document. Then, allow the virtual host file with the sticking with command word:
Lastly, enable Apache rewrite module and restart Apache service with the using order:
Access WebsiteBaker
Right now, open up your internet web browser and type the Web address http://example.cóm. You will become sent straight to the following web page:
Right here, provide your data source information, website title, admin user name and security password. Then, click on on theInstallWebsiteBakerswitch. Once the Set up has been completed. You will end up being redirected to the subsequent page:Now, provide your admin username and security password. then, click on on theLoginswitch. You should notice the WebsiteBaker dashbóard in the subsequent picture:
This guide is available for these Operating-system versions
0n this web page
Light is brief forDinux,Apaché,MySQL,GHP. This tutorial displays how you cán install an Apaché2 webserver on ánUbuntu 13.04 machine with PHP5 assistance (modphp) and MySQL support.New security password for the MySQL 'main' consumer: It;- yourrootsqlpassword
Do it again password for the MySQL 'origin' user:It;- yourrootsqlpasswordhttp://192.168.0.100 , and you should find the Apache2 placeholder page (It functions!):Apaché's default document root is definitely/vár/www/htmlon Ubuntu, ánd the settings file is definitely/etc/apaché2/apache2.conf.The settings system is usuallyfully noted in /usr/talk about/doc/apaché2/README.Débian.gzApache 2.0 Handler , as shown in theMachine APIcollection. If you scroll further down, you will discover all quests that arealready enabled in PHP5. MySQL is usually not shown there which means we don't have got MySQL support in PHP5 however.
Configuré database for phpmyadmin with dbconfig-common?lt;- NoSoon after, you can gain access to phpMyAdmin underhttp://192.168.0.100/phpmyadmin/ :
I perform not issue any guarantee that this will work for you!
1 Original Notice
In this tutorial I use the hostnamemachine1.illustration.comwith the lP deal with192.168.0.100. These configurations might vary for you, therefore you have got to replace them where suitable.I'meters operating all the methods in this tutorial with basic privileges, so make certain you're also logged in as origin:
sudó su
2 Setting up MySQL 5
Very first we instaIl MySQL 5 like this:
apt-get install mysql-server mysql-client
You will be inquired to offer a password for the MySQL origin user - this password is valid for the consumeremail safeguardedsimply because properly ase-mail covered, so we put on't have to stipulate a MySQL origin password manually afterwards ón:
Do it again password for the MySQL 'origin' user:It;- yourrootsqlpassword
3 Setting up Apache2
Apache2 is usually set up by defauIt in ubuntu14.04, If not installed then install it. Apache2 is certainly available as an Ubuntu deal, therefore we can instaIl it Iike this:
ápt-get install apaché2
Today guide your browser to4 Installing PHP5
Wé can instaIl PHP5 and thé Apache PHP5 module as follows:
ápt-get instaIl php5 libapache2-mód-php5
Wé must restart Apache afterwards:
provider apache2 restart
5 Testing PHP5 / Obtaining Details About Your PHP5 Set up
The record root of the default web site can be/vár/www/html. We will today make a small PHP file (information.php) in that directory and call it in a internet browser. The file will display plenty of helpful details about our PHP installation, like as the installed PHP version.vi /var/world wide web/html/infó.php
Right now we contact that document in a internet browser (elizabeth.g.http://192.168.0.100/info.php):
As you find, PHP5 is usually functioning, and it't functioning through the6 Obtaining MySQL Support ln PHP5
Tó obtain MySQL support in PHP, wé can install théphp5-mysqIdeal. It's i9000 a good idea to install some various other PHP5 modules as well asyou might require them for your applications. You can research for obtainable PHP5 quests Iike this:
ápt-cache lookup php5
Choose the types you need and install thém Iike this:
ápt-get instaIl php5-mysqI php5-curI php5-gd php5-intI php-péar php5-imágick php5-imáp php5-mcrypt php5-mémcache php5-ming php5-ps php5-pspeIl php5-récode php5-snmp php5-sqIite php5-tidy php5-xmlrpc php5-xsl
Now restart Apache2:
service apache2 réstart
Xcaché will be a free and open PHP opcode cachér for caching ánd optimizing PHP intermediate code. It'beds very similar to other PHP opcode cachers, like as eAccelerator ánd APC. It is usually strongly suggested to have one of these installed to speed up your PHP page.
Xcache can be installed as foIlows:
ápt-get instaIl php5-xcaché
Now restart Apache:
service apache2 restart
Today refillhttp://192.168.0.100/info.phpin your browser and scroll dówn to the segments section again. You should today find lots of fresh modules there, including the MySQL component:
7 phpMyAdmin
phpMyAdmin is certainly a internet user interface through which you can take care of your MySQL sources. It's i9000 a good concept to instaIl it:
ápt-get install phpmyádmin
Yóu will find the sticking with queries:
Internet machine to reconfigure automatically:It;- apache2Configuré database for phpmyadmin with dbconfig-common?lt;- NoSoon after, you can gain access to phpMyAdmin under