Software :: Cronjob Schedule To Run Php Script On Lighttpd Server Internally?

Mar 29, 2011

I know that you can access and run any script of the web by wget:

Code:

wget mydomain.com/page.php

But this is literally accessing it externally through the web, i think that it is safer and faster to access the script internally. I am using lighttpd to host my php pages, and is there a way to do that? I have had some hosting experiences, the cronjobs on the hosts let u input:

Code:

* * * * * php /public_html/path/page.php

View 2 Replies


ADVERTISEMENT

Ubuntu :: Root Cronjob Not Working On Schedule

Jun 27, 2011

I have added "@daily shutdown -r now" to my root crontab (sudo crontab -e) but it does not seem to ever run. When I look at the chron log using webmin I can see that it tried to run and there was no error. Also when I run it manually using webmin the system reboots fine. I also tried using reboot -f in the crontab instead and that also worked when manually run but not on schedule. The reason I know it didn't run is on webmin it shows the system uptime. This is the output of the chron log:

Code:
Jun 26 21:17:02 GrantLaptop CRON[3467]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 26 22:17:01 GrantLaptop CRON[3873]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 26 23:17:01 GrantLaptop CRON[4269]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 27 00:00:01 GrantLaptop CRON[4530]: (root) CMD (shutdown -r now)
Jun 27 00:17:01 GrantLaptop CRON[4630]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 27 01:17:01 GrantLaptop CRON[5005]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 27 02:17:01 GrantLaptop CRON[5416]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)

View 5 Replies View Related

Slackware :: Function To Check If Lighttpd Running Has Exception When There's No Lighttpd

May 7, 2010

what the procedure is to file bugs against slackware so I will post here. The rc.lighttpd I have works but the function to check if lighttpd is running has an exception when there's no lighttpd.

View 2 Replies View Related

Server :: Sendmail For Inbound Mail And Redirecting Them Internally To Other Port?

Mar 22, 2011

I have configured a sendmail MTA for incoming mails in a network and by using IPtables i have redirected the traffic internally to other port where one more SMTP by a application is running.Iptables rule:

iptables -A INPUT -i eth0 -p tcp --dport 25 -j ACCEPT
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 25 -j REDIRECT --to-port 25000

My sendmail config is as below.

