WordPress

Installing WordPress Locally with XAMPP (Step by Step)

What Is XAMPP and Why Use It?

XAMPP is a free software package that turns your computer into a local web server. The letters in its name stand for Apache (web server), MySQL/MariaDB (database), PHP and Perl. Because it bundles the components WordPress needs to run into a single package, it lets you experiment with WordPress on your own computer without going online and without paying for hosting.

A local installation is ideal especially for those who want to try out themes and plugins, finish a site's design before going live, or learn WordPress. None of the mistakes you make affect your live site.

Step 1: Download and Install XAMPP

Download the XAMPP version suitable for your operating system from apachefriends.org. Run the setup wizard; in the component selection, at least Apache, MySQL and phpMyAdmin should be checked. It is recommended to install it in the default directory (usually C:\xampp on Windows).

Step 2: Start Apache and MySQL

When the installation finishes, open the XAMPP Control Panel. Click the Start buttons next to the Apache and MySQL rows. Both should turn green and begin running. If you type the following address into your browser and see the XAMPP welcome page, your server is ready:

http://localhost

Step 3: Create a Database

WordPress needs a database to store its data.

  • In your browser, go to http://localhost/phpmyadmin.
  • Click the Databases tab at the top left.
  • Type a name in the database name field (for example wordpress_deneme) and click the Create button.

Locally, the username is usually root and the password is empty. We will enter these during installation.

Step 4: Place the WordPress Files

Download WordPress from wordpress.org and unzip the file. Copy the resulting wordpress folder into the C:\xampp\htdocs directory. If you wish, you can rename the folder to match your project (for example htdocs/yoursite). Your site address is determined by this folder name: http://localhost/yoursite.

Step 5: Run the Setup Wizard

In your browser, go to http://localhost/yoursite. The WordPress installation screen opens:

  • Choose a language.
  • Enter the database details: database name wordpress_deneme, username root, password empty, host localhost.
  • Click the "Run" button.
  • Enter the site title, an administrator username and password, and your email address.
  • When you click "Install WordPress", the installation is complete.

You can now log in to the admin panel at http://localhost/yoursite/wp-admin and start developing your site.

Things to Watch Out for When Working Locally

Keep a few points in mind when developing locally. Every time the computer restarts you need to Start Apache and MySQL again from XAMPP. Your local site is only visible on your own computer; for others to access it you must move it to a live server. Also, because the local site is offline, email sending and some payment/external service integrations may not work.

The Advantages of Local Development

Working locally has many concrete advantages over a live server, and knowing them makes it clear why you should prefer this method. Above all, you gain speed; since the files are on your own computer, changes appear instantly without waiting for an internet connection. You are at ease in terms of security; because your local site is offline, the experiments you make affect no one and do not put your live site at risk. The cost is zero; you can try out themes, plugins and designs as much as you want without paying for hosting. Finally, it is ideal for learning; you can explore all of WordPress's features without the fear of making mistakes.

PHP Version and Memory Settings

The PHP version that comes with XAMPP may sometimes not be recent enough for the current WordPress or for some plugins. To see which PHP version you are using, you can go to http://localhost/dashboard/phpinfo.php in your browser. In addition, when you install large themes or many plugins, you may get an "out of memory" error. To solve this, you can open XAMPP's php\php.ini file and increase the relevant values:

memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M

Don't forget to restart Apache after making the change.

Alternative Tools Instead of Local XAMPP

Although XAMPP is the best-known solution, there are also more practical alternatives focused solely on WordPress development. LocalWP (formerly Local by Flywheel) is a user-friendly tool that installs WordPress with a single click and makes it easy to switch between SSL and different PHP versions. Laragon offers a fast and lightweight package for Windows users. WampServer is similar to XAMPP but focused only on Windows. If you are only going to install WordPress, a dedicated tool like LocalWP makes your job noticeably easier; if you are going to work with multiple technologies, XAMPP is a more general solution.

Frequently Asked Questions (FAQ)

Can others see my local WordPress site?

No. A site you set up with XAMPP runs only on your own computer, on localhost. For others to be able to access it, you need to move the site to a live hosting server.

Why is the root user's password empty locally?

By default XAMPP installs MySQL's root user without a password, because the local environment is offline and intended only for development. In the setup wizard the username is root and the password field is left empty.

Do I have to restart XAMPP every time I start up?

Yes. Every time you restart your computer you need to Start Apache and MySQL again from the XAMPP Control Panel. If you wish, you can also install these services as Windows services.

