Hello, I come to set up a linux server with RedHat Enterprise 5.1, so I want to migrate my online application I have from windows based xampp to Linux with xampp. I downlaoded xampp 1.7.1 and I installed it on my Linux RHE. Please help me, and I believe in You.Thanks a lot.

Peter
from Rwanda

Dani AI

Generated

A short, practical checklist to complement the replies from and for moving a XAMPP app from Windows to RHEL 5.1 (note: both RHEL 5.1 and XAMPP 1.7.1 are very old — consider newer, supported software for production).

  • File-name case and paths: Windows is case-insensitive; Linux is not. Verify includes/requires and any hard-coded paths inside the app.

  • Line endings and executable scripts: Convert CRLF to LF so shell scripts and some parsers behave correctly. Example conversion:

    find /path/to/app -type f -name "*.php" -o -name "*.sh" -exec dos2unix {} +
  • PHP runtime differences: Check phpinfo() to confirm required extensions are present, and adjust php.ini (memory_limit, upload_max_filesize, date.timezone) to match the app's needs.

  • Database connect method: On Linux a connection using localhost may try a Unix socket; if the app fails to connect, try 127.0.0.1 or explicitly set the socket path in the DB client/library.

  • Apache behavior and rewrites: Ensure required modules (mod_rewrite, etc.) and correct AllowOverride settings are in place so .htaccess rules work. See Apache mod_rewrite docs for details (mod_rewrite).

  • SELinux and firewall: RHEL uses SELinux and a packet filter by default; adjust HTTPD contexts or booleans and open needed ports rather than leaving them disabled (CentOS/RHEL SELinux guidance is useful: SELinux HowTo).

Final checks: review Apache/MySQL logs, confirm timezones and encodings, and prefer maintained packages or newer XAMPP builds for security and stability.

Recommended Answers

All 2 Replies

after you installed it did you start up the server ?
# /opt/lampp/lampp start

you run that command just change the /opt/ to the directory you have your xampp then just copy your files into the htdocs and ur done you may run into some weird issuse with permissions on who can few the files you will will need to play around with the following commands first one changes owner and scecond set the
permissions of the file
#chown
#chmod

first you need to make a backup of the sql database then import the database on your new server then move your files to the new server and then reconnect the config file to the new database if you changed anything.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.