T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/lavocat.quebec/private_html/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/lavocat.quebec/private_html/scripts/setup-ubuntu-encoding.sh
#!/bin/bash

# Ubuntu Server UTF-8 Encoding Setup Script
# This script configures proper UTF-8 encoding for the application

echo "🔧 Setting up UTF-8 encoding for Ubuntu server..."

# 1. Update locale settings
echo "📝 Updating locale settings..."
sudo locale-gen en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8

# 2. Set environment variables
echo "🌍 Setting environment variables..."
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8

# 3. Add to .bashrc for persistence
echo "💾 Adding to .bashrc for persistence..."
echo "" >> ~/.bashrc
echo "# UTF-8 Encoding Configuration" >> ~/.bashrc
echo "export LANG=en_US.UTF-8" >> ~/.bashrc
echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
echo "export LC_CTYPE=en_US.UTF-8" >> ~/.bashrc

# 4. Check current encoding
echo "✅ Current encoding settings:"
echo "LANG: $LANG"
echo "LC_ALL: $LC_ALL"
echo "LC_CTYPE: $LC_CTYPE"

# 5. Verify locale is available
echo "🔍 Verifying locale availability..."
locale -a | grep -i utf

echo ""
echo "✅ UTF-8 encoding setup complete!"
echo ""
echo "📋 Next steps:"
echo "1. Restart your terminal session or run: source ~/.bashrc"
echo "2. Restart your Node.js application"
echo "3. If using PM2, restart with: pm2 restart all"
echo ""
echo "🔧 For DirectAdmin users:"
echo "- Make sure your DirectAdmin proxy is configured correctly"
echo "- Check that your domain's SSL certificate is valid"
echo "- Verify that port 80/443 forwarding is working" 

CasperSecurity Mini