Ampps - addon domain - ampps

I just installed AMPPS but I am stuck at adding a domain. I added a domain as addon, and AMPPS created the directory for it in /www and shows me the list of domains (i.e. the root folder with the domain I created showing as a folder). Ampps also added the entry into the hosts file (i.e. 127.0.0.1 domain.com) but I think it is missing a vhost setting somewhere.
The addon domain is mapped to the default site folder (www/) instead of the folder within the root that is created. Any thoughts are greatly appreciated. Thank you in advance.

I have been stuck with this problem for almost a day, both on my mac and windows. Fortunately, I found the fix and it is quite easy.
Go to AMPPS installation folder, open conf and create a new folder named extra.
For mac, this is the full path to create the folder /Applications/AMPPS/conf.
For windows, the full path is C://Program Files (x86)/AMPPS/conf
The existing addon domains will not resolve to their folder, but the new addon domains you create will resolve to their folder instead of root folder.

You will just need to restart Apache. You can do this in the AMPPS panel or by restarting AMPPS completely.
Once it's done, you can try your addon domain name and it will point to its proper directory.

Related

How to put Wordpress manually onto Bitnami on local computer?

I use:
Bitnami Wampstack 7.3.17-1
Wordpress 5.4
What I want to do is installing Wordpress manually onto Bitnami on my local PC. I am familiar with XAMPP and WAMPP, so I though what I need to do after unzip the wordpress file is only to put it on htdocs folder. But I couldn't found it on Bitnami, what I can see is apps folder.
Then, because when I tried to access phpMyAdmin I only need to go to: 127.0.0.1/phpMyAdmin/, I thought it will also work for the wordpress. But turns out it's not.
I don't want to use Bitnami-wordpress installer like bitnami-wordpress-5.4.1-0-windows-x64-installer.exe. Because in the future I want to do it for other php-based website I made.
Anyone know how to do it?
Hi Bitnami Engineer here, you can follow these steps to deploy a PHP application on top of WAMP:
Copy the installdir/docs/demo folder into the installdir/apps directory.
Add the following line to the end of the installdir/apache2/conf/bitnami/bitnami-apps-prefix.conf file:
Replace the installdir placeholder with the full installation directory for your Bitnami stack.
Include "installdir/apps/demo/conf/httpd-prefix.conf"
Restart the Apache server using the graphical manager tool.
You should now be able to access the demo application at http://localhost/demo. - You should see a “Hello world” message in your browser.
You can now replace the files inside the installdir/apps/demo/htdocs folder with the WordPress' ones to deploy that application.
You can learn more about this here
https://docs.bitnami.com/installer/infrastructure/wamp/administration/create-custom-application-php/

Setting wordpress site to root folder on WAMP local install

So I'm trying to set up a local test environment for a WordPress site I am planning to make. I currently have a few sites I plan to work on as a subfolder under /WWW/ but I'm trying to use a addon for multisites https://wordpress.org/plugins/wordpress-mu-domain-mapping/#installation , My problems however is that I'm new and I installed the addon, but the addon wants my site to be in root. However root for wamp has a bunch of files used for wamp at the moment and I also have multiple subfolders in root for other sites i'm planning on having in that test environment.
I'm trying to figure out how to make wamp think my one site is the root folder, my attempts with the vhost files have failed me so far. My other option is to try and do the work of the plug in manually some how with the vhost files. Any help is appreciated

how to move wordpress from root to a new directory on hostgator?

Iam using hostgator and I want to move my wordpress application from the root directory 'home/username/' to a new directory which is 'home/username/mysite' and the website url should be mysite.com, I tried to do that but now my website url is mysite.com/mysite, so what I could do ?
Unfortunately, Hostgator cPanel does not allow you to change the root folder of the primary domain to anything other than the default public_html folder yourself. If you really need to do it, you need to contact their migrations department. Also, please note that this only works for a VPS or a Dedicated server.
There is, however, a workaround to avoid going through this process to achieve the desired result:
Change the primary domain name on your Hostgator account to something else. (mynewsite.com)
Now create an add-on domain with the original domain name. (mysite.com)
Point the add-on domain mysite.com to the new folder that contains the Wordpress installation. (home/username/mysite)
Your original domain name will now point to the new folder as you desired.
It's not pretty, I admit, but it gets the job done.
Not supported by Hostgator. Please read this

Htaccess on XAMPP local server for testing

I finally got the XAMPP local Wordpress system working so now I can test things out.
If I want to mimic htaccess files to test redirect code and so forth - especially htaccess in the root - here would I put the htaccess file?
I'm thinking is the XAMPP folder considered the "root"? I've taken a snapshot of my directories to give you an idea. The checkmarks are there just to show you the general layout of the directories.
One other thing - suppose I wanted to create a sub-directory (like localhost/sub/index.php) to test in XAMPP. Is this possible? I noticed when I'm in local host there is no multi-site capability. Thoughts?
Thanks
The .htaccess file should be in the root of your WordPress installation and you may use sub-directories to create more local sites. For example:
localhost/wordpress = xampp/htdocs/wordpress/index.php
localhost/anothersite = xampp/htdocs/anothersite/index.php
// More...
For the WordPress installation, put the .htaccess in the wordpress directory in example (At the same level where the index.php file is stored).

Issue moving wordpress site to plesk

I have recently been importing a localhost wordpress site into plesk. I have used ftp to move all of my wordpress files from htdocs on localhost to httpdocs in plesk.Ihave also imported my wp content to a new database on the server which I have set up the correct details for in config.php of wordpress. However, when I then try to view the website it at first showed a plesk default page and when I removed that index file from httpdocs, an apache default page that says 'You may now add content to the directory /var/www/html/ . Note that until you do so, people visiting your website will see this page and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf'.
Sorry if i'm being dense but I thought that all web files should be moved to httpdocs if there isn't a public_html? Also, where would I find var/www/html/? as I cannot see this directory anywhere while using ftp.
Sorry again if this is a silly question but I am new to plesk!
Thanks
Matt
You need to activate php for your plesk site.
Did you have any domain in Plesk?
Http root of domain's created by plesk is placed to
/var/www/vhosts/<domain name>/httpdocs/
You can check current apache's virtual hosts by command:
apachectl -S
or
apache2ctl -S

Resources