Conclusion

XAMPP is the most common way to try out WordPress on your own computer for free and safely. After starting Apache and MySQL and creating a database, all you need is to put the files in the htdocs directory and run the setup wizard. Once you have worked comfortably locally and finished the design, it's time to move the site to a live server.

Related Articles

WordPress

WordPress lokal mit XAMPP installieren (Schritt für Schritt)

Was ist XAMPP und warum sollte man es verwenden?

XAMPP ist ein kostenloses Softwarepaket, das Ihren Computer in einen lokalen Webserver verwandelt. Die Buchstaben im Namen stehen für Apache (Webserver), MySQL/MariaDB (Datenbank), PHP und Perl. Da es die Komponenten, die WordPress zum Laufen benötigt, in einem einzigen Paket bündelt, können Sie mit WordPress auf Ihrem eigenen Computer experimentieren, ohne online zu gehen und ohne für Hosting zu bezahlen.

Eine lokale Installation ist besonders ideal für alle, die Themes und Plugins ausprobieren, das Design einer Website vor dem Livegang fertigstellen oder WordPress lernen möchten. Keiner der Fehler, die Sie machen, wirkt sich auf Ihre Live-Website aus.

Schritt 1: XAMPP herunterladen und installieren

Laden Sie von apachefriends.org die für Ihr Betriebssystem passende XAMPP-Version herunter. Führen Sie den Einrichtungsassistenten aus; bei der Komponentenauswahl sollten zumindest Apache, MySQL und phpMyAdmin angehakt sein. Es wird empfohlen, die Installation im Standardverzeichnis vorzunehmen (unter Windows üblicherweise C:\xampp).

Schritt 2: Apache und MySQL starten

Wenn die Installation abgeschlossen ist, öffnen Sie das XAMPP Control Panel. Klicken Sie auf die Start-Schaltflächen neben den Zeilen für Apache und MySQL. Beide sollten grün werden und zu laufen beginnen. Wenn Sie die folgende Adresse in Ihren Browser eingeben und die XAMPP-Willkommensseite sehen, ist Ihr Server bereit:

http://localhost

Schritt 3: Eine Datenbank erstellen

WordPress benötigt eine Datenbank, um seine Daten zu speichern.

  • Gehen Sie in Ihrem Browser zu http://localhost/phpmyadmin.
  • Klicken Sie oben links auf den Reiter „Datenbanken" (Databases).
  • Geben Sie im Feld für den Datenbanknamen einen Namen ein (zum Beispiel wordpress_deneme) und klicken Sie auf die Schaltfläche „Anlegen" (Create).

Lokal lautet der Benutzername in der Regel root, und das Passwort ist leer. Diese geben wir während der Installation ein.

Schritt 4: Die WordPress-Dateien platzieren

Laden Sie WordPress von wordpress.org herunter und entpacken Sie die Datei. Kopieren Sie den daraus entstandenen Ordner wordpress in das Verzeichnis C:\xampp\htdocs. Wenn Sie möchten, können Sie den Ordner passend zu Ihrem Projekt umbenennen (zum Beispiel htdocs/ihreseite). Ihre Website-Adresse wird durch diesen Ordnernamen bestimmt: http://localhost/ihreseite.

Schritt 5: Den Einrichtungsassistenten ausführen

Gehen Sie in Ihrem Browser zu http://localhost/ihreseite. Der WordPress-Installationsbildschirm öffnet sich:

  • Wählen Sie eine Sprache.
  • Geben Sie die Datenbankdetails ein: Datenbankname wordpress_deneme, Benutzername root, Passwort leer, Host localhost.
  • Klicken Sie auf die Schaltfläche „Senden".
  • Geben Sie den Website-Titel, einen Administrator-Benutzernamen und ein Passwort sowie Ihre E-Mail-Adresse ein.
  • Wenn Sie auf „WordPress installieren" klicken, ist die Installation abgeschlossen.

Sie können sich nun unter http://localhost/ihreseite/wp-admin im Administrationsbereich anmelden und mit der Entwicklung Ihrer Website beginnen.

Worauf Sie beim lokalen Arbeiten achten sollten

Beachten Sie beim lokalen Entwickeln einige Punkte. Jedes Mal, wenn der Computer neu startet, müssen Sie Apache und MySQL erneut über XAMPP starten. Ihre lokale Website ist nur auf Ihrem eigenen Computer sichtbar; damit andere darauf zugreifen können, müssen Sie sie auf einen Live-Server übertragen. Da die lokale Website außerdem offline ist, funktionieren der E-Mail-Versand und einige Zahlungs- bzw. externe Dienstintegrationen möglicherweise nicht.