Sendmail.mc
define(`SMART_HOST', `relay:host.subdomain.mydomain.com')dnl
dnl # define(`RELAY_MAILER',`esmtp')dnl

[code]...

View 2 Replies View Related

Server :: Lighttpd - After Installation Could Not Get Web Pages

Aug 9, 2010

I have installed lighttpd from svn as

Code:

Then I created four directories

Code:

And ls -l for following is

Code:

So permissions are correct upto here.

Then

Code:

Changed the following to

Code:

To

Code:

Then

Code:

Now I run

Code:

I can see

Code:

lighttpd is running.

Following is lighttpd.conf [url]

I created some html pages in /var/lighttpd/ in a directory called jp (which I had made).
Permissions of Document ROOT

Code:

And the directory

Code:

I was not able to see the webpages [url] but I was able to see [url] so why I could not browse the directory jp

I am getting a 404 not found error. Where as the page exists.

View 4 Replies View Related

Server :: Lighttpd Anti-hotlinking For Images ?

Jan 7, 2011

Lighttpd anti-hotlinking for images i just want these domain to link my imgages (test1.com,newtest2.cn,800keke.net,800org.com.cn),the other site will be redirect to [url].

lighttp configuration :

Code:

This configure onle effect to test1.com. no effect to (newtest3.cn,800keke.net,800org.com.cn. i still dont know why..

View 1 Replies View Related

Server :: Multiple SCGI Servers With Lighttpd?

Jul 16, 2009

I'm trying to configure lighttpd to send SCGI requests to different ports, depending on what file(s) are accessed. Is this possible? This is what I've tried, and it hasn't worked.

Code:

$HTTP["url"] == "URL1" {
scgi.server = (
"/RPC2" =>

[code]...

SCGI requests aren't sent to the correct port, regardless of what file is accessed.

View 1 Replies View Related

Server :: Run Cronjob Once Every Three Months?

Apr 30, 2010

I am trying to run the following only once every three months but looks like it runs every day. I edited crontab -e and added the following:

Code:

0 23 * jul,oct,jan,apr * /path/to/script > /var/log/script.log 2>&1

View 2 Replies View Related

Server :: CentOS 5 Make Qmailadmin Work With Lighttpd?

Aug 20, 2010

I have been searching in the forum and google but still not lucky enough to figure out yetI have a lighttpd server runningbecause apache consume so much CPU and memory) andqmailtoaster (just setup).Here is the configuration in cgi modules:

Code:
cgi.assign = ( ".pl" => "/usr/bin/perl",
".cgi" => "/usr/bin/perl",

[code]....

View 2 Replies View Related

Server :: Installing Lighttpd From Svn Unable To Start Script?

Aug 4, 2010

I have followed all the steps as mentioned on documentation.except automake (I am not clear as where to make automake)

I logged in as Root on a Ubuntu system
and then

Code:
cd /opt
svn checkout svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x/
cd lighttpd-1.4.x
./autogen.sh
./configure
make
make install

After this what do I need to do to be able to start the lighttpd ?After this I did not found any script /etc/init.d/lighttpd. so what more has to be done ?

View 14 Replies View Related

Server :: Lighttpd Access.log File Is 73 GB - How To Clear It Partially

May 19, 2010

I have an Ubuntu server running with lighttpd.

The file, access.log has utilized 73GB at: logs/lighttpd/, which contains data since 3 to 4 years (approx.)

So, i need to have only last 6 months logs in the file and the rest to be cleared.

View 4 Replies View Related

Server :: Lighttpd - Name Index.html Of Additional Domain?

Apr 13, 2011

For the 1st domain,say domain1. I name the index file as:

[code]...

3 identical files. It works seamlessly. On browser its webpage can be evoked. Now I add another domain, say domain2. How shall I name its index files?

[code]...

View 1 Replies View Related

Server :: Lighttpd - Slow HTTP POST Attack

Jan 31, 2011

[url]

I ran across the above article, which described a DoS attack in which requests are sent very slowly to the Web server. I'm running lighttpd 1.4.28 on a Gentoo Linux server, and I'm wondering if there is anything I could do in preparation to defend against such an attack.

A bug report [url] seems to indicate that there was a patch in place already against this sort of attack, but I wanted to be sure that was the same thing and if there was anything else I needed to do.

View 3 Replies View Related

CentOS 5 Server :: Installed Lighttpd - Get 404 Not Found In Browser

Jul 31, 2010

This is what I did till now and all was installed with success:
yum update
wget [URL]
yum install lighttpd
chkconfig --levels 235 lighttpd on
/etc/init.d/lighttpd start
Must I configure something else too? if yes... what?

View 2 Replies View Related

Server :: Way To Setup Cronjob For Configuration?

May 27, 2010

I'm trying to setup a cronjob that needs to run every 40 minutes between 10am and 3.30pm.I generally used cronjob for simple configuration, but now I'm a bit lost.There is a way to setup cronjob for that configuration? (better if all in one line of code, not multilines).

View 4 Replies View Related

Server :: Email Myself Output Of Cronjob?

May 10, 2010

I have the following Cron job scheduled on my Postfix mail server: Code: 00 18 * * * /usr/bin/clamscan -r --remove /home/.This is just running a scan on my entire /home/ directory and removing any infected files it finds. My question is since this is being ran at 6pm via Cron, how can I get the results of this job emailed to me via text? Does anyone recommend a command I can add to the end which will dump the results into a file or email and send it to a specific email address? This server is my company Postfix MTA for everyone.

View 14 Replies View Related

Server :: Set Cronjob To Reboot Server Every 3 Days?

Jun 1, 2010

If I make a cronjob to reboot a server every 3 days at like 2am? This way it will free up ram, etc and cause less problems right? I know a guy that is doing this, and I'm trying to convince him otherwise.

View 5 Replies View Related

Server :: Lighttpd: Backend Is Overloaded + Multiple Php-cgi Processes In D State?

Sep 24, 2010

I've got this problem for a few weeks and I cannot figure out. I'm pulling my hair out. I have a server installed PHP, lighttpd and redis. Sometimes, I got the following messages in the error log of lighty: Code: 2010-09-24 13:57:33: (mod_fastcgi.c.3011) backend is overloaded; we'll disable it for 1 seconds and send the request to anoth er backend instead: reconnects: 0 load: 567 2010-09-24 13:57:33: (mod_fastcgi.c.3011) backend is overloaded; we'll disable it for 1 seconds and send the request to anoth
er backend instead: reconnects: 0 load: 626 and:

[Code]..

View 3 Replies View Related

Server :: Cronjob Rsync Doesn't Work

Mar 28, 2011

I have a computer that I would like to backup the home directory onto a server. I created a script called wien_backup.sh that contains the following:

#!/bin/bash -l
/usr/bin/rsync -rv --delete-after --ignore-errors -e /usr/bin/ssh root@wngr403-unix2:/home/ /space/systemimager/Wien/

where wngr403-unix2 is the computer I am backing up, and the script is ran from the server. If I run the script by itself, it works just fine. If I run it as a cronjob, the /var/log/syslog says it ran, but it does nothing.

View 6 Replies View Related

Server :: Schedule Shutdown Every Day Using Crontab?

Jul 29, 2010

how to schedule shutdown every day using crontab

View 1 Replies View Related

Server :: Reporting The Schedule For Nagios?

Jun 3, 2010

I have configured Nagios in my CentOS machine and is able to receive notificatons/alerts related to hosts and services at defined interval. Now I would like to receive combined reports (for daily downtime, availability of hosts/services) for all hosts and services in one go in the morning. Is there any configuration or setting on Nagios Splash screen.

View 1 Replies View Related

Software :: Schedule Uploading To Server Between 1-5am?

Dec 17, 2010

I have been messing with rsync but I don't see any kinda time limitations that will start the sync at 1am and stop it at 5am and resume the next night. Im dealing with some rather big files so the program will need to be able to resume an upload. I would like to use the ssh protocol to send the files as it's encrypted. (something like scp is fine too) but I can't see how to get them to stop at 5am (I thought of using a cron job but then how do I stop it at 5 without corrupting the partially uploaded file...)Both OS's are linux/unix based (Debian/Max OS X with ports)

View 3 Replies View Related

Programming :: What Happens Internally When Create A File

Jan 17, 2011

I am using NetBSD-5.1.1. I wanted to know what happens internally when we create a file in linux. ( In general )?The header file STDIO.H present in "src/include/stdio.h" contains a "FILE" structure with various members like _p, _cookie, etc.2. I wanted to know how does internally memory gets allocated for them.?

View 1 Replies View Related

Networking :: Addressing Internally And Externally With A /30?

Jan 27, 2011

It's more just straight networking rather than Linux related - possibly a rather large gap in my knowledge.Been asked to set up a Linux firewall / router for a friend, and he wants an external address on his PC and his firewall. He's got a /30... ISP seem to think this is normal. My understanding was different router interfaces should be in different subnets when it comes to addressing. eg:

WAN 1.1.1.1LAN 192.168.1.1/24 (then PC 192.168.1.2)This is how I'd set up an enterprise router, and from memory how I had to regurgitate networking for my Cisco exams. But they would have been large devices within a BGP environment, how does this compare to home use? Can you have interfaces on the same router within in the same subnet? I'm looking for the real world answer - not my CCNA answer or the config addressing scheme I just blindly followed...Is this right or can different interfaces be in the same subnet?If they can be in different subnets How would you do that with an eternal 1.1.1.1/30? egWAN 1.1.1.1LAN (what IP?) then PC 1.1.1.2Would you actually just set the router up as a /29 and then use the additional IP addresses for the LAN NIC on the router? (yes I'm aware you couldn't route to where it had actually been allocated)

Then with that how do I route the 1.1.1.1/30? Which interface do I point it at? Even with a /29 I'd still have a routing issue right?Or are the ISP expecting you to do something with NAT / port forwarding. (and yes I could do this to get it working - but I want to understand it better) I'm asking the question here, because rather than just wanting a magic file to get things working, I'd actually rather understand the principles rather than just press a button and have it work.

View 7 Replies View Related

General :: Internally Create A File?

Jan 16, 2011

I am using NetBSD-5.1. 1. I wanted to know what happens internally when we create a file in linux. ?The header file STDIO.H present in "src/include/stdio.h" contains a "FILE" structure with various members like _p, _cookie, etc. 2. wanted to know how does internally memory gets allocated for them.

View 1 Replies View Related

Fedora Networking :: Can't Reach Computer Internally With Domain Name

Apr 8, 2010

I am not sure if this is a problem with my router or a problem with the fedora 12 server i am using.

- internal here means within my home network, external means from outside it.

I can access my server and webpage:

internally using http://192.168.0.192
externally using http://MYDNS___EXAMPLE.com

but I cannot access the server internally using http://MYDNS___EXAMPLE.com

This is a pain in the butt because I have all of my client software setup with an internal and external access point (ssh, proFTPd, http, MS Access database connected to MySql, etc.)

View 5 Replies View Related

Hardware :: Replace Power Supply Or Mount Internally?

Dec 22, 2009

I have a 500GB WesternDigital Elements external harddrive and recently I plugged it into my computer and noticed the green light on the power adapter didn't light up anymore. I'm assuming that the power adapter failed - is this a fairly safe assumption? I know it COULD be something else, but does this at least make sense to move forward?Coincidentally, I've been researching new externals to order a 1.5TB because the 500GB is full.

I'm contemplating two options:
1.) Replace the power supply for ~$40
2.) Take apart the external and mount it internally

If it is in fact the power supply it might be the best option to just replace the thing and have 2 externals for backing up data on. But if it turns out to not be the power supply I'm out $40.I'm not sure how taking apart the external and install the hard drive in a desktop computer would be. Is the harddrive a standard drive? Does it have all the same power cords a normal computer would? If so, I could just install it into my brother's desktop and retreive the data that way (and he'll have an extra 500GB hdd).

View 2 Replies View Related

Software :: Can't See Internally Hosted Website When Inside The Network

Feb 9, 2011

I am creating podcasts that I like to download to my android phone. I host the podcasts on my home webserver and use dyndns for the website when outside the network. However, when I type in my dyndns website from inside my network, it will not work.

I realize i can use the ip address to get to the site, but since I use beyondpod for my podcasts, it's all saved in settings. So what i'd like to be able to do is download the podcasts to my phone from either inside or outside the network.

View 1 Replies View Related

Networking :: Bonded Ethernet Interface Can Ping Internally But Not Externally

Oct 14, 2009

So I keep reading that bonding ethernet devices is supposed to be easy. I have followed several tutorials and tried a few things on my own, and I can't seem to get it right. I currently have a setup that allows me to ping internally on my network, but when I try to ping externally I get the error:
connect: Network is unreachable

Before I bonded the interface my connection worked fine. Here are my config files. I am running centos 5.3 on a virtual machine.
/etc/sysconfig/network-scripts/ifcfg-bond0

Code:
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=192.168.1.0
NETMASK=255.255.255.0
IPADDR=192.168.1.211
USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth1

Code:
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:88:59:47
MASTER=bond0
SLAVE=yes
USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth0

Code:
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:0c:29:88:59:3d
ONBOOT=yes
/etc/modprobe.conf

Code:
alias eth0 pcnet32
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptspi
alias scsi_hostadapter2 ata_piix
alias eth1 pcnet32

alias bond0 bonding
options bond0 mode=0 miimon=100
output of cat /proc/

Code:
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:88:59:3d

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:88:59:47

View 4 Replies View Related

Server :: Lighttpd 1.4.28 Won't Start - How To Start It

May 25, 2011

Fresh install, followed the directions,

# ./configure --with-mysql --with-openssl --with-openssl-libs=/usr/lib (MySQL 5.5.12 & OpenSSL 1.0.0)

Everything seemed to go well enough. Stock lighttpd.conf. However, it won't start on boot. Not even manually via:

# /etc/init.d/lighttpd start
or
# /etc/init.d/lighttpd -f /etc/lighttpd/lighttpd.conf (came across that while scouring Google).

No messages, no logs, nothing. ?

View 17 Replies View Related







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