MAMP--I don't know what the web URL should be when setting up a testing server in Dreamweaver - mamp

I use Dreamweaver and I have a file (PhpTest.php) that I placed in the htdocs folder within the MAMP folder. I've assigned the testing server a name and I've specified a connection type (local/network) and appropriate server folder (a folder that doubles as the PhpTest.php Dreamweaver site folder). Now it's asking me to assign a website URL and I'm at a total loss. I've tried
http://localhost/PhpTest/
as well as the URL of the MAMP ready-page, but nothing's working (I use Chrome, and if it's not already apparent I'm only just now learning PHP).
Anyone have any ideas?

If PhpTest.php is in htdocs you should try:
http://localhost:8888/PhpTest.php
Have you started mamp? (You should start the server by double clicking on the mamp app icon)
To check that 8888 is the correct port you can click on the faq tab in the mamp launch web page .

Related

can't connect local site to Iphone with XAMPP

Ive build my site on wordpress and using xampp
i want to test my new dev site on my remotely on my iphone and ipad via wifi
They're both connected to wifi
When i search iphone http://000.000.0.00 or http://000.000.0.00:80, :8080
it comes up with a link to a folder , which is my true path
when i click on this next sub folder , i loop back round to 127.0.0.1
As i guess iphone doesn't know where to find my site contents
I've tried renaming my wordpress site the with the http://ipaddress, :80, :80;80
ad it comes up with an error
ive found in my XAMPP index.php file
The footer seems to send me to 127.0.0.1/dashboard/
i can view this from my iphone
i've tried changing that footer on index.php to my site path
As well as deleting the file all together
Deleting the file allowed me to access more folders but not into the subfolder where my site remains
I've read through questions and tutorials but can't seem to find a solution
i was wondering if i've missed something or if i need to configure files in such a way , maybe to this index.php for XAMPP itself to get it to point at my site as a default
Thank you in advance
Check if your files are in htdocs or you have given correct path to your working directory in your httpd.conf file.
If the directory is correct and you have run your php pages already, I suggest you use ngrok for remote connection to your localhost.
https://ngrok.com/download
it is simple to use.
to run it go to the directory of ngrok in cmd and type ngrok http 80 while your XAMPP servers are running. It will provide a link that could be accessed through internet by any device.

XAMPP - how to set root folder of website in htdocs?

I installed XAMPP and created simple website (a folder 'website' in htdocs folder) that contains a link Info.
If I type localhost/website in browser I get a default homepage. But if I click the link, it goes to localhost/info (which does not exist), instead of localhost/website/info. I could use <a href="/website/info">, but it would be weird to refactor all the links when changing site name.
So what is the usual setting or solution that people uses when developing sites in XAMPP?
You have to change DocumentRoot in httpd.conf file to folder. In your example where you have website directory.
For more sites, you have to have more hosts and then set virtual hosts.
Here is link how to do that in Win. But point is the same in all OS.

Empty Kibana Screen, Kibana not showing Data

Getting empty/blank screen (except for a few buttons on the top toolbar) in kibana.
I have elasticsearch 3.3.2 running on my localhost. I downloaded kibana-3.1.2. I unzipped the file and copied the contents of the extracted directory into my webserver. I copied then into "C:\inetpub\wwwroot". The config.js file is unmodified, because I am running on localhost and this will work for now.
The kibana folder now shows up in ISS under default Web site.
![enter image description here][1]
When I have an instance of elasticsearch running (verified by entering http://localhost:9200 in web browser)
I enter "http://localhost/kibana-3.1.2/" into my web browser (I have tried this in chrome and firefox).
This automatically redirects me to "http://localhost/kibana-3.1.2/#/dashboard/file/default.json" and shows the template of the kibana page but I can't do anything in it, and it doesn't have a "getting started guide" like the instillation instructions said there would be.
![enter image description here][2]
I don't know what I have missed or what I did wrong.
The problem is most likely that the Kibana javascript is unable to load default.json from IIS. You need to add a MIME Type mapping for the .json extension. Map it to application/json.
If you still get an empty dashboard, change the application pool used by the site to "No Managed Code" and "Classic" and recycle the application pool.
Did you set the
elasticsearch: "http://localhost:9200"
in kibana.yml?
Otherwise it might be the nginx configuration (that was the case for me).
BTW, an easy way to check is to download the Kibana 4 Beta which doesn't run on port 80 and doesn't require nginx (or other)...
You have to run Kibana 3 with tomcat server.. copy kibana folder into tomcat server,webapps folder... and run with the link "localhost:8080/kibana-3.1.2" (8080 ----> Give as per your tomcat port).
Now your kibana will start.

How to deploy my project to localhost?

I'm working on a website and right now I am using FileZilla to make changes to it. Every time I make a change, I have to re-upload the file to the website through FTP and then wait for it to update online. I want to just deploy my project to localhost so I can get instant results and then just upload the whole project when it's finished. How do I do this? All I have is a set of directories with the files in them.
You really need to use a web/application server such as IIS/Apache.
For PHP projects go for WampServer/XAMPP.Easy to setup and works very well.
(maybe too obvious)
If you are working only static content based on html/css/js you can just edit and view changes directly by opening the local file in your browser and refresh each time.
Furthermore for css and html you can edit your code "live", directly into browser and see changes immidiately.
Another option is to edit files with an editor that supports ftp like notepad++, you can connect via ftp, open and edit files directly from server (like php,html,css,js) because once you save the editor will automatically upload your changes.
Heres a good explanation about notepad++ and ftp plugin.
Localserver
If you work with php (and even only with html/css) the best choise is to run a local server that rappresents a real environment in which your code will run. As said by others XAMPP is a good choise for begginers because of simple installation and management.
XAMPP download
XAMPP tutorial
Once installed put your folder inside C:/xampp/htdocs/yourCodeFolder
Run the xampp control panel and start the Apache server.
Finally navigate with your browser to: http://localhost/yourCodeFolder/

Deactivate/change default favicon in iPlanet 6.0

While there are many questions here about a favicon not showing, I have one that is showing out of nowhere...
If I type in my browser http://localhost, I see the root of the web directory and no favicon.ico is there. Yet an icon shows up on the browser tab. If I type http://localhost/favicon.ico, the browser does show me the icon!
How can http://localhost/favicon.ico return something that does not exist?
I am using an iPlanet server linked to weblogic app container.
I searched for a favicon.ico in my entire web directory and weblogic domain, didn't find any (or rather: some others lying around but not the one I see).
I even searched for the string 'favicon.ico' in domain, web directory and iPlanet directory, in case it is in some configuration file, didn't find anything.
Any hint?
Edit: As pointed out by Sacha below, this is a default icon of the server. I would like to know where in the config it is located, and how to deactivate it. I found how to do that in documentation of iPlanet 7.0, but I am using iPlanet 6.0 and I can't find anything in the doc.
If there is no favicon.ico server displays a default one.It might be a xampp or wamp logo.If you want to customize put yours in your project root directory. Eg:- If your project name is saas put it in saas folder.
If going to localhost/favicon.ico shows you the icon, then it is there. I am not sure why it is not in the directory.
I was also facing the same problem in jBoss server of my jsp project in which the browser was showing by default server icon and there was no favicon.ico in my whole project directory
then i searched for the favicon on the server and it was there so i have remove that file from the server to remove any default favicon from my project.