Die Vorteile der lokalen Entwicklung

Das lokale Arbeiten bietet gegenüber einem Live-Server viele konkrete Vorteile, und wenn Sie diese kennen, wird deutlich, warum Sie diese Methode bevorzugen sollten. Vor allem gewinnen Sie an Geschwindigkeit; da sich die Dateien auf Ihrem eigenen Computer befinden, werden Änderungen sofort sichtbar, ohne auf eine Internetverbindung warten zu müssen. In puncto Sicherheit sind Sie entspannt; da Ihre lokale Website offline ist, wirken sich Ihre Experimente auf niemanden aus und gefährden Ihre Live-Website nicht. Die Kosten betragen null; Sie können Themes, Plugins und Designs so oft ausprobieren, wie Sie möchten, ohne für Hosting zu bezahlen. Schließlich ist es ideal zum Lernen; Sie können alle Funktionen von WordPress erkunden, ohne Angst vor Fehlern haben zu müssen.

PHP-Version und Speichereinstellungen

Die PHP-Version, die mit XAMPP geliefert wird, ist manchmal möglicherweise nicht aktuell genug für das derzeitige WordPress oder für einige Plugins. Um zu sehen, welche PHP-Version Sie verwenden, können Sie in Ihrem Browser zu http://localhost/dashboard/phpinfo.php gehen. Außerdem kann es vorkommen, dass Sie beim Installieren großer Themes oder vieler Plugins eine Fehlermeldung wegen „nicht ausreichendem Speicher" erhalten. Um dies zu lösen, können Sie die Datei php\php.ini von XAMPP öffnen und die entsprechenden Werte erhöhen:

memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M

Vergessen Sie nicht, Apache nach der Änderung neu zu starten.

Alternative Werkzeuge anstelle des lokalen XAMPP

Obwohl XAMPP die bekannteste Lösung ist, gibt es auch praktischere Alternativen, die sich ausschließlich auf die WordPress-Entwicklung konzentrieren. LocalWP (früher Local by Flywheel) ist ein benutzerfreundliches Werkzeug, das WordPress mit einem einzigen Klick installiert und den Wechsel zwischen SSL und verschiedenen PHP-Versionen erleichtert. Laragon bietet ein schnelles und schlankes Paket für Windows-Benutzer. WampServer ähnelt XAMPP, ist aber nur auf Windows ausgerichtet. Wenn Sie nur WordPress installieren möchten, erleichtert ein spezialisiertes Werkzeug wie LocalWP Ihre Arbeit spürbar; wenn Sie mit mehreren Technologien arbeiten werden, ist XAMPP eine allgemeinere Lösung.

Häufig gestellte Fragen (FAQ)

Können andere meine lokale WordPress-Website sehen?

Nein. Eine Website, die Sie mit XAMPP einrichten, läuft nur auf Ihrem eigenen Computer, auf localhost. Damit andere darauf zugreifen können, müssen Sie die Website auf einen Live-Hosting-Server übertragen.

Warum ist das Passwort des root-Benutzers lokal leer?

XAMPP installiert den root-Benutzer von MySQL standardmäßig ohne Passwort, weil die lokale Umgebung offline ist und nur für die Entwicklung gedacht ist. Im Einrichtungsassistenten lautet der Benutzername root, und das Passwortfeld bleibt leer.

Muss ich XAMPP bei jedem Start neu starten?

Ja. Jedes Mal, wenn Sie Ihren Computer neu starten, müssen Sie Apache und MySQL erneut über das XAMPP Control Panel starten. Wenn Sie möchten, können Sie diese Dienste auch als Windows-Dienste installieren.

Fazit

XAMPP ist der gängigste Weg, WordPress kostenlos und sicher auf Ihrem eigenen Computer auszuprobieren. Nachdem Sie Apache und MySQL gestartet und eine Datenbank erstellt haben, müssen Sie nur noch die Dateien in das Verzeichnis htdocs legen und den Einrichtungsassistenten ausführen. Sobald Sie lokal bequem gearbeitet und das Design fertiggestellt haben, ist es an der Zeit, die Website auf einen Live-Server zu übertragen.

Verwandte Artikel

WordPress

Installer WordPress en local avec XAMPP (pas à pas)

