There was an error while restarting Apache Service on Webuzo Panel - php

I'm facing an issue where I can't restart the apache server or starting it. The error says "There was an error while performing the operation". I don't know what causing this problem.
Maybe someone can help me to solve this problem ?
Thank you.
EDIT::
OS Distro: CentOS 6 64bit
Apache Version: Apache/2.2.31 (Unix) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.1u mod_wsgi/4.4.22 Python/2.7.11

I just reboot my vps and then normally work again.
So maybe it because there is some config is not correct.

First, check the is there any service running on port 80 by executing the following command
lsof -i:80
if you found anything just kill it by
kill -9(processid)
Now run the following command to restart the apache:
service httpd restart
This command will work for both Centos as well as ubuntu.
if still not starting the apache then you can check the apache log located at
/var/log/apache/

Related

Php7.2-fpm.sock not created on reboot. Restarting php7.2-fpm doesn not work properly on raspberrypi with nginx

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

PDOException: could not find driver after server reboot

When rebooting the server (RHEL6, Apache 2.2, PHP 7.2) I always get the error "PDOException: could not find driver". Apache is started automatically via httpd init script.
After an apachectl stop | start everything works fine.
Any ideas?
Thanks.

The difference between /usr/local/etc vs /etc/apache2 for apache running on Mac OS

Hi I am very new to both apache and mac.
I had set up apache through Homebrew and as far as I understand so far,
apache from mac runs on OS level, but apache through Homebrew runs on user level. I think that is why mac apache stays in /etc level directory while Homebrew apache stays in /user/local/etc level.
However, I found out that both httpd.conf files differ from each other. Especially I am experiencing a problem that php doesn't render in a virtual host. I tried to fix the problem, but it seems like every solutions in the internet talks about httpd.conf for mac apache.
I am quite confused of what I am doing right now. It will be great if anyone of you guys can explain me how these apaches work different. Thanks!
Default apache path would be:
/etc/apache2/httpd.conf
homebrew apache path
/usr/local/etc/httpd/httpd.conf
You can check how many apaches are running in your system:
which -a apachectl
Default apache:
/usr/sbin/apachectl
Homebrew:
/usr/local/bin/apachectl
The command below for default apache
sudo apachectl restart
You may use this for the homebrew apache
sudo /usr/local/bin/apachectl restart

phpMyAdmin get error 404 for php 5.5.8

I just upgraded my PHP version from 5.3 to 5.5.8
When i was trying to connect back to phpMyAdmin i got the message:
Not Found
The requested URL /phpmyadmin/ was not found on this server.
Apache/2.4.6 (Ubuntu) Server at 192.168.168.59 Port 80
What can be the problem?
I restarted to apache2 server and updated all the apps with sudo apt-get update
Try reinstall phpmyadmin and it was the simple way to do so.
Because, it maybe PHP5.5.X removed PHP/APACHE virtual host. If you know how to put it back the virtual host, you may try it. else try reinstall it

Installing XAMPP on windows

I was trying to install XAMPP on my windows machine and while it is installing it says installing Apache server failed because port 80 and 443 are already in use.
Since Skype is also using this port, i have uninstalled Skype and started re-installing XAMPP server.
But still after uninstalling Skype i get the same error message when XAMPP server is installing. Could someone has faced this issue before share your ideas with me
Thanks in advance for any help
At a command prompt type
netstat -a -n -o
to see which process is using the ports.
It's probably IIS if you've got that installed.
One way to fix it is to specify non-standard ports for XAMPP to use, such as 8080 and 8443.
Have You IIS Service running?
just check that IIS Service, when it running just stop it, you can stop it from Computer managment > Services

Categories