I can't use port 80 in my college and I need a mysql database and a version of wordpress for a college assignment. So when I change from port 80 to 801 (Or any port) I can't access Wordpress. I tried editing my Wp_config file, the wp_options database but each time wordpress defaults from localhost:801 back to localhost. Any ideas how to fix this? or another portable alternative to uWAMP? Any help would be appreciated.
Your apache config for this site should have something that looks like this:
<VirtualHost *:80> # The primary domain for this host ServerName example1.com # Optionally have other subdomains also managed by this Virtual Host ServerAlias example1.com *.example1.com DocumentRoot /var/www/html/example1.com/public_html <Directory /var/www/html/example1.com/public_html> Require all granted # Allow local .htaccess to override Apache configuration settings AllowOverride all </Directory> </VirtualHost>
To change the port Apache is listening to, modify the
*:80 to the port of your choice.
To change the ports open to the public, you may need to change the configuration for your firewall other systems.
Here's a decent tutorial related to getting WordPress set up correctly: https://www.linode.com/docs/websites/cms/configure-apache-to-run-multiple-wordpress-sites-on-one-linode/