Qu'est-ce que XAMPP et pourquoi l'utiliser ?

XAMPP est un ensemble logiciel gratuit qui transforme votre ordinateur en serveur web local. Les lettres de son nom correspondent à Apache (serveur web), MySQL/MariaDB (base de données), PHP et Perl. Comme il regroupe en un seul paquet les composants dont WordPress a besoin pour fonctionner, il vous permet d'expérimenter avec WordPress sur votre propre ordinateur, sans vous connecter à Internet et sans payer d'hébergement.

Une installation en local est idéale notamment pour celles et ceux qui souhaitent essayer des thèmes et des extensions, finaliser le design d'un site avant sa mise en ligne ou apprendre WordPress. Aucune des erreurs que vous commettez n'affecte votre site en production.

Étape 1 : Télécharger et installer XAMPP

Téléchargez depuis apachefriends.org la version de XAMPP adaptée à votre système d'exploitation. Lancez l'assistant d'installation ; dans la sélection des composants, Apache, MySQL et phpMyAdmin doivent au minimum être cochés. Il est recommandé de procéder à l'installation dans le répertoire par défaut (généralement C:\xampp sous Windows).

Étape 2 : Démarrer Apache et MySQL

Une fois l'installation terminée, ouvrez le XAMPP Control Panel. Cliquez sur les boutons Start situés à côté des lignes Apache et MySQL. Les deux doivent passer au vert et commencer à fonctionner. Si vous saisissez l'adresse suivante dans votre navigateur et que vous voyez la page d'accueil de XAMPP, votre serveur est prêt :

http://localhost

Étape 3 : Créer une base de données

WordPress a besoin d'une base de données pour stocker ses informations.

  • Dans votre navigateur, rendez-vous à l'adresse http://localhost/phpmyadmin.
  • Cliquez sur l'onglet « Bases de données » (Databases) en haut à gauche.
  • Saisissez un nom dans le champ du nom de la base de données (par exemple wordpress_deneme) et cliquez sur le bouton « Créer » (Create).

En local, le nom d'utilisateur est généralement root et le mot de passe est vide. Nous les saisirons lors de l'installation.

Étape 4 : Placer les fichiers de WordPress

Téléchargez WordPress depuis wordpress.org et décompressez le fichier. Copiez le dossier wordpress ainsi obtenu dans le répertoire C:\xampp\htdocs. Si vous le souhaitez, vous pouvez renommer le dossier en fonction de votre projet (par exemple htdocs/votresite). L'adresse de votre site est déterminée par ce nom de dossier : http://localhost/votresite.

Étape 5 : Lancer l'assistant d'installation

Dans votre navigateur, rendez-vous à l'adresse http://localhost/votresite. L'écran d'installation de WordPress s'ouvre :

  • Choisissez une langue.
  • Saisissez les informations de la base de données : nom de la base wordpress_deneme, nom d'utilisateur root, mot de passe vide, hôte localhost.
  • Cliquez sur le bouton « Valider ».
  • Saisissez le titre du site, un nom d'utilisateur et un mot de passe administrateur, ainsi que votre adresse e-mail.
  • Lorsque vous cliquez sur « Installer WordPress », l'installation est terminée.

Vous pouvez désormais vous connecter au tableau de bord d'administration à l'adresse http://localhost/votresite/wp-admin et commencer à développer votre site.

Points à surveiller lorsque vous travaillez en local

Gardez quelques points à l'esprit lorsque vous développez en local. Chaque fois que l'ordinateur redémarre, vous devez relancer Apache et MySQL depuis XAMPP. Votre site local n'est visible que sur votre propre ordinateur ; pour que d'autres puissent y accéder, vous devez le transférer vers un serveur en production. De plus, comme le site local est hors ligne, l'envoi d'e-mails et certaines intégrations de paiement ou de services externes peuvent ne pas fonctionner.

Les avantages du développement en local

Travailler en local présente, par rapport à un serveur en production, de nombreux avantages concrets, et les connaître permet de comprendre clairement pourquoi vous devriez privilégier cette méthode. Avant tout, vous gagnez en rapidité ; comme les fichiers se trouvent sur votre propre ordinateur, les modifications apparaissent instantanément, sans avoir à attendre une connexion Internet. Sur le plan de la sécurité, vous êtes tranquille ; comme votre site local est hors ligne, les expériences que vous menez n'affectent personne et ne mettent pas votre site en production en danger. Le coût est nul ; vous pouvez essayer thèmes, extensions et designs autant que vous le souhaitez, sans payer d'hébergement. Enfin, c'est idéal pour apprendre ; vous pouvez explorer toutes les fonctionnalités de WordPress sans la crainte de commettre des erreurs.

