Howto enable php scipts to run only for certain website on homeserver
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Howto enable php scipts to run only for certain website on homeserver
Hi, after follwowing a howto on setting up my debian etch server , php is not set on "global", because in the howto they followed with ISPConfig to specify the sites where php is enabled
I'm not going to install ISPConfig, is there a way i can make php scripts run on a certain site on my server, should be possible rite, a script or so
if not ,where is the configuration file to set it back on "global", which is kind of risky for a noob like me, i don't want to be cracked,hacked,jacked ,before having learned anything. that's wahy i'm taking it step by step and from the bottom.
in which directory do i put a bash script i made as to run as a webpage in the /www rite ?
two more questions : is gnump3 good if i want to stream music from my headless debian server as well, other alternatives maybe
no ,that was it . thnx in advance firedancer
___________________________________
Proud to be a linux user
Last edited by firedancer; 10-26-2007 at 09:16 AM.
Oh no , ok i found it (dum(me) ,yes in cgi bin ,brrr ,how come i ask such a question, i know that
i set some iptables rules , no i don't have a specific program , so i do it manually, but how do i precisely get it to start automatticcally at boot time, otherwise i need do set it everytime i restart the server
and a tip ., i'll go to read the man pages now , the periodic croncheck , is there a command stop it or in the background , while iconfiguring settings on the server , i read it somewhere was going to check it, but can't find it now, in the meanwhile a fast hint ,
Yeah the rules i set are saved, just not able to automatically start it at boot yet,
followed some thingy , which gives me an error , but i'm on my way
still not able to fetchmaill mutt/exim4/fetchmail/...
i send myself some binary file in y user mail ???????
output :
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
You can create a script with the iptable rules and try to start it from rc.local, meaning to add the script there and at every reboot it will set your iptables rules.
Another idea is ln -s /etc/rc.d/init.d/iptables /etc/rc3.d/S99iptables
This works on Redhat base distros like Fedora, CentOS, Mandriva and so on, I dont have idea what distro you are using...
Another idea is ln -s /etc/rc.d/init.d/iptables /etc/rc3.d/S99iptables
You don't have to do this on Red Hat family systems, do this instead:
Code:
# chkconfig iptables --level 2345 on
firedancer, I'm not really sure what you're trying to do. What do you mean with: echo "#!/bin/sh"? I'd suggest a trip to http://iptables.org where you can find some actual firewall scripts. Also, you might check http://tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html as that also includes a decent level of explanation of iptables scripts.
sorry for not explaining what i meant, i was trying to follow some steps how t create the file and make it executable
i have a howto on iptables , i can append rules , but my problem was , making a file (iptables) and get it started automatically at boot,
i'm using debian etch ,is a headless server
i'll take a trip to...
so i set the rules and then i'm lost , show me a basic script to add the rules in the rc.local file, that's what i need help with , thank you
i'll hop to the sites later on to get some idea's on scripts , this is the part the i'm learning now , that's why i'm having trouble with it , thanx for the help though,
Last edited by firedancer; 11-02-2007 at 01:33 PM.
in rc.local, you'd just enter the full path to the script. So, if your script is located at /etc/firewall/firewall.sh, you might have an rc.local like so:
Ok, can just add the path to the firewall.file,
well my reading about iptables helped alot too, but i'll get this done , was still doing "iptables-restore > /etc/firewall.conf" , but now i know howto , thnx
Last edited by firedancer; 11-09-2007 at 12:10 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.