Ubuntu Servers :: Can't Restart The Service - Apache2: Command Not Found

Sep 5, 2010

I just installed apache2 and i can't restart the service, i get: Code: sudo: /etc/init.d/apache2: command not found

View 6 Replies


ADVERTISEMENT

General :: Will Command Service Httpd Restart Apache Service?

Dec 25, 2009

will the command service httpd restart the apache service if i enable httpsd service in graphical mode

View 12 Replies View Related

General :: Giving The Command Service Nfs Restart In Fedora14

Jan 5, 2011

When ever i am giving the command service nfs restart in fedora14 iam getting the following:

And when typing the command service portmap restart in fedora 14 i am getting the following:

When i tried this in redhat and centos it was working in my class room but when i am trying it in real time it is not working so what does it mean and how to resolve the issue.

View 2 Replies View Related

Fedora Servers :: Service Httpd Restart - Broken In F11?

Jul 5, 2009

Has anyone noticed that when using NameVirtualHost's in apache that the service httpd restart command is broken?Also it seems system-config-bind has glitches too.

View 10 Replies View Related

Ubuntu Servers :: Apache2 Userdir Module Page Not Found?

Jun 18, 2010

I just installed apache2 server on my ubuntu 10.04. It works fine (i get the "that works" page when i access to http://localost/ and get no errors or warnings when i start apache.However, the localhost/~florian returns a 404 not found.I've enabled the userdir module

Code:
a2enmod userdir
and restarted the apache server

[code]....

View 4 Replies View Related

Ubuntu Servers :: Really Weird Sshd, $service Ssh Restart Output No Ok Message?

Oct 26, 2010

I go and restart ssh and I get this weird message. thought I should be getting ok or fail message, at least thats how I remember it. What do you think?nate@universal-mechanism:~$ sudo service ssh restart

View 3 Replies View Related

Fedora Servers :: Upgrade From 10 To 11 Breaks Service Httpd Restart?

Mar 22, 2010

Alright, so I upgraded my old fedora 10 server to Fedora 11 with a netinstall CD, but now service httpd restart is broken. I already had to delete the old config file and reinstall apache, but now I can't restart it. I can kill it and then start it manually, but it never stops the running instance and fails to bind the port. I know it's because /var/run/httpd/htpd.pid is in the wrong place, which would be /var/run/httpd.pid, but do I have to make a symlink every time I want to restart it? I edited all the config files to point to the right place, but the system does not honor them. What do I do?

View 3 Replies View Related

Ubuntu Servers :: Samba Shares Folders But Not Printers Until Restart The Smbd Service?

Jul 18, 2010

Just like the title states, as soon as my server comes up, I see the samba share that I made and can browse it just fine.

I don't see the printer share nor can I print to the shared printer until I execute service smbd restart from an ssh login. Then I see the printer and then I can network print.

Before restarting smbd, I do check to see if it's already running and it is (two instances are running in fact). When I restart smbd, there are still two smbd services running but they have higher PID numbers (and I can then print).

I'm running 10.04. how to make it all start up happily the first time without any intervention from me?

View 2 Replies View Related

CentOS 5 :: Shutdown/service - Command Not Found

Aug 13, 2009

With this issue:

$ sudo shutdown -r now

sudo: shutdown: command not found

View 2 Replies View Related

Ubuntu Servers :: Apache2: Invalid Command 'PHPINIDir', Perhaps?

Apr 19, 2011

I've recently been trying to secure my Apache2 server running suPHP on an Ubuntu 10.10 box. My ideal solutions are to

1) Specify a specific php.ini on a per virtualhost basis. I have tried using the PHPINIDir directive inside a virtualhost block in my 'sites-available/default' file, but the parser throws an error

Invalid command 'PHPINIDir', perhaps misspelled or defined by a module not included in the server configurations I have figured out that the reason this directive is not recognized is because my server is running mod suPHP instead of mod php5. The default site on the server requires suPHP to perform certain administrative functions. First question would be, is there some other way to specify a specific php.ini besides using PHPINIDir, or does anyone have any ideas of how to get PHPINIDir to be understood under the current configuration?

2) Activate/Deactivate php5 on a per virtualhost basis. This will allow me to use PHPINIDir to specify a specific and secure php.ini. I know that I have php5 installed, as 'a2enmod php5' with a restart will activate php5 and override suPHP. Does anybody know what the commands would look like to load the php5 modules from inside a virtualhost block? I have looked around on the internet and found these two lines of code to add that will supposedly activate php5 under a virtualhost

LoadModule php5-module modules/libphp5.so
AddHandler php5-script php
I do not have a 'modules' directory in my /etc/apache2 folder, so I did a search for libphp5.so and found the only copy on my machine located in /usr/lib/apache2/modules. Naturally, I tried
LoadModule php5-module /usr/lib/apache2/modules/libphp5.so
AddHandler php5-script php
but received an error
apache2: Syntax error ...: Can't locate API module structure 'php5-module' in file /usr/lib/apache2/modules/libphp5.so