Version de PHP et réglages de mémoire

La version de PHP fournie avec XAMPP peut parfois ne pas être assez récente pour le WordPress actuel ou pour certaines extensions. Pour voir quelle version de PHP vous utilisez, vous pouvez vous rendre dans votre navigateur à l'adresse http://localhost/dashboard/phpinfo.php. Par ailleurs, lorsque vous installez de gros thèmes ou de nombreuses extensions, vous pouvez recevoir une erreur de « mémoire insuffisante ». Pour résoudre cela, vous pouvez ouvrir le fichier php\php.ini de XAMPP et augmenter les valeurs concernées :

memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M

N'oubliez pas de redémarrer Apache après avoir effectué la modification.

Outils alternatifs au lieu de XAMPP en local

Bien que XAMPP soit la solution la plus connue, il existe aussi des alternatives plus pratiques, axées uniquement sur le développement WordPress. LocalWP (anciennement Local by Flywheel) est un outil convivial qui installe WordPress en un seul clic et facilite le passage entre SSL et différentes versions de PHP. Laragon propose un paquet rapide et léger pour les utilisateurs de Windows. WampServer ressemble à XAMPP, mais est centré uniquement sur Windows. Si vous comptez installer uniquement WordPress, un outil dédié comme LocalWP facilite nettement votre travail ; si vous allez travailler avec plusieurs technologies, XAMPP est une solution plus générale.

Foire aux questions (FAQ)

D'autres personnes peuvent-elles voir mon site WordPress local ?

Non. Un site que vous configurez avec XAMPP ne fonctionne que sur votre propre ordinateur, sur localhost. Pour que d'autres puissent y accéder, vous devez transférer le site vers un serveur d'hébergement en production.

Pourquoi le mot de passe de l'utilisateur root est-il vide en local ?

Par défaut, XAMPP installe l'utilisateur root de MySQL sans mot de passe, car l'environnement local est hors ligne et destiné uniquement au développement. Dans l'assistant d'installation, le nom d'utilisateur est root et le champ du mot de passe reste vide.

Dois-je redémarrer XAMPP à chaque démarrage ?

Oui. Chaque fois que vous redémarrez votre ordinateur, vous devez relancer Apache et MySQL depuis le XAMPP Control Panel. Si vous le souhaitez, vous pouvez aussi installer ces services en tant que services Windows.

Conclusion

XAMPP est le moyen le plus courant d'essayer WordPress gratuitement et en toute sécurité sur votre propre ordinateur. Après avoir démarré Apache et MySQL et créé une base de données, il ne vous reste plus qu'à placer les fichiers dans le répertoire htdocs et à lancer l'assistant d'installation. Une fois que vous avez travaillé confortablement en local et finalisé le design, il est temps de transférer le site vers un serveur en production.

Articles liés

WordPress

Installare WordPress in locale con XAMPP (passo dopo passo)

Che cos'è XAMPP e perché usarlo?

XAMPP è un pacchetto software gratuito che trasforma il Suo computer in un server web locale. Le lettere del nome corrispondono ad Apache (server web), MySQL/MariaDB (database), PHP e Perl. Poiché raccoglie in un unico pacchetto i componenti di cui WordPress ha bisogno per funzionare, Le consente di sperimentare con WordPress sul Suo computer, senza dover andare online e senza pagare un hosting.

Un'installazione in locale è ideale soprattutto per chi desidera provare temi ed estensioni, completare il design di un sito prima della pubblicazione o imparare WordPress. Nessuno degli errori che commette si ripercuote sul Suo sito in produzione.

Passo 1: Scaricare e installare XAMPP

Scarichi da apachefriends.org la versione di XAMPP adatta al Suo sistema operativo. Avvii la procedura guidata di installazione; nella selezione dei componenti devono essere selezionati almeno Apache, MySQL e phpMyAdmin. Si consiglia di effettuare l'installazione nella cartella predefinita (di solito C:\xampp su Windows).

Passo 2: Avviare Apache e MySQL

Una volta terminata l'installazione, apra il XAMPP Control Panel. Faccia clic sui pulsanti Start accanto alle righe di Apache e MySQL. Entrambi dovrebbero diventare verdi e iniziare a funzionare. Se digita il seguente indirizzo nel Suo browser e vede la pagina di benvenuto di XAMPP, il Suo server è pronto:

