Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Tuesday, October 15, 2019

How to Setup Local Repository In Ubuntu, Linux Mint & Debian

October 15, 2019
How to Setup Local Repository In Ubuntu, Linux Mint & Debian






Method 1: APT-Mirror

First install Apache server
Step 1 :- sudo apt-get install apache2

Now, install APT-Mirror using command:
Step 2 :- sudo apt-get install apt-mirror

Now, create a directory to save all packages.
For example, let us create a directory called “/myrepo”. We are going to save all packages in this directory:
Step 3 :- sudo mkdir /myrepo

Now, open the file /etc/apt/mirror.list file,
Step 4 :- sudo vi /etc/apt/mirror.list
Step 5 :- cd   /var/www/html
Step 6 :- tar  -zxvf Joomla_3.4.3-Stable-Full_Package.tar.gz

Change the Ownership of Directory

Warning:- If you extracted the files into a folder called ‘Joomla‘, then your site will be accessed at     yoursitename.com/Joomla.

Remove source file and change ownership of directory with user and group “apache” recursively with below command.

Step 7 :- rm -rf  Joomla_3.4.3-Stable-Full_Package.tar.gz
Step 8 :- chown -R apache:apache   /var/www/html/
Step 9 :- ls -l

Apache Server Configuration
Open Apache configuration file with VI or your choice editor.

Step 10 :- vi  /etc/httpd/conf/httpd.conf

Search directive as below and change it appropriate.

ServerAdmin admin@cloudnetwork.in

ServerName test.cloudnetwork.in:80

Note: User and Group should be apache

Restart httpd (Apache) Service




Restart Apache web service.
Step 11 :- systemctl restart httpd.service    or     service httpd restart

To make httpd service started automatically in next boot, use below command.
Step 12 :- systemctl enable httpd.service   or     chkconfig --level 35 httpd on

Verify your httpd is running and listening request on port 80.
Step 13 :- netstat -antp | grep httpd

tcp     0      0 :::80            :::*          LISTEN 1705/httpd

Iptables (Firewall) Configuration

Please open port 80 on firewall or disable iptables
Step 14 :- firewall-cmd  --zone=public  --add-port=80/tcp  --permanent
Step 15 :- firewall-cmd  --reload

Create Joomla Database

You can set MySQL root password using following command or else skip if you already  
Step 17 :- mysqladmin -u root password ‘fedora'

Login with root credential in MySQL.
Step 18 :- mysql -u root -p

Create database called “joomla” in MySQL.
Step 19 :- mysql> create database joomla;

Grant privilege on joomla database for “joomla” user in MySQL.
Step 20 :- mysql> grant all on joomla.*  to joomla@'localhost' identified by ‘fedora';
Step 21 :- mysql> flush privileges;

Restart MySQL service and auto enable at system startup.
Step 22 :- systemctl restart mariadb.service  &&  systemctl enable mariadb.service
Step 23 :- service mysqld restart  &&  chkconfig --level 35 mysqld on

Installation and Configuration of Joomla

Open your browser and type
http://192.168.0.124
http://192.168.0.124/installation
to configure Joomla step by step.


Database Configuration

Fill up the details like database name, username and password which was set earlier in Step 6 for MySQLsettings and click ‘Next‘.

FTP Configuration

Install Sample Data

Congratulation! Joomla ! Installation Completed.

Error

Notice: If you get any error saying that the configuration file or directory is not writable, that means you have to copy and paste the following configuration code to ‘configuration.php’ file in your site root folder.

Click on this link : https://jumpshare.com/v/YbGz0lSkWBOo473I9x7A?b=rv3CQKpVgFsrb8TVrylp
Caution: Remove installation directory clicking button ‘Remove Installation‘. If you get error that installation folder could not be deleted, you can use following command to delete manually.

# rm -rf installation/





That's it
----------------------------------------------------------------------------------------------------------------------
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.

For The Latest Technology & Topics...

Redhat Linux | Linux Howtos | Ubuntu | Linux News | Centos | Linux Mint | Fedora | Linux Commands | Interview Question & Answers | Lintu Tricks | Linux Commands | Debian | Cinnamon | Apache | MySQL | Databases | Oracle-db | Java | SQL | pgAdmin | DevOps | Scripting | Python | Jenkins | Amazon AWS | Programming | Videos for Developers | Security & Hacking | VMware | Desktop | Laptops | Servers | Networking | Cloud | Installation | Operating System | MS Office | Switches | Routers | Firewall | Open Source | Outlook,Thunderbird, Gmail Emails | Monitoring Tools | JavaScript | YouTube | Android | Smartphone | Facebook | WhatsApp | Snapchat | Instagram | WordPress | Virtualbox | Browsers | Software | Hardware | Internet | Maintenance & Optimization | Antivirus | News | Google Play Store Apps | Prices | SEO | PC Games | Mobile Games | iPhone | Microsoft Windows 7 | Windows 10 | Windows Server 2012/2016/2019 | Windows Tips & Tricks | Tutorials | Training | Troubleshooting | Guides | Tips and Tricks | Reviews | Technology | IT Support | IT News | Advice for Technology | Features | Cloud | Cloud Computing | Privacy & Security| Banks

Follow Cloud Network on Twitter, Facebook and Subscribe to our YouTube channel.