| Server IP : 209.205.66.10 / Your IP : 216.73.216.173 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : ( 1006) PHP Version : 8.5.8 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/dpeters/Wordpress/ |
Upload File : |
#Apache2
Create the new user account in /export/disk1/users
Create a public_html folder in the new users directory
Go to /var/www and create a new file for the new domain
type ln -s /home/<new-domain-folder>/public_html/wordpress wordpress
Go to /etc/apache2/available-sites
Copy an existing domain file to <new-domain-name.conf>
Edit the file with the appropriate domain information and location
Save the file
a2ensite domain1.com
apachectl configtest
You should get Syntax OK
systemctl restart apache2
Go to /etc/apache2 and edit the file apache2.conf to add the mod_rewrite code as
listed and then add an .htaccess file.
Go to /var/www and create a new file for the new domain
Create a link to the new file
Type ln -s /home/dpeters/public_html/internet/wordpress wordpress <enter>
Substitute the path to the new wordpress directory
Type ls -all and you should see this
200~lrwxrwxrwx 1 root root 44 Feb 25 2021 wordpress -> /home/dpeters/public_
html/internet/wordpress
#Wordpress
Get or copy the lastest version of Wordpress into the user's public_html folder
and into the linked domain name file
Copy the install to wp-config.php
Add
define('FS_METHOD', 'direct');
to the wp-config.php
#MySQL
mysqldump -u root -p mydatabase > /home/myuser/database-dump.sql
mysql db_name < backup-file.sql
In mysql User
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'user_password';
If you get an error, drop the user by typing drop user@localhost, flush privileg
es and run create user again
In Db to add the database
insert into db values
('localhost','database','user','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','
Y','Y','Y','Y','Y','Y','Y');
flush privileges;