http://localhost

Passo 3: Creare un database

WordPress ha bisogno di un database in cui salvare i propri dati.

  • Nel Suo browser, vada all'indirizzo http://localhost/phpmyadmin.
  • Faccia clic sulla scheda «Database» (Databases) in alto a sinistra.
  • Inserisca un nome nel campo del nome del database (ad esempio wordpress_deneme) e faccia clic sul pulsante «Crea» (Create).

In locale, il nome utente è di norma root e la password è vuota. Li inseriremo durante l'installazione.

Passo 4: Collocare i file di WordPress

Scarichi WordPress da wordpress.org e decomprima il file. Copi la cartella wordpress così ottenuta nella directory C:\xampp\htdocs. Se lo desidera, può rinominare la cartella in base al Suo progetto (ad esempio htdocs/suosito). L'indirizzo del Suo sito è determinato da questo nome di cartella: http://localhost/suosito.

Passo 5: Eseguire la procedura guidata di installazione

Nel Suo browser, vada all'indirizzo http://localhost/suosito. Si aprirà la schermata di installazione di WordPress:

  • Scelga una lingua.
  • Inserisca i dati del database: nome del database wordpress_deneme, nome utente root, password vuota, host localhost.
  • Faccia clic sul pulsante «Invia».
  • Inserisca il titolo del sito, un nome utente e una password di amministratore e il Suo indirizzo e-mail.
  • Quando fa clic su «Installa WordPress», l'installazione è completata.

Ora può accedere al pannello di amministrazione all'indirizzo http://localhost/suosito/wp-admin e iniziare a sviluppare il Suo sito.

A cosa prestare attenzione quando si lavora in locale

Tenga presenti alcuni punti quando sviluppa in locale. Ogni volta che il computer si riavvia, deve avviare nuovamente Apache e MySQL da XAMPP. Il Suo sito locale è visibile soltanto sul Suo computer; affinché altri possano accedervi, deve trasferirlo su un server in produzione. Inoltre, poiché il sito locale è offline, l'invio di e-mail e alcune integrazioni di pagamento o di servizi esterni potrebbero non funzionare.

I vantaggi dello sviluppo in locale

Lavorare in locale offre numerosi vantaggi concreti rispetto a un server in produzione e conoscerli rende evidente perché dovrebbe preferire questo metodo. Innanzitutto guadagna in velocità; poiché i file si trovano sul Suo computer, le modifiche compaiono immediatamente, senza dover attendere una connessione a Internet. Sul piano della sicurezza è tranquillo; poiché il Suo sito locale è offline, gli esperimenti che effettua non incidono su nessuno e non mettono a rischio il Suo sito in produzione. Il costo è nullo; può provare temi, estensioni e progetti grafici quanto desidera, senza pagare un hosting. Infine, è ideale per imparare; può esplorare tutte le funzionalità di WordPress senza il timore di commettere errori.

Versione di PHP e impostazioni della memoria

La versione di PHP fornita con XAMPP a volte può non essere sufficientemente aggiornata per l'attuale WordPress o per alcune estensioni. Per sapere quale versione di PHP sta utilizzando, può recarsi nel browser all'indirizzo http://localhost/dashboard/phpinfo.php. Inoltre, quando installa temi di grandi dimensioni o numerose estensioni, può ricevere un errore di «memoria insufficiente». Per risolvere il problema, può aprire il file php\php.ini di XAMPP e aumentare i valori interessati:

memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M

Non dimentichi di riavviare Apache dopo aver apportato la modifica.

Strumenti alternativi rispetto a XAMPP in locale

Sebbene XAMPP sia la soluzione più conosciuta, esistono anche alternative più pratiche, focalizzate esclusivamente sullo sviluppo di WordPress. LocalWP (precedentemente Local by Flywheel) è uno strumento intuitivo che installa WordPress con un solo clic e facilita il passaggio tra SSL e diverse versioni di PHP. Laragon propone un pacchetto rapido e leggero per gli utenti Windows. WampServer è simile a XAMPP, ma è incentrato esclusivamente su Windows. Se intende installare soltanto WordPress, uno strumento dedicato come LocalWP semplifica notevolmente il Suo lavoro; se invece lavorerà con più tecnologie, XAMPP rappresenta una soluzione più generale.

Domande frequenti (FAQ)

Altre persone possono vedere il mio sito WordPress locale?