Surely I can't be the only one who's needed to specify different php.ini files for different virtualhost's while using suPHP, and I'd also have to assume I'm not the first one who's tried to integrate suPHP and php5 on a per virtualhost basis. Anyone have any ideas? I'm completely stuck, and that's the worst kind of stuck. The Apache2, suPHP, and php5 installations on my machine are standard for Ubuntu 10.10

View 1 Replies View Related

Ubuntu Servers :: Apache2: Invalid Command 'AssignUserId'?

May 5, 2011

I just reinstalled my server with Ubuntu 11.04 and I am now trying to put my websites back in place. The problem is that the configuration directive AssignUserId is no longer working. I simply get this:

Code:
root@silvertejp:/etc/apache2/sites-available# service apache2 startStarting web server apache2 Syntax error on line 12 of /etc/apache2/sites-enabled/finn:

Invalid command 'AssignUserId', perhaps misspelled or defined by a module not included in the server configuration This worked fine on Ubuntu 10.04. Should I install some module? How?

View 1 Replies View Related

Ubuntu :: How To Restart Network Adapter (not Service) Without Restart?

Mar 13, 2010

I have a suspend problem in my laptop. Sometimes, when resuming from suspend, the network adapter is down (that is, the network does not work and the light of the network adapter is off). Restarting the network service doesn't work, because I think that the system forgot about the hardware, and probably the driver should be reloaded.Does anyone knows how to do that?(ps. /etc/init.d/networking restart does not work, because the hardware driver is not being recognized anymore).

View 5 Replies View Related

Red Hat / Fedora :: Shows Unrecognized Service After Restart Service Smb

Feb 28, 2010

i can smb in centos 5 and i run service smb restart, it shows :smb: unrecognized service..... i run rpm -qa |grep samba,it shows

samba-common-3.0.33-3.7.el5
samba-client-3.0.33-3.7.el5
.....

View 2 Replies View Related

General :: Shell Script To Delete File If A Pattern Is Found And Restart Servers?

Jul 22, 2010

I have requirement to delete some log files from a directory if a string"deletethisfile" is found.Then restart the application servers.1. Search for the string ?deletethisfile? in server.log file under a directory, If found 2. Stop that particular server.3. Delete the log file 4. Restart the server.

View 2 Replies View Related

General :: Difference Between Restarting/stopping Apache Using 'service Httpd Restart/stop' And Apachectl Restart/stop

Oct 11, 2010

whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?

View 1 Replies View Related

General :: Configuration Error In Apache2 / "cannot Adjust Apache2 Service" Error?

Mar 11, 2011

Installation of SUSE 11 server now when I try to configure apache2 (opening port 80) I get a "cannot adjust apache2 service" error??? Can anyone shed some light on this.

View 1 Replies View Related

Ubuntu Servers :: Nm Command Not Found?

Mar 9, 2010

Running Ubuntu 9.10 64bit server. Installed it as a minimal virtual machine. The 'nm' command does not exist in /usr/bin. Assuming this is because the nm command is not included in a minimal install. How can I install the nm command ?

View 2 Replies View Related

Ubuntu Servers :: EBox Cannot Connect - 'command Not Found'

Apr 28, 2010

I am using eBox at my Ubuntu Studio laptop to manage the manage server application configuration, but in the firefox browser, I put the Ubuntu server 9.10 ip address 192.168.122.1/ebox into the firefox, but firefox can not connect the server, but I saw my Ubuntu server icon in the network of the studio admin menu. and I put command sudo ebox at the command line of the server, but the server says 'command not found'

View 1 Replies View Related

Ubuntu Servers :: Tcsh And Myscript: Command Not Found

Feb 7, 2011

I just recently installed Ubuntu for our server, and I had a question about using tcsh. I'm trying to run a script of commands and the first line of my script is: Quote: #! /bin/tcsh -f I chmod +x my script, but when I type the name of my script at the command line i get this message: Quote: myscript: Command not found. the only way my script will work is if I type: Quote: tcsh myscript

Only then, will myscript execute its set of commands. I would like to be able to type the name of scripts without having to type tcsh at the beginning, each time. Is there a way to do that?

View 5 Replies View Related

Ubuntu Servers :: Not Found A Command To Monitor Cpu Usage

Jun 20, 2011

I'm monitoring all kind of things like ( Mem, network, cpu, IOPS,..) But still not found a command where i can see the CPU usage but in MHZ ( or Hz). Using top or looking into /proc/cpuinfo doesn't give me the info i want.

View 4 Replies View Related

Server :: Apache2-mpm-itk Will Not Successfully Restart

Jun 15, 2010

I am having some problems after installing apache2-mpm-itk on my Debian 5.4 server. From my understanding apache2-mpm-itk will run child processes as root until a http request is received. It then suid's to the username in the VirtualHost directive. This is all working fine, as I can see a few apache processes started by a specific user.

However, the problem is when I try to restart apache. It will kill all the processes running by root but wont kill any of the processes that have been suid'ed to another username.

When i attempt to restart I get this error:

Code:
charged:/etc/apache2# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

[Code]....

