Archiv der Kategorie: Software

phpmyadmin installieren und absichern

Step One — Install phpMyAdmin

To get started, we can simply install phpMyAdmin from the default Ubuntu repositories.

We can do this by updating our local package index and then using the apt packaging system to pull down the files and install them on our system:

sudo apt-get update
sudo apt-get install phpmyadmin

This will ask you a few questions in order to configure your installation correctly.

  • For the server selection, choose apache2. Note: If you do not hit „SPACE“ to select Apache, the installer will not move the necessary files during installation. Hit „SPACE“, „TAB“, and then „ENTER“ to select Apache.
  • Select yes when asked whether to use dbconfig-common to set up the database
  • You will be prompted for your database administrator’s password
  • You will then be asked to choose and confirm a password for the phpMyAdmin application itself

The installation process actually adds the phpMyAdmin Apache configuration file into the/etc/apache2/conf-enabled/ directory, where it is automatically read.

The only thing we need to do is explicitly enable the php5-mcrypt extension, which we can do by typing:

sudo php5enmod mcrypt

Afterwards, you’ll need to restart Apache for your changes to be recognized:

sudo service apache2 restart

You can now access the web interface by visiting your server’s domain name or public IP address followed by /phpmyadmin:

http://domain_name_or_IP/phpmyadmin

phpmyadmin login screen

You can now log into the interface using the root username and the administrative password you set up during the MySQL installation.

When you log in, you’ll see the user interface, which will look something like this:

phpmyadmin user interface

Step Two — Secure your phpMyAdmin Instance

We were able to get our phpMyAdmin interface up and running fairly easily. However, we are not done yet. Because of its ubiquity, phpMyAdmin is a popular target for attackers. We need to secure the application to help prevent unauthorized use.

One of the easiest way of doing this is to place a gateway in front of the entire application. We can do this using Apache’s built-in .htaccess authentication and authorization functionalities.

Configure Apache to Allow .htaccess Overrides

First, we need to enable the use of .htaccess file overrides by editing our Apache configuration file.

We will edit the linked file that has been placed in our Apache configuration directory:

sudo nano /etc/apache2/conf-available/phpmyadmin.conf

We need to add an AllowOverride All directive within the <Directory /usr/share/phpmyadmin>section of the configuration file, like this:

<Directory /usr/share/phpmyadmin>
    Options FollowSymLinks
    DirectoryIndex index.php
    AllowOverride All
    . . .

When you have added this line, save and close the file.

To implement the changes you made, restart Apache:

sudo service apache2 restart

Create an .htaccess File

Now that we have enabled .htaccess use for our application, we need to create one to actually implement some security.

In order for this to be successful, the file must be created within the application directory. We can create the necessary file and open it in our text editor with root privileges by typing:

sudo nano /usr/share/phpmyadmin/.htaccess

Within this file, we need to enter the following information:

AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/phpmyadmin/.htpasswd
Require valid-user

Let’s go over what each of these lines mean:

  • AuthType Basic: This line specifies the authentication type that we are implementing. This type will implement password authentication using a password file.
  • AuthName: This sets the message for the authentication dialog box. You should keep this generic so that unauthorized users won’t gain any information about what is being protected.
  • AuthUserFile: This sets the location of the password file that will be used for authentication. This should be outside of the directories that are being served. We will create this file shortly.
  • Require valid-user: This specifies that only authenticated users should be given access to this resource. This is what actually stops unauthorized users from entering.

When you are finished, save and close the file.

Create the .htpasswd file for Authentication

Now that we have specified a location for our password file through the use of the AuthUserFiledirective within our .htaccess file, we need to create this file.

We actually need an additional package to complete this process. We can install it from our default repositories:

sudo apt-get install apache2-utils

Afterward, we will have the htpasswd utility available.

The location that we selected for the password file was „/etc/phpmyadmin/.htpasswd„. Let’s create this file and pass it an initial user by typing:

sudo htpasswd -c /etc/phpmyadmin/.htpasswd username

You will be prompted to select and confirm a password for the user you are creating. Afterwards, the file is created with the hashed password that you entered.

If you want to enter an additional user, you need to do so without the -c flag, like this:

sudo htpasswd /etc/phpmyadmin/.htpasswd additionaluser

Now, when you access your phpMyAdmin subdirectory, you will be prompted for the additional account name and password that you just configured:

http://domain_name_or_IP/phpmyadmin

phpMyAdmin apache password

After entering the Apache authentication, you’ll be taken to the regular phpMyAdmin authentication page to enter your other credentials. This will add an additional layer of security since phpMyAdmin has suffered from vulnerabilities in the past.

Conclusion

You should now have phpMyAdmin configured and ready to use on your Ubuntu 14.04 server.

Neuen LAMP Server in Betrieb nehmen

wichtig, bei den meisten Virtual Servern, die gehostet werden ist Apache, PHP und MySQL schon installiert, muß aber noch in Betrieb genommen werden

apt-get update
apt-get upgrade

um erstmal die vorhandene Software auf den neuesten Stand zu bringen

apache starten PHP müßte dann mit kommen, kann über phpinfo.php im Document Root Verzeichnis überprüft werden

MySQL starten und mit

