When I'm trying to launch XAMPP control panel, In the 'Manage Servers' section is is shown that 'Apache Web Server' is Stopped and it does not start. when l run the command line it says that another server is running. So how to find and stop that already running server.
TERMINAL:
Starting XAMPP for Linux 7.2.1-0...
XAMPP: Starting Apache...fail.
XAMPP: Another web server is already running.
XAMPP: Starting MySQL...ok.
Might be You are having another instance of apache2 running on your system, so first stop it, run following command and then restart xampp:
sudo /etc/init.d/apache2 stop
Related
I downloaded the installer version of Xampp version 8.1.6-0 for Mac and went to the manager-osx widget to start the Apache and MySQL servers but neither would start.
I then tried using the command sudo apachectl start and then created an index.php file and put it in htdocs, and then tried to open it using http://localhost/index.php as well as http://localhost:8080/index.php and both times it said the server could not be reached.
I've actually downloaded Xamp in the past and was able to reach the server but wasn't able to get php scripts to run, but now for some reason I can't even get the server to run.
I made sure to download the installer and not the virtual machine version. I'm running Monterey version 12.4.
I tried the solutions here but they didn't seem to work. I checked my activity monitor and nothing is running on port 80.
I also installed MAMP from here and tried to start Apache but it displayed the error:
"Apache couldn't be started. Please check your MAMP installation and
configuration."
Any help would be appreciated as I just want to run PHP.
I am trying to make a webserver on my raspberryPI to run laravel application. I installed php7.2 and nginx. Everything was working well, I was able to see default Laravel page on my computer, so the webserver worked. Unfortunately, after rebooting raspberry the file php7.2-fpm.sock is not created and running sudo service php7.2-fpm restart does not work. It doesnt show any errors, just freezes and I have to click ctrl+c. What is interesting, after a while the above command starts working, the file php7.2-fpm.sock is created and the server works. How can I fix this bug? I need webserver to start automatically after booting raspberryPI.
My /etc/php/7.2/fpm/pool.d/www.conf file:
listen = /var/run/php/php7.2-fpm.sock
I have an Ubuntu VM / Azure SQL DB combo where I have two sets of PHP files.
1) Some scripts that run from CRON jobs
2) A Yii2 Framework website
Both environments connect to an SQL Server database.
I have done all the steps to compile sqlsrv and added it to PHP's list of extensions. My scripts work great from the terminal, but on the website, I get an error:
could not find driver
My webserver is nginx, and it runs the website properly, but PDO does not connect to SQL Server.
I only have one PHP installation, but nevertheless used code to determine which is the right php.ini file in use and it has the right extensions directive.
A phpinfo() output also shows sqlsrv in the 'Registered PHP Streams' section.
My UFW firewall is inactive and I don't have SUSELinux. Nevertheless ports 22 and 80 are open. Even tried enabling it.
I am not sure what else to try. Help!
EDIT
I created a simple test file. When I run that through the terminal, it works, but when I do so via a browser, it doesn't.
EDIT 2
I installed Apache2 instead of nginx, and everything works now.
I think you need to try with just some "Hello world". If this not help type in terminal:
sudo apt-get install php-mysql
And restart your nginx server with:
sudo killall nginx && /usr/local/nginx/sbin/nginx
I am facing the below issue while starting the xampp on linux box.
I am able to start the mysql and proFPD but i couldn't satrt the apache.
It showing another webserver is already running.
XAMPP: Starting Apache fail.
XAMPP: Another web server is already running.
XAMPP: Starting MySQL already running.
XAMPP: Starting ProFTPD already running.
- if you start lampp and are fetching apache starting issue run below
command
sudo /etc/init.d/apache2 stop && sudo /opt/lampp/lampp start
Seems like you have httpd daemon running already.
Go to terminal and type service httpd stop
Then try starting XAMPP
my project on the remote server stopped working after i did the following
1> install putty
2> connect to the remote server using FTP details
3> then in the root server installed pear using
$ sudo apt-get install php-pear
4> then i changed the path in php.ini
now the server has stopped working ... why? what happened? HELP!!
I believe it might be superuser question.
Anyway, we need more details.
Assuming the server is running linux (/unix), check the logs - they will probably tell you why the server fails to start. Check both syslog (/var/log/syslog) and your server software specific log.