Jump to content

Recommended Posts

Posted

 Γειά σας και πάλι. Σήμερα θα δούμε την εγκατάσταση του XAMPP σε μια δημοφιλή διανομή, όπως είναι το Ubuntu, και στο τελευταίο θα δείτε πως θα εγκαταστήσετε την ιστοσελίδα και στα 2 λειτουργικά, και τα προβλήματα που θα αντιμετωπίσετε.

Τα βασικά τα εξηγήσαμε στο πρώτο μέρος, τι είναι το XAMPP δηλαδή, και τι κάνει. Οπότε θα προχωρήσουμε κατευθείαν στην εγκατάσταση. Θα πάτε σε αυτή τη σελίδα και θα κατεβάσετε το XAMPP για Linux σε συμπιεσμένη μορφή(tar.gz).

 

edw.png

Περιμένουμε να τελειώσει το κατέβασμα και καταλήγουμε με ένα αρχείο με όνομα "xampp-linux-1.8.1.tar.gz"(για τη συγκεκριμένη έκδοση που είναι η τελευταία).

Ανοίγουμε το Terminal(Ctrl+Alt+t, με πληκτρολόγιο στα αγγλικά), και γράφουμε "sudo su". Εκεί θα μας ζητήσει τον κωδικό μας ώστε να αποκτήσουμε δικαιώματα root(ο κωδικός δε θα φαίνεται κατά την πληκτρολόγηση).

Μόλις το κάνουμε αυτό θα πάμε στη διαδρομή που κατεβάσαμε το xampp. Έστω πως είναι στο Downloads. Θα πατήσουμε από το terminal "cd Downloads" και θα πατήσουμε enter και θα μεταφερθούμε στη διαδρομή Downloads. Στη συνέχεια θα πληκτρολογήσουμε την εντολή "tar xvfz xampp-linux-1.8.1.tar.gz -C /opt". Αυτό που θα κάνει είναι να κάνει extract τα αρχεία που βρίσκονται μέσα στο συμπιεσμένο αρχείο στο φάκελο /opt.
 

kajks.png
fgrwe.png

Τώρα αν πάτε στο File System>opt θα δείτε ένα φάκελο με το όνομα "lampp". Αυτό σημαίνει πως τα έχουμε κάνει όλα σωστά μέχρι τώρα. Όμως οι διαδρομές μέσα στον φάκελο opt απαιτούν δικαιώματα root και όχι απλώς διαχειριστή.
Οπότε πηγαίνουμε και πάλι στο terminal και πατάμε την εντολή gksu nautilus. Θα μας ανοίξει ένα παράθυρο πλοήγησης στα αρχεία μας. Έτσι πλοηγούμαστε ως root.

Οπότε πάμε στο File System>opt και βλέπουμε το αρχείο lampp. Πατάμε πάνω του δεξί κλικ και Ιδιότητες. Πάμε στην καρτέλα Δικαιώματα(τη μεσαία) και κάνουμε τις ρυθμίσεις έτσι:

%CF%8545.png Γίνεται και με chmod 777, αλλά το έκανα έτσι για να καταλάβετε τι κάνουμε.

Μόλις κάνετε αυτές τις ρυθμίσεις πατήστε το κουμπί "Apply Permissions To Enclosed Files" και κλείστε το παράθυρο.
Αυτό γιατί το κάναμε; Πολύ απλά για να δώσουμε δικαιώματα χρήσης από τον root στον administrator(τον λογαριασμό μας).

Πάμε να το επιβεβαιώσουμε. Κλείνουμε όλα τα terminals και πηγαίνουμε και πάλι στον φάκελο opt>lampp. Αν δούμε τα αρχεία χωρίς ένα εικονίδιο με ένα λουκέτο, και πατώντας δεξί κλικ όλες οι επιλογές(δημιουργία φακέλου, μετονομασία κτλ)είναι ενεργοποιημένες, τότε είμαστε και πάλι τζετ!

Πως θα ξεκινήσουμε το xampp(lampp); Πολύ απλά αν είμαστε στον φάκελο opt(αν δε είμαστε πάμε γράφοντας σε ένα terminal cd, και αφού πατήσουμε enter γράφουμε cd /root και μετά cd /opt, όντας root).
Μετά(αφού πάμε στην διαδρομή opt) γράφουμε "lampp/lampp start"

htr.png

 Πάμε τώρα σε έναν browser και γράφουμε στην URL(Uniform Resource Locator) "localhost". Αν μας φορτώσει είμαστε έτοιμοι για το τελευταίο tutorial που θα είναι η εγκατάσταση της τρωτής μας σελίδας, ώστε να μάθουμε μέσα από εκεί.

bdf.png


 Όλα οκ! Πως το σταματάμε τώρα; Δε θέλει και πολύ μυαλό! lampp/lampp stop.

Τέλος και για την ώρα!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • What is the reason for this new behavior where people criticize other users' posts? Do they think people are naive? Here everyone understands and everyone knows who's who. Focus on your work and be happy!    Lately, all they do is criticize anyone who posts anything; it's pure spam. Are they just looking for fame?  
    • Of course, bro So he writes to the admin: “Remove reactions because Skylord talks too much and says things that will make me lose clients.” And boom.. Maxor removes the reactions. Then he says: “Close my topics because too much nonsense is being written on my server.” And boom... the topics get closed. Bro, what century are we living in? People are not stupid. Just think for a second. Of course I won’t be able to fix anything like this. But at the same time, everyone here acts like they’re so great. They write their projects here, selling things for $5k–$10k  but in reality these fools just can’t find clients, so they spam nonsense and pretend they’re some huge professionals selling “super professional” files. From this point on, I can confirm that I will no longer be writing comments, replying to topics, or saying anything about anyone here. Honestly, I no longer care about the people on this forum who are trying to sell things, make a quick $100, and pretend to be something they are not. Many of these so-called “projects” and “official files” turn out to be fake, copied, or misleading. And let’s be honest this is not something new. There have been situations in the past where people asked me for help, copied things from my test servers, took my scripts or folders, and then tried to present them as their own official work. This kind of behavior should be visible to everyone. I am addressing the administration of this forum directly: these things should not be hidden. You should not be deleting posts, closing topics, removing replies, or covering up the truth just because someone is exposing what is actually happening. What kind of community are you building if the truth is constantly being hidden? For years, posts have been removed, topics have been closed, and replies have disappeared just because people said something uncomfortable. That is honestly sad. This is my final message. I no longer care what happens with this forum. Ban me if you want, remove my posts if you want, do whatever you want. I am done here.   I said what I had to say. @Maxtor    
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..