mysqladmin -u root password NEUESPASSWORD

ein Password vergeben, damit die diversen Scripte, die auf MySQL zugreifen und ein Passwort für den root user haben wollen auch funktionieren.

Susi Konfiguration Teil 4

Tja Besonderheit bei diesem Notebook, Adobe Photoshop Elements und Adobe Premiere Elements sollen noch mit drauf.

Also CD rein und los mit Photoshop. Neustart am Ende der Installation. Es funktioniert.

Jetzt Premiere Elements, AutoPlay auf der DVD aufgerufen, Seriennummer eingegeben los gehts.
Neustart am Ende der Installation und es funktioniert.

Das wars.

Susi konfigurieren Teil 3

Einschalten und dann üner Internet Explorer versucht Office zu installieren. Also erstmal mit Hilfe des ProductKey von der PKC (ProductKeyCard), den Aktivierungscode besorgen.

Habe auf Anmelden geklickt und er hat die Kennung vom Rechner Thomas Waap (thomas.waap@skradaba.com) übernommen und dann hat er auch den PKC akzeptiert.

Dann klicke ich auf weiter und da kann man es installieren, oder aber man schaut rechts in der Mitte nach dem Eintrag „Von einem Datenträger installieren“, da erhält man dann den Aktivierungscode.

Dann vom selbst früher schon gemachten Datenträger installiert, mit diesem Aktivierungscode.

Hat funktioniert.

In Outlook noch die SKRADABA Mailadresse eingerichtet.

Und dann auch noch in dem bordeigenen Windows 8 Tool

Den Rest sehen wir später.

Susi Konfiguration Teil 2

Nach der Grundkonfiguration folgt nun die weitere Konfiguration:

Intel Manageability Engine Firmware Recovery Agent aktualisieren und Lizenz bestätigen

Norton Internet Security, war vorinstalliert, wurde deinstalliert

Kaspersky Internet Security 2013 wurde installiert, aktiviert und aktualisiert.

 

Zebulon konfigurieren Teil 4

So, nun noch das Kensingten Universal Dock installieren.

QuickStart sagt, als erstes Software installieren, dann ale Geräte an das Dock, dann das Dock an den Strom und erst dann das Dock an den Rechner, wir starten also mit der Software-Installation.

Also CD einlegen, warten, warten und warten bis Win8 endlich erklärt, man könne nun wählen was man mit dem Inhalt der CD/DVD machen wolle. Also wir wollen die setup.exe starten.

Und da waren sie wieder, meine drei Probleme…. der Rechner meldet:

„Es gibt Kompatibilitätsprobleme mit der Software“

Die Software läßt mich direkt bei DisplayLink gucken, die schicken mich dann aber auf die Kensington Seite. Dort hole ich mir auf der Supportseite, ganz kleiner Link oben links, die aktuältesten Treiber für die Docking Station, bestehend aus Ethernettreiber und Display Treiber, das USB-Geraffel und die Soundsachen kriegt er wohl mit Bordmitteln hin.

Nach dem Download direkt Ethernet und dann Display-Treiber installiert und voila, es funktioniert.

Zebulon konfigurieren Teil 3

Einschalten und dann üner Internet Explorer versucht Office zu installieren. Also erstmal mit Hilfe des ProductKey von der PKC (ProductKeyCard), den Aktivierungscode besorgen, ABER….

… es funktioniert nicht, kein gültiger PKC sagt die Internetseite. 2 Stunden und 7 Microsoft-Support-Mitarbeiter und Mitarbeiterinnen später, geht es dann; Lösung: im Internet Explorer, oben rechts auf Anmelden klicken, um die Office Kopie mit einem Online-Konto zu verbinden.

Habe also auf Anmelden geklickt und er hat die ennung vom Rechner Jörg Conradt (joerg@skradaba.com) übernommen und dann hat er auch den PKC akzeptiert.

meldet man sich dann unter office.microsoft.com mit dieser Kennung an, geht auf „Mein Office“ und dort rechts auf „Mein Konto“, findet man dort jetzt Office Home and Business 2013, da kann man es installieren, oder aber man schaut rechts in der Mitte nach dem Eintrag „Von einem Datenträger installieren“, da erhält man dann den Aktivierungscode.

Dann vom selbst früher schon gemachten Datenträger installiert, mit diesem Aktivierungscode.

Hat funktioniert.

Google Chrome noch installiert, dann aber den IE wieder als Standardbrowser eingetragen.

Den Rest sehen wir später.

Zebulon Grundkonfiguration

Deutsch als Sprache

Deutschland und Deutche Tastatur und so

Name des Gerätes: Zebulon Farbe dunkles und helles Blau

Email Adresse: joerg@skradaba.com (siehe PWSafe)

MS Konto angelegt

sehr schöne Farbspiele während er uns lautlos wissen läßt, daß der PC vorbereitet wird von WIR, wer auch immer das sein mag.

jetzt werden zum selben lautlosen Farbspiel Apps installiert

Einiges muss noch erledigt werden läßt er uns wissen

Fast geschafft! läßt er uns nun hoffen

Nun denn es erscheint die Windows Kacheloberfläche, für’s erste reicht’s