Are Apache and MySQL servers needed in addition to MAMP? - installation

This might be a silly question, but I'm new to web-dev, so here it is:
I recently installed MAMP on my windows system [yes, MAMP works on windows too] and it shows Apache and MySQL server to be active, but neither I have installed any of these servers, nor I can find them in "Services" of my system.
So I wanted to ask whether I'll need to explicitly install both of these servers or not.
Also, If there's no need of explicit installation, how does MAMP work ? like, giving access to both these servers without actually installing them ? [A brief explanation would be enough]
T.I.A.

They come with MAMP. You can access phpMyAdmin under the Tools menu in the page that automatically opens up when you start MAMP, for me it is http://localhost/MAMP/?language=English

Related

How to install Coldfusion on Mac OS X 10.15 Catalina using external virtual host

I've been here before and even wrote an article on how I was able to connect Coldfusion 2018 with Mac OS X Mojave, but since the upgrade to Mac OS X 10.15 Catalina, I haven't been able to get Coldfusion to work correctly on virtual hosts (ie. http://local.mylocalsite.com).
Goal: install Apache connector for Coldfusion so that I can run my dev site from within the /Sites folder like I would any other site.
Problem: Apache is working and I can access websites from the /Sites folder using the virtual host (ie. local.mydevsite.com), but although Coldfusion is running (I can access the Coldfusion Administrator), my computer does not seem to recognize that Coldfusion is supposed to run. I don't know if this is Apache or Coldfusion's responsibility.
What I've tried: I've tried using the GUI connector, as well as trying to confirm the settings via command line. I have XAMPP installed, which I believe that DesktopServer (an application by ServerPress) is relying on, but that's probably not relevant; but what I'm getting at is that I believe XAMPP relies on Mac's default installation of Apache.
I've also tried to go into every file that is referenced in any instruction document to determine if there is anything out of place. Part of my confusion is that there are many instances of some of these files and I'm not sure which one is active. Here are some of the files I've looked into:
/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
/Applications/XAMPP/xamppfiles/apache2/conf/httpd.conf
/Applications/XAMPP/xamppfiles/apache2/conf/mod_jk.so
/private/etc/apache2/httpd.conf
/private/etc/apache2/mod_jk.conf
/private/etc/apache2/extra/httpd-vhosts.conf
From what I can tell, the main settings for Apache are stored in the /private/etc/apache2 folder, but I want the XAMPP version of https-vhosts.conf because that's where DesktopServer is pulling their virtual hosts from. Regardless, I don't think it matters which vhosts file is being used because Coldfusion won't run on any of the local sites from my /Sites folder that are loading correctly when I visit local.anylocaldevsite.com.
Thoughts? This is either a really dumb question because no one else is asking it, or there aren't many Mac users who also use Coldfusion. Would love assistance if anyone has a clue. Thanks!
Update: This isn't an exact answer, but the recommendation to try CommandBox was a win. I installed CommandBox and then ran the "ColdBox" application in the root of my project and the site opened up in my browser like a gem. Wonderful. Thank you! I can call that the "answer" if no one objects, but I know that it's more of a workaround than an exact fix.

Xampp is runni8ng but .php files won't load

I've got a strange problem. My xampp seems to run just fine, at least the control panel says so. A couple of months back I was able to use xampp properly as well. But now, if I try to load anything in htdocs the browser tells me that the website is not available.
The only things that have changed since I used xampp successfully:
I've briefly installed wampp, but decided to deinstall it again. As far as I can tell, I have removed snd deinstalled everything succesfully.
And, I'm using an other internet connection. Is there a possibility that the firewall of the modem messes xampp up?
Any ideas are greatly appreciated.
PS: I did not post the config files of xampp, because I haven't changed them since everything worked properly, so I hardly think that it is relevant.
Considering your problem and the information I have gathered from you.
The best solution is:
Make a backup of all your files in htdocs.Uninstall Xampp completely.Download and install once again.
Note:
Latest Xampp versions comes with MariaDB unlike mysql.Now some versions of MariaDB is unstable.This would create problems when you are actually working with database and sql queries.
Either download and install Xampp which comes with Mysql or find a version of xampp which comes with a stable version of MariaDB and the latest PhpMyAdmin version.
Reinstalling solves issues like this most of the time.There may have been some kind of server conflict when you installed WAMP.So an all new installation is best.
You could also try clearing the browser history and cookie as an alternative.

Localhost software for Windows 7

What is a good piece of software to be able to have a set of files hosted from a localhost on Windows 7?
IIS 7 - really easy to use and it comes with a default website already setup. Just drop your files in and right click the site, then click start.
If you are interested in a LAMP port for Windows (preferring Apache over the built-in IIS) check out XAMPP. It bundles everything you typically need on a web server: Apache web server, MySQL database with web admin UI, PHP and Perl languagues, FTP and mail servers.
There is also WAMP, but I have no experience with that.
I'm using apache. Using apache on windows
You can install it, then install php ect. as you need them...
If you're looking for ASP/ASPX then either use VS internal web server, or IIS.
Assuming that your looking for a PHP/Apache/MySQL environment, I would recommend EasyPHP. It comes with the latest version of PHP, Apache, MySQL, Phpmyadmin and a pretty easy to use admin panel.
easy php is good stuff, my problem with it is that its just toooo slow... but the features are nice, sometimes you'd not mind the slowness because of the features on the Admin Panel that comes with it... But if you're looking for speed... then XAMPP or IIS is the way to go...
if you install them both you gonna need to configure the Apache and give it a port that does not clash with IIS...

XAMPP on Vista not executing my own PHP files

I installed xampp on a machine with vista business SP1 version. The default page (with the "You have successfully installed XAMPP on this system" message) opens up fine.
But when I put a php page in the htdocs folder and try to access it using 127.0.0.1/mypage.php, I get the "Object not found" error.. The apache service is running as indicated by XAMPP Control Panel. I clicked the "Port-Check" button on the xampp control panel and this what it says:
Apache(HTTP) 80 System
I checked with a XP machine and it says:
Apache(HTTP) 80 C:\xampp\apache\bin\httpd.exe
How do I resolve this issue? I have disabled windows firewall and UAC.
First of all, I don't think there are some problems with your PHP interpreter, as XAMPP Welcome Screen works fine and it uses PHP.
Form the fact, that you put PHP file into htdocs and can't access it via browser plus the fact that your "port-check" shows some strange entries, I assume that you have another installation of Apache on your system or that you have a web server component enabled in your system. Information dumped from port-check clearly says that you have some system service listening on port 80, which seems to be capturing all the request before Apache on-board your XAMPP can handle it. But, on the other hand, how then you would be able to run XAMPP Welcome Screen? Really strange situation.
As first step, I would recommend doing extensive research through all your active services (run "services.msc"), installed programs and enabled system components (both in Control Panel section responsible for handling program and sys comps). Disable or uninstall everything that seems to be related to web server.
If this brings no effect, then you should address your question to a StackExchange sister project called "ServerFault", because this seems to purely server or system related question, not belonging to XAMPP discussed on StackOverflow.

What's the best way to develop against WordPress on Windows when you already have IIS/SQL Server installed?

If you want to develop against WordPress (i.e., have a local instance running on your machine so you can develop themes, get blogs and sites laid out, etc.) and you're running Windows on your development machine with IIS and SQL Server already installed, what's the best way to do it?
I found a method online which sets up a little "mini" server on Windows running instances of Apache and MySQL but they didn't advise using it on a machine with IIS already installed. Obviously one could install Apache and MySQL and do it that way but given what Windows affords you (i.e., methods of running PHP in IIS - I think Windows Server 2008 is even optimized for this), is that the best way? Are there ways to run WordPress with SQL Server as the backend? (I wouldn't think so but I thought I'd throw that out there).
And are there methods differing on the version of Windows (i.e., XP, Vista, Vista64)
I run XAMPP on a thumbdrive and install WordPress (usually multiple instances of it) on there. Then I start up XAMPP when I'm going to work on Wordpress development.
EDIT: this setup does require that IIS be stopped when the XAMPP server is running (or some byzantine configuration magic that I've never bothered to figure out. Since most of my personal needs for local IIS development are handled by the Visual Studio built-in instance of IIS, which can run side-by-side with XAMPP, I rarely have bother with anything else, but that probably won't work for everyone.
Install PHP, run Wordpress in IIS. Install MySQL which can be run side-by-side with MSSQL. The only thing you'll miss using IIS over Apache is mod_rewrite for prettier URLs.
Avoid running IIS and Apache on the same machine if at all possible. IIS likes to bind to all available IPs blocking Apache from binding to an IP, which you can get around if necessary, but it's not immediately clear what's happening.
I've been running this setup for years.
Since you are interested in developing for Wordpress I strongly suggest you use the most common WP setup: Apache, PHP and MySQL.
You can run Apache and IIS at the same time (I have IIS listening on port 81 and Apache on 80) or you can run only one at a time (create 2 bat files to start/stop the servers using the net start/stop command).
You can use IIS, PHP, MySQL to run Wordpress but there are some subtle differences that can drive you crazy or cause problems when you deploy on Apache.
You can certainly run IIS and Apache on the same box. We do it currently with Documentum/Apache and IIS on the same server. Just pick a range of addresses for one web server - 808x for Apache for example.
You should also consider using Thinstall from VMWare where you can virutalize an entire application - registry, .Net and all - distribute as a single .EXE. We do this now for packaging applications that don't play well together. You might want to virtualize Wordpress/Appache/MySql and set an IP (808x) for that configuration. This way you can move this to any server with IIS and it'll play well with different configurations.

Resources