Skip to main content
This guide will walk you through installing TiendaRopa, a complete CRUD application for managing a clothing store inventory built with PHP and MySQL.

Prerequisites

Before installing TiendaRopa, ensure your system meets the following requirements:

PHP 8.2+

The application was developed with PHP 8.2.12

MySQL/MariaDB

Tested with MariaDB 10.4.32

Web Server

Apache (included in XAMPP)

phpMyAdmin

Version 5.2.1 or higher recommended
The easiest way to get all prerequisites is to install XAMPP, which includes Apache, PHP, MySQL, and phpMyAdmin in a single package.

Step 1: Install XAMPP

1

Download XAMPP

Download XAMPP for your operating system from the official Apache Friends website.Make sure to download a version that includes PHP 8.2 or higher.
2

Run the Installer

Execute the installer and follow the setup wizard. Select at minimum:
  • Apache
  • MySQL
  • PHP
  • phpMyAdmin
3

Start Services

Open the XAMPP Control Panel and start the Apache and MySQL services.
You should see green highlighting indicating the services are running
4

Verify Installation

Open your browser and navigate to:
http://localhost
You should see the XAMPP welcome page.

Step 2: Download TiendaRopa

If you have Git installed, clone the repository directly into your web root:
cd C:\xampp\htdocs  # Windows
# or
cd /Applications/XAMPP/htdocs  # macOS
# or
cd /opt/lampp/htdocs  # Linux

git clone <repository-url> tienda_ropa
The folder structure should be htdocs/tienda_ropa/ with all PHP files directly inside the tienda_ropa folder.

Step 3: Verify File Structure

Ensure your installation has the following structure:
htdocs/
└── tienda_ropa/
    ├── db.php
    ├── index.php
    ├── header.php
    ├── crear.php
    ├── editar.php
    ├── eliminar.php
    ├── categorias.php
    ├── colores.php
    ├── tallas.php
    ├── empleados.php
    ├── proveedores.php
    ├── movimientos.php
    ├── actualizaciones.php
    └── registros.php

Step 4: Initial Configuration

Before accessing the application, you need to set up the database. The database connection is configured in db.php:
tienda_ropa/db.php
<?php
$host = "localhost";
$db_name = "tienda_ropa";
$username = "root"; // Usuario por defecto en phpMyAdmin
$password = "";     // Contraseña por defecto vacía en XAMPP

try {
    $conn = new PDO("mysql:host=$host;dbname=$db_name;charset=utf8", $username, $password);
    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e) {
    echo "Error de conexión: " . $e->getMessage();
}
?>
The default XAMPP MySQL configuration uses:
  • Host: localhost
  • Username: root
  • Password: (empty)
You typically don’t need to modify db.php unless you’ve customized your MySQL installation.

Step 5: Next Steps

Now that the application files are in place, you need to:
  1. Import the database schema - Create the tienda_ropa database and all required tables
  2. Verify the connection - Ensure the application can connect to your database
  3. Access the application - Start using TiendaRopa
Proceed to the Database Setup guide to complete the installation.

Troubleshooting

Another application (like Skype or IIS) may be using port 80.Solution: Edit httpd.conf in XAMPP and change the port:
Listen 8080
ServerName localhost:8080
Then access the application at http://localhost:8080
Another MySQL service may be running.Solution: Stop other MySQL services or change the port in XAMPP’s my.ini configuration file.
PHP PDO extension is not enabled.Solution: Edit php.ini and uncomment:
extension=pdo_mysql
Restart Apache after making changes.
Check if:
  1. Apache is running in XAMPP Control Panel
  2. Files are in the correct htdocs/tienda_ropa/ directory
  3. PHP error reporting is enabled in php.ini
Enable error display temporarily:
error_reporting(E_ALL);
ini_set('display_errors', 1);

System Requirements Summary

ComponentMinimum VersionRecommended
PHP8.08.2.12+
MySQL/MariaDB5.7 / 10.28.0 / 10.4.32+
Apache2.42.4.54+
phpMyAdmin5.05.2.1+
Web BrowserAny modern browserChrome, Firefox, Edge

Ready to Continue?

Proceed to Database Setup to create and configure the database

Build docs developers (and LLMs) love