do we need a "local server" like tomcat to use phpmyadmin? - php

I already have mysql installed, but I have not installed anything else that simulates a server on my computer.
Is it possible to install and use phpmyadmin without having a local server running on my computer?

not possible, you need a webserver to deliver the web-page to a browser

You'll need a webserver, see the documentation if in doubt: http://www.phpmyadmin.net/documentation/

You need some webserver which can serve static files and execute PHP scripts to use phpMyAdmin.

If you don´t want to install a web-server and php, you can install for example MySQL Workbench to manage just mysql.
For phpmyadmin you will need a web-server.

Actually you have to install servers like WAMP, XAMP or TOMCAT. They deplye the admin site for phymyadmin. So if you don't install an application on your pc, how would you use it, untill and unless you are using on another server.

Related

How to serve a PHP file in Windows without XAMPP?

The situation is simple: I have a PHP file and I want to serve it on my localhost. I already have MySQL set up and don't want to install XAMPP or other bulky packages which come with their own MySQL or any other thing such as that.
I tried many Node.js ways to serve a PHP file but none worked for me.
Please, I just have a file and want to "run" it. How can I do that?
Unfortunately, if you want to run a "server-side" code (in your case PHP) in your Windows computer, you have to use a web server that simulate for you it.
XAMPP (or WAMP) enables localhost port to receive connections from yourself and it is a smart way to try in "local" your code.
If you want to run PHP but you don't want to install XAMPP, then you can install a linux distribution and run "apache HTTP server" that is already installed in most distributions. But in every case you need a tool to simulate the "server-side" part.
First of all nodeJS means nodeJavaScript. So it will not support php with mystery magical things.
You could only install Apache server and mySQL. Then you don´t need any XAMPP and the tools it brings with it.
Try to install Apache standalone.
Not sure if this works but should be no problem.
But all in all i would recommend you to use XAMPP

PHP on local files?

I don't have anything extra installed on my computer. Whenever I try to include one local PHP file on another, nothing happens. My question is if it should be working, or if I have to have some kind of server for it to work?
Well, you obviously need a server for a server side language... Don't you think?
Have a look at PHP servers such as Apache, or install an all-in-one such as XAMPP or WAMP.
At the very least, you need to install PHP and run it from the command line.

XAMPP apache with stand alone MySQL

I installed XAMPP to run PHP from eclipse. I have a standalone MySQL server that I use it from another java program. I want the apache server inside XAMPP to use this standalone MySQL instead of the default one. How can i achieve this?
When you are in the Xampp-controlpanel you can select the tools to start. If you have installed a standalone mysql-server, it is usually registered as a server (xampp regognizes that!). In you PHP-Application you just have to connect to this server (Address: Localhost and the username/password from your server)
Just dont start the xampp-server, start your own one.
Just don't start XAMPP's MySQL Server. Apache or PHP does nothing else than connecting to localhost and MySQL's standard port.
If you have a conflict, when you try to use one or another MySQL Server, it is a big "chance" to have them both opened.
You can check this by "right-click" on My Computer, and select "Manage". There go to "Services and applications" and you can see which one is running.
If both are running you can stop the one you don't wanna use.
Hope this help.
P.S. You may wanna use WAMPP, because it has a better graphical interface, and much more usefully shortcuts.

Working with PHP offline

Is there a tool or extension for a browser to working with PHP offline? I read about you need to install an Apache server.
Is there an easier way to view offline in browser to see how the PHP code executes?
XAMPP sets up a local install of MySQL, PHP, and Apache that you can develop on.
In Windows, install XAMPP or WAMP
Which are Windows Apache Mysql and Php bundles
In Linux install LAMP
Which is a Linux Apache Mysql and Php bundle
Both of which could help
Nope, simpler than xampp is not possible.
This won't be much use to you now, but there has been recent talk (and submission of code) of providing a built-in web server into PHP itself.
See the RFC at https://wiki.php.net/rfc/builtinwebserver
You could then write your script (e.g. app.php), execute php -S localhost:8000 to start the web server and then see the results in your browser at http://localhost:8000/app.php.
In the mean time, you can install Apache/PHP/MySQL/etc. on your local box, as the other answers have suggested, either manually or with a package like XAMPP.
No. PHP code must be processed by a PHP engine, and the easiest way to do so in a web environment is to use a web server. It does not need to be httpd, but it must be something.
if you are on a Mac, you have Apache installed already. the additional instructions you will need to add PHP and MySQL database server can be found here http://www.entropy.ch/software/macosx/
if you are using Windows, XAMPP is a self contained Apache/MySQL/PHP environment that runs as a stand alone application.
that should get you started. good luck

How to upload PHP and MySQL into a webserver

I am developing a site in vertigoserver. Now I need to test the webpage in webserver.
I am using the webserver Host-Europe VirtualServer 3.0.
Now what are the steps I need to upload the PHP pages?
What is the software needed to upload MySQL queries?
Are there any tutorials or suggestions?
This seems like basic stuff, but I'll give you some pointers!
Upload the pages with an FTP client or similar. If you have shell access, tools like rsync can make this easier.
You've probably got some sort of web based front end for MySQL like phpMyAdmin - this will let you upload and restore a database dump. If you have shell access, or if the MySQL server is open to the Internet, you can pipe the dump into the MySQL command line client, for example,
mysql -h<hostname> -u<username> -p<password> mydatabase < dump.mysql
Okay, you got a virtual machine and don't know how to upload stuff? This has been discussed in Host-Europe forums for a while. If you don't know the basics you probably don't want to run a server on your own. If you don't know how to use Linux don't start with a machine which can get you in a lot of trouble. A hosting package is probably better you at the moment.
The problem I have is you didn't specify what OS you have. If you're using Linux with Plesk you want to activate FTP, etc. If you are using Linux without Plesk you want to upload the PHP files with WinSCP and over SSH (SCP).
If you are running Windows with Plesk use FTP. If not, you should install an FTP server on the machine.
Regarding the MySQL stuff you're probably best off installing a webfrontend for MySQL.
!DON'T FORGET TO SECURE IT!

Categories