No. Un sito che configura con XAMPP funziona soltanto sul Suo computer, su localhost. Affinché altri possano accedervi, deve trasferire il sito su un server di hosting in produzione.

Perché in locale la password dell'utente root è vuota?

Per impostazione predefinita, XAMPP installa l'utente root di MySQL senza password, perché l'ambiente locale è offline ed è destinato esclusivamente allo sviluppo. Nella procedura guidata di installazione il nome utente è root e il campo della password viene lasciato vuoto.

Devo riavviare XAMPP ogni volta che accendo il computer?

Sì. Ogni volta che riavvia il Suo computer, deve avviare nuovamente Apache e MySQL dal XAMPP Control Panel. Se lo desidera, può anche installare questi servizi come servizi di Windows.

Conclusione

XAMPP è il modo più diffuso per provare WordPress gratuitamente e in tutta sicurezza sul Suo computer. Dopo aver avviato Apache e MySQL e creato un database, basta collocare i file nella directory htdocs ed eseguire la procedura guidata di installazione. Una volta che ha lavorato comodamente in locale e completato il design, è il momento di trasferire il sito su un server in produzione.

Articoli correlati

WordPress

XAMPP ile Localde WordPress Kurulumu (Adım Adım)

XAMPP Nedir ve Neden Kullanılır?

XAMPP, bilgisayarınızı yerel bir web sunucusuna dönüştüren ücretsiz bir yazılım paketidir. Açılımındaki harfler Apache (web sunucusu), MySQL/MariaDB (veritabanı), PHP ve Perl bileşenlerini temsil eder. WordPress'in çalışması için gereken bu bileşenleri tek pakette sunduğu için, internete açmadan, hosting parası ödemeden kendi bilgisayarınızda WordPress denemeleri yapmanızı sağlar.

Localde kurulum, özellikle tema ve eklenti denemek, site tasarımını canlıya almadan tamamlamak veya WordPress öğrenmek isteyenler için idealdir. Yaptığınız hiçbir hata canlı sitenizi etkilemez.

Adım 1: XAMPP'ı İndirin ve Kurun

apachefriends.org adresinden işletim sisteminize uygun XAMPP sürümünü indirin. Kurulum sihirbazını çalıştırın; bileşen seçiminde en azından Apache, MySQL ve phpMyAdmin seçili olmalıdır. Kurulumu varsayılan dizine (Windows'ta genellikle C:\xampp) yapmanız önerilir.

Adım 2: Apache ve MySQL'i Başlatın

Kurulum bittiğinde XAMPP Control Panel'i açın. Apache ve MySQL satırlarının yanındaki Start düğmelerine tıklayın. İkisi de yeşil renge dönüp çalışmaya başlamalıdır. Tarayıcınıza şu adresi yazıp XAMPP karşılama sayfasını görüyorsanız sunucunuz hazır demektir:

http://localhost

Adım 3: Veritabanı Oluşturun

WordPress'in verilerini saklayacağı bir veritabanına ihtiyacı var.

  • Tarayıcıdan http://localhost/phpmyadmin adresine gidin.
  • Sol üstteki Veritabanları (Databases) sekmesine tıklayın.
  • Veritabanı adı alanına bir isim yazın (örneğin wordpress_deneme) ve Oluştur (Create) düğmesine basın.

Localde kullanıcı adı genellikle root, parola ise boştur. Bunları kurulum sırasında gireceğiz.

Adım 4: WordPress Dosyalarını Yerleştirin

tr.wordpress.org adresinden WordPress'i indirin ve ZIP dosyasını açın. Çıkan wordpress klasörünü C:\xampp\htdocs dizinine kopyalayın. İsterseniz klasör adını projenize göre değiştirebilirsiniz (örneğin htdocs/siteniz). Site adresiniz bu klasör adına göre belirlenir: http://localhost/siteniz.

Adım 5: Kurulum Sihirbazını Çalıştırın

Tarayıcıdan http://localhost/siteniz adresine gidin. WordPress kurulum ekranı açılır:

  • Dil seçin.
  • Veritabanı bilgilerini girin: Veritabanı adı wordpress_deneme, kullanıcı adı root, parola boş, sunucu localhost.
  • "Çalıştır" düğmesine basın.
  • Site başlığını, bir yönetici kullanıcı adı ve parolasını, e-posta adresinizi girin.
  • "WordPress'i Kur" düğmesine bastığınızda kurulum tamamlanır.

Artık http://localhost/siteniz/wp-admin adresinden yönetim paneline girip sitenizi geliştirmeye başlayabilirsiniz.

Localde Çalışırken Dikkat Edilecekler

Localde geliştirme yaparken birkaç noktayı unutmayın. XAMPP'ı her bilgisayar yeniden başlatıldığında Apache ve MySQL'i tekrar Start etmeniz gerekir. Localdeki siteniz yalnızca sizin bilgisayarınızda görünür; başkalarının erişmesi için canlı sunucuya taşımalısınız. Ayrıca local site internete kapalı olduğu için e-posta gönderimi ve bazı ödeme/harici servis entegrasyonları çalışmayabilir.

Local Geliştirmenin Avantajları

Localde çalışmanın canlı sunucuya göre birçok somut avantajı vardır ve bunları bilmek, neden bu yöntemi tercih etmeniz gerektiğini netleştirir. Her şeyden önce hız kazanırsınız; dosyalar kendi bilgisayarınızda olduğu için değişiklikler internet bağlantısı beklemeden anında görünür. Güvenlik açısından rahatsınız; localdeki siteniz internete kapalı olduğu için yaptığınız denemeler kimseyi etkilemez ve canlı sitenizi riske atmaz. Maliyet sıfırdır; tema, eklenti ve tasarım denemelerini hosting parası ödemeden istediğiniz kadar yapabilirsiniz. Son olarak öğrenme için idealdir; WordPress'in tüm özelliklerini, hata yapma korkusu olmadan keşfedebilirsiniz.

PHP Sürümü ve Bellek Ayarları

XAMPP'ın getirdiği PHP sürümü bazen güncel WordPress veya bazı eklentiler için yeterince yeni olmayabilir. Hangi PHP sürümünü kullandığınızı görmek için tarayıcıdan http://localhost/dashboard/phpinfo.php adresine gidebilirsiniz. Ayrıca büyük temalar veya çok sayıda eklenti kurduğunuzda "bellek yetersiz" hatası alabilirsiniz. Bunu çözmek için XAMPP'ın php\php.ini dosyasını açıp ilgili değerleri artırabilirsiniz:

memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M

Değişiklikten sonra Apache'yi yeniden başlatmayı unutmayın.

Local Yerine Alternatif Araçlar

XAMPP en bilinen çözüm olsa da, yalnızca WordPress geliştirmeye odaklanan daha pratik alternatifler de vardır. LocalWP (eski adıyla Local by Flywheel), tek tıkla WordPress kuran, SSL ve farklı PHP sürümleri arasında kolayca geçiş sağlayan kullanıcı dostu bir araçtır. Laragon, Windows kullanıcıları için hızlı ve hafif bir paket sunar. WampServer ise XAMPP'a benzer ancak yalnızca Windows odaklıdır. Sadece WordPress kuracaksanız LocalWP gibi özel bir araç işinizi belirgin biçimde kolaylaştırır; birden fazla teknolojiyle çalışacaksanız XAMPP daha genel bir çözümdür.

Sıkça Sorulan Sorular (SSS)

Localdeki WordPress sitemi başkaları görebilir mi?

Hayır. XAMPP ile kurduğunuz site yalnızca kendi bilgisayarınızda, localhost üzerinde çalışır. Başkalarının erişebilmesi için siteyi canlı bir hosting sunucusuna taşımanız gerekir.

Localde root kullanıcısının parolası neden boş?

XAMPP varsayılan olarak MySQL'in root kullanıcısını parolasız kurar; çünkü local ortam internete kapalıdır ve yalnızca geliştirme amaçlıdır. Kurulum sihirbazında kullanıcı adı root, parola alanı ise boş bırakılır.

XAMPP'ı her açılışta yeniden başlatmak zorunda mıyım?

Evet. Bilgisayarınızı her yeniden başlattığınızda XAMPP Kontrol Paneli'nden Apache ve MySQL'i tekrar Start etmeniz gerekir. İsterseniz bu servisleri Windows hizmeti olarak da kurabilirsiniz.

Sonuç

XAMPP, WordPress'i kendi bilgisayarınızda ücretsiz ve güvenle denemenin en yaygın yoludur. Apache ve MySQL'i başlatıp bir veritabanı oluşturduktan sonra dosyaları htdocs dizinine koymak ve kurulum sihirbazını çalıştırmak yeterli. Localde rahatça çalışıp tasarımı tamamladıktan sonra sıra, siteyi canlı sunucuya taşımaya gelir.

İlgili Yazılar