Red Hat / Fedora :: Php Exec(); Can't Reload Httpd?
Apr 4, 2010
When I try to reload httpd service through commandline interface directly, it works. But when I tried to reload service of named and httpd using php exec(), it doesn't works.service named reloadservice httpd reloadThe service named is OK but httpd got problem.My OS is CentOS 5.4 .
My script:
echo exec("service named reload"); result is " Reloading named: [OK] "
but
I have installed fedora 13 in my system. httpd server is also installed. when I tried to start the service of httpd, following error message displayed: Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
We have ubuntu server and bind9 installed and setup.When I issue rndc reload or /etc/init.d/bind9 reload I got this:rndc: connection to remote host closedThis may indicate that* the remote server is using an older version of the command protocol,* this host is not authorized to connect,* the clocks are not syncronized, or* the key is invalid.If I issue named-checkconf /etc/bind/named.conf I got this:/etc/bind/named.conf.local:165: unknown key 'rndc-key'I got the key files in the right location but I'm not sure if we even need to use them.
eog notices when a PNG file changes, and offers to reload it.But it does not reload until I move the mouse over to the monitor where I stuck eog, and click ReloadHow can I make eog just reload automatically without asking -- the way evince does, for PDFs?
I make partition on fedora-12, after that it gives me warning
kernel was unable to re-read the partition table on /dev/sda (Device or resource busy). This means Linux won't know anything about the modifications you made until you reboot.
Is it possible to reload partition without reboot, i tried partprobe as well but no luck.
trouble when I log in the fedora as a normal user(not root) today. When I fill the username and the password press enter key. Then pop up a little window locate at topleft corner. And have one line message : "/usr/bin/xterm : Could not exec /bin/bash : Permission Denied"hen I log in as root, it's ok. And when I open shell and type "su username" then the console print "su: /bin/bash: Permission denied"I have checked the perms of "/bin/bash" , it's 755. And I have tried all things which suggested from articles searched through Google. like change / or /root and other directory's permissions but failed
I was told to simply go into the fstab folder to allow myself permissions to execute files without becoming root, but instead of following it blindly I need a 2nd opinion. I cannot install a specific program because of configuration problems even though I downloaded all the gcc, g++ etc packages.
I have copied /usr/share/gnome-shell/themes/* to ~/.themes/myShell/gnome-shell and also the folders from Adawita and my customisations etc.
When I look in the overview - themes I can select my theme however when i reload the shell the themes option has disappeared and i get this error in looking glass:
why I get this?
Also if I load gnome-tweak-tool and select another theme, move my custom folder out of ~/.themes and reload the shell I get the themeselector loading properly again.
accidentally I do something wrong with my server and the httpd folder missing and I need it to setup my mail server and anyone can help me what can I do without reinstalling my Cent OS? Here is the error msg :
[root@mydomain etc]# service httpd stop Stopping httpd: [FAILED] [root@mydomain etc]# service httpd restart
I am a very new Linux user (newb) so I could be missing something very obvious. I have a Toshiba Satellite L645D-S4056 and recently installed Fedora 14 (64-bit GNOME) with all sorts of updates and software.
I'm working my way through all of the hardware to get it all running properly. I figured out how to get the RealTek wireless-n adapter working. The webcam is working even with Skype which is tricky on the 64-bit version.
At the moment, my touchpad doesn't work. I see a lot of articles online about the touchpad not double-tapping, but mine doesn't work at all. I've been using a mouse for all my GUI stuff.
I went to SYSTEM --> PREFERENCES --> MOUSE and selected the touchpad tab, but I can't figure out how to make it work.
Running CentOS 5 x64 And today my httpd is running very slow and I can't find a fix. Looked all over different forums
When starting httpd I get the message: /var/lock/subsys/httpd': No space left on device I checked that directory above and there is no file called httpd tried rebooting server
Can't do updates too: [root@u15438957 ~]# yum update Loaded plugins: fastestmirror, priorities rpmdb: unable to join the environment
I have been having trouble installing some programs because of some dependency resolution errors. Sometimes I can work around it, and sometimes I can't.
The problem is that it looks for a package named in a different way or something.
Currently, I'm having problems installing "evolution-data-server" from source. It gives an error during configuring that says "libdb" can't be found, but I do know I have it installed.
I'm giving "reseting the repos" a shot because this might solve everything else. Basically, what I want to happen is that the package manager, and the repository list, would be back to "normal", the state where it's as if I just installed F13.
Here are screenshots of my repo list
It's tiring sorting out dependencies manually. Plus, there are no guarantees that I can have a successful installation.
I've installed Eclipse PDT with yum and httpd got installed as well. The problem is everytime httpd starts it chooses different (random) port and refuses connections to other ports like 80 (displays 403 forbidden error). That's really annoyng because I have to launch eclipse and open file in "PHP Browser" to get the right port. It also makes me unable to setup vhosts properly (i think). How to force apache to stick to the 80 port? Heres my httpd.conf: [URL] The only things I've changed there is added vhost
I have Fedora 12 x86_64 installed in my computer. I have also installed system-config-httpd, but when I go to System --> Administration --> Server Settings --> HTTP, nothing shows up.
I get the following error, after installing and configuring httpd - it will not start any longer:
Code:
Starting httpd (via systemctl): Job failed. See system logs and 'systemctl status' for details.Where can I find the system log for this so I can post what is actually causing this?
We have apache installed at a directory other than the default location. There are two httpd.conf files on the server, one at the apache installation directory, and the other one is the default one at /etc/httpd/conf. The apache ran very well with the customized httpd.conf before, but after I installed php 5, the server seems taking the default httpd.conf and doesn't display the html pages which are installed at our apache directory. How to let the server know not to use the default httpd.conf and use the customized one instead?
httpd have been install by default and I don't start it as services. I have install apache2 but don't want to start as service, I can't add it into the chkconfig. When I try to remove httpd, fedora also want to remove these software.
gnome-user-share i586 2.26.0-2.fc11 installed 809 k httpd-manual i586 2.2.11-8 installed 3.5 M mod_perl i586 2.0.4-8 installed 6.3 M
[code]....
php and webalizer I don't care as I want to install the new version, but is their any problem removing the other one? Also I want to pount the apache2 documentroot to var/www/httpd but when I do this and try to see the website I got a 403 error (not autorize)
I modified my httpd.conf file without making a backup. Apache runs fine but I am having a perplexing problem with drupal and want to try a vanilla httpd.conf file. Where can I get a 'virgin' configuration file for fedora 10?
I just did a clean install of FC12 x86_64 and want to configure tomcat to run behind apache httpd. What is the easiest way to accomplish this? I'm a newbie at server configuration so detailed instructions would be nice
I have opened up the Service Configuration window that shows all the services and their status. My httpd says that it is enabled, but also that "this service is dead" and there is a orangish triangle. I can run phpMyAdmin on my server, but I can't run it from any other PC on my network.
I have a VPS which is running HTTPD, and its getting blown to bits by a DOS Attack. Turns out mod_evasive is totally useless (due to not running a total - rather counting per child process) and the only way to stop the box from running at 100% on all cores is to term HTTPD. So, what rules can I implement on the iptables firewall to block multiple requests from an IP? I saw this: [URL] Where someone has posted some rules but these dont work ("unknown error 4294967295" on the 3rd line). This is what i'm after though - block multiple requests from a single IP for a certain period of time.
I rebuilt my box with Fedora 14. installed httpd, mysql php etc. when I tried to start my httpd it was giving me error about finding the root document and server name I was able to fix temp the issue with the name by placing ServerName 192.168.1.105:80 in the httpd.conf file and the root document somehow was fixed also. but I am still can't start the httpd and no error message except that it failed. I also disabled Selinix but still no luck.
Sometimes httpd (the apache web server) fails to start and displays an error (98: Address already in use: make_sock: could not bind to address xxx.xxx.xxx.xxx:80). This happens even when no other service is listening on port 80, as evident from the output of "lsof -i :80" and "netstat -A inet -lnp". This is due to a configuration file mixup. Both /etc/httpd/conf/httpd.conf and /etc/httpd/conf.d/system-config-httpd.conf contain the directive "Listen :80". If you comment out the "Listen 80" in /etc/httpd/conf.d/system-config-httpd.conf, httpd will again start.
Since I started using Fedora 10 I can't login as root. Even though the system recognizes the root password when it requires it for certain administrative tasks it refuses to let me login as root.
When I try to edit httpd.conf I get the message "could not save file..." it doesn't even prompt me for the root password. My httpd service is dead and I can't resurrect it, what should I do?