If I do a "ps aux | grep apache" before and after I see all the root processes killed, but processes running as specified users from VritualHost directive remaining.

Now I am not an extreme linux power user, but I know a bit.

View 1 Replies View Related

Ubuntu Servers :: Perform An Action Before A Service Starts And After A Service Stops

Sep 10, 2010

I am running Server 10. I have a requirement to perform an action before the MySQL service starts, and perform another action after MySQL service stops.

I found the init script for MySQL under /etc/init/mysql.conf. I added my thing to the pre-start script there and works fine.

I am having trouble finding the script that stops the server so I can modify.

View 1 Replies View Related

Debian Configuration :: Disable Apache2 Does Not Restart On Boot?

Apr 19, 2011

want to disable apache2 so that it does not restart on boot so that I may evaluate lighttpd

View 1 Replies View Related

Software :: Restart Apache2 Process Every 10 Mins To Clear /tmp Directory?

Aug 31, 2009

I have been working on this for a few hours now and still haven't been able to track down whats going on. I just switched servers and put a fresh debian install on with apache2 + custom suexec + php5(fcgi). now when i upload a file to the site it wont upload, so i tracked down the issue. its the /tmp directory that root tmp. its at 100% so i restart the /etc/init.d/apache2 process and the /tmp directory is automagically cleared to 20% used and i can upload again. so i figure ok its got to be a setting. i looked in all the conf files conf.d the php5 conf files and no where do i have a /tmp directory set. so i think OK I can build a cron to clear the tmp directory every 10 mins till i find the issue, but alas, when i go into the tmp directory There are NO files to delete!!! wtf. holy crap. and all that goodness, this is crazy, how can you have a tmp directory that is not being written to, from all i can see, so i think ok it might be a hard link, i checked, in all root and sub root directories no hard links to tmp, no soft links to temp either. and if i sit in my /tmp directory and do a df -h after some uploads its going from 20% so 23% and up, but i do ls -alh and nothing, then ls -al and watch bytes, nothing , so this is very strange. has anyone encountered something like this? is it possible that this is a hard link thats hidden somewhere or some other extreme function i have never heard of?

View 8 Replies View Related

Ubuntu Servers :: Stop And Restart The "opt/drbl/sbin/dcs" Command?

Feb 8, 2011

i've just installed an ubuntu server 10.10 with drbl and clonezilla everythink seems to works fine, i was able to create a new images and i was able to deploy the new images to 6 pc's at the same time via braodcast, but to deploy again the images after each braodcast session i have to stop and restart the "opt/drbl/sbin/dcs" command.i've reinstalled ubuntu again, i've changed the swicth and tried a new network card but problem still persist.

View 2 Replies View Related

Ubuntu :: Can't Restart Lm - Sensos Service?

Sep 1, 2010

I can not restart lm-sensos service. This is what I get:

Code:
mahmood@localhost:~$ sudo /etc/init.d/lm-sensors restart
.: 39: Can't open /etc/init.d/functions

View 7 Replies View Related

Server :: Restart The CVS Service In The 6.2?

Feb 17, 2010

I have linux server which 6.2 very old which was installed long back. CVS is running there . problem is sometime the port doesnot listen sometimes listen if i do netstat -an.It is weired. not sure how to restart the CVS service in the 6.2 server

View 1 Replies View Related

Ubuntu :: Apache2 Requested Url Not Found

Apr 8, 2010

I looked around on the internet to find a solution, but none found.I installed apache2 on Karmic Koala and that one works. On the default page I created a link to "/home/me/Documents/folder/index.html", but when I click the link it gives me the URL not found-error.

View 2 Replies View Related

Ubuntu :: Printing Margins - Restart Service Or Something After Changing Ppd?

Aug 10, 2010

I have an HP Deskjet D1460. I am using Ubuntu 10.04 and HPLIP 3.10.2 that came with the distro. I am in a plan of moving my windows PC to ubuntu in my bussiness, and this is the first of them. Trying to solve all the problems before converting a second one. All seems to work quite well and almost out of the box... and that is a huge step from the last distro i tryied 2 years ago. So, my difficulty now resides on the printing. I am using a small VFox program that manage some of the aspects of the bussiness, in wine. It works without problems, but... when I print, all the pages get printed like 1cm below than when it was printed under windows. The problem is, that I use the printer to fill some forms that came pre-printed, and now, I am printing over the other text instead of the white spaces. I read a little, and try to adjust the HWMargins and the ImageableArea in the ppd of /etc/cups/ppd/ but it was like if I was doing nothing. Do I miss a step? Do I need to restart a service or something after changing the ppd? The margings when using the printer gui from Ubuntu are all in 0, and for that i need like a minus something.

View 3 Replies View Related

OpenSUSE :: Restart Automatically A Service?

May 27, 2010

I have a box Suse 11.1 with a service that (I dont know why) every day stop at the same time. Im finding why it come to a halt but in the meantime I would like restart it automatically.As root I insert in crontab the line:25 16 * * * /etc/init.d/service startBut it don works
If I launch manually /etc/init.d/service start (or stop) it works

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved