XAMPP Services without admin rights

Asked
Active3 hr before
Viewed126 times

5 Answers

adminwithout
90%

You can start XAMPP on non-admin if you don't mind your Apache server running on a non-standard port. Ports under 1024 require admin permission to be used. Apache (HTTP) uses port 80 by default.,(If not running XAMPP 1.8, you can change Apache's configuration directly by editing [XAMPP install location]/apache/conf/httpd.conf and look for a line that says Listen 80. Change 80 to your port number.),I searched alot but came up with no solutions. All i want, is to start xampp's apache and mysql from non-admin users. Currently it awlays prompt for administrator password to start or stop the apache and mysql of xampp.,Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.

You can start XAMPP on non-admin if you don't mind your Apache server running on a non-standard port. Ports under 1024 require admin permission to be used. Apache (HTTP) uses port 80 by default.

Assuming you are running XAMPP 1.8.x you can change the ports using the XAMPP Control Panel. Click the config button then the Service and port settings button. From here you can change the ports the XAMPP modules use. Change Apache's main port from 80 to (for example) 8000. Then, to access your server from your browser, use http://localhost:8000 (or other port used).

http: //localhost:8000
load more v
88%

Mercury: No service installation available,You should see the XAMPP start page, as shown below.,XAMPP for Windows exists in three different flavors:,FileZilla service (un)install: \xampp\filezilla_setup.bat

The universal control center is the "XAMPP Control Panel" (thanks www.nat32.com). It is started with:

\xampp\xampp-control.exe

\
xampp\ xampp - control.exe
load more v
72%

Check your http.conf file to see which port apache is listening to. You could search for Listen within that file.,I made Apache and MySQL run on my machin without admin rights. When Windows firewall was asking, if it is ok to run that process, I just hit "Cancel" - it worked anyway.,Connect and share knowledge within a single location that is structured and easy to search., Podcast 394: what if you could invest in your favorite developer?

Check your http.conf file to see which port apache is listening to. You could search for Listen within that file.

http.conf

Check your http.conf file to see which port apache is listening to. You could search for Listen within that file.

Listen
load more v
65%

You can also click the Admin button to access the administration dashboard for each service and verify that everything is working correctly.,Clicking the Netstart button will give you a list of services currently accessing the network, including TCP/IP address and port, and process ID information.,In addition, there are also quick access buttons from the control panel to open the shell command-line utility, XAMPP installation folder, services, and close the app.,Lastly, you get the logs section to glance at what happens every time you start a module or change a setting. This is also the first place to look at when something isn’t working.

(Optional) Type the following command to search for the name of the application and press Enter:

winget search xampp
load more v
75%

OK
C: \xampp

The MySQL clients

C: \xampp\ mysql\ bin
mysql.exe
> C: \xampp\ mysql\ bin\ mysql(with or without the.exe extension)
MariaDB[(none)] >
   MariaDB[(none)] > quit
test
mysql > use test
MariaDB[(test)] >
test
> C: \xampp\ mysql\ bin\ mysql test
MariaDB[(test)] >
> C: \xampp\ mysql\ bin\ mysql - u guest test
root
> C: \xampp\ mysql\ bin\ mysql - u root
mysql
C: \xampp\ mysql\ bin\ mysql
prepend
C: \xampp\ mysql\ bin;
append
;
C: \xampp\ mysql\ bin
C:\Users\YOUR_LOGIN
mysql.bat
mysql.bat
@echo off
C: \xampp\ mysql\ bin\ mysql % *
  1. The best solution is to put the directory into your PATH. Start from Control Panel ⇾ System and Security and access:
    System ⇾ Advanced System Settings ⇾ Advanced ⇾ Environment Variables
    Find the Path variable in the System Variables. Select it and click Edit. It's best to prepend the new Path component with this addition:
    C:\xampp\mysql\bin;
    
    The Home button on a Microsoft keyboard is a good way to get to the beginning of the Path expression. Alternatively, you can append the new Path component as:
    ;C:\xampp\mysql\bin
    
    Then "OK" your way out.
  2. Another way is to make a convenience batch executable in the directory where your shell opens up into (it should be your home directory). Go to your home directory C:\Users\YOUR_LOGIN (or wherever your shell opens into) and create the file
    mysql.bat
    
    Make sure file extensions are shown. Create an empty text file (New Text Document.txt) and rename the whole file to mysql.bat (Windows will complain!). Make the contents be:
    @echo off
    C:\xampp\mysql\bin\mysql %*
    
> mysql
quit
> mysql as anonymous user
   >
   mysql - u root as root user >
   mysql - u root mysql as root user into mysql database >
   mysql test as anonymous user into test database >
   mysql - u guest test as guest user into test database >
   mysql mysql as anonymous user into mysql database(fails) >
   mysql - u guest mysql as guest user into mysql database(fails)
mysql
$ mysql--protocol TCP...
~/.bashrc
alias mysql = 'mysql --protocol TCP'

/Applications/XAMPP
/Applications/XAMPP / bin
mysql
/Applications/XAMPP / bin / mysql
PATH
~/.profile
$ nano~/.profile
PATH = /Applications/XAMPP / bin: $PATH

$ echo $PATH
$ which mysql

Using the MySQL Client executable from another installation

$ mysql--protocol TCP
load more v

Other "admin-without" queries related to "XAMPP Services without admin rights"