
iGuest
Members-
Content Count
72,093 -
Joined
-
Last visited
-
Days Won
5
Everything posted by iGuest
-
The Best Version Of Linux For Somone New?
iGuest replied to gangsta_zar's topic in Websites and Web Designing
gangsta_zar,Try before you decide (on installing) there are many Live CDs, Operating Systems you can boot from CD without touching your hard drive. You can pretty much get any OS running off a Live CD, I remember when I created a Red Hat 9 Live CD, the guys who use to work on it, stopped at RH7. I basically just did it to learn about it, and the impressive compression they used which could make 2-3GBs of programs run off a 700MB CDR.So get yourself a Live CD, SuSe has one, nice gui, file structure, not something I would use.Ubuntu, has a Live CD too, never really tested it out, so can't say much about it.Debian, well, so far this distribution has given me so much hassle, I pretty much had to configure it from ground up using only a console because it lacked so much and was far behind the other distributions when it came to their kernel.Knoppix, is a Live CD based off of Debian, latest version was quite nice, and this disc becomes a great recovery CD.Fedora, well what can I say, I simply can't be persuaded to switch from it, we've had so much time getting acquinted with one another from RH5 to RH9 then onto FC1 to FC3 and it's never let me down and I will be definitely getting FC4 when it's out of testing. Fedora is kind of like how Mozilla is, in terms of how it's created, basically Fedora creates an OS that Red Hat Enterprise Edition is based off, Mozilla creates a browser in which Netscape bases itself off.Then there's Gentoo, but I wouldn't recommend it till you're very comfortable with Linux, this is probably by far one of the best you could get as everything is left up to you to configure and compile and install.Slackware, quite close to Unix-ways, haven't tested it out lately, but it was pretty much a distribution that we could exploit easily, not very cool.Mandrake, Based off Red Hat, it was suppose to make Linux easy for Windows users to switch over to, although I'm not sure what it's really like as I've never tried it.My friend created a distribution, Live CD, which catered to the Average Joe, although, I don't have a link or know what name he's given it.Then there's a lot more distributions that I have no clues about, but either way, you've got to learn Linux, don't try to get away with not learning much, like you do on Windows, they are trying for security and bugfree code, Microsoft are trying for more customers, release dates on time (or sent out buggy, fix later) and gains for their shareholders, there's a big difference in what they aim for.MC -
Is This The Best Way To Do This? Linking PHP and CSS in Time
iGuest replied to tjmcsax's topic in Websites and Web Designing
tjmcsax,Can you just say what are the changes out of these CSS files, you could just use one CSS file and depending on the time condition, it could dynamically change the CSS for you, or it can load sections, or it can do pretty much what you want, just using 1 css file and going by the condition.I just noticed Vujsa uses the K&R source format for PHP, although it's really personal preference, I think the ANSI C source format is a better way of well-forming a PHP document, GNU source format may have some better logic to it, but personally ANSI C is nice and clean although it does push the code down further, but it makes it easier when tracing groups of statements inside the brackets. Don't worry I use to do K&R style and it took me a while to come round to ANSI C but you should look into this style.These different formatting ways are just guidelines to keeping code clean, it's not a must, although I do believe they are setting the standards for style, and surely a lot of developers do realise the importance for it, since it was them that helped make it.Problems with vujsa's way is there's no checking whether those files actually exist, nor do you have a default to fall back on if none of the conditions work, maybe a fault in the calculation, or a rip in the time nebula, or the planets have all aligned, but either way, checking and double checking is good practise. Don't really want to start fairly new people to PHP with bad practises. (I must remember to fix my code on here some day, hippocrit)Cheers,MC -
Is This The Best Way To Do This? Linking PHP and CSS in Time
iGuest replied to tjmcsax's topic in Websites and Web Designing
vujsa's method looks good, although I haven't gone over it.When coding in php, avoid short tags, it's bad programming and a sloppy suggestion done by the PHP community in my opinion. It's only shaving a few characters but in my case, if you create your server so that it doesn't use short tags, you'll have fun fixing up what I do consider sloppy code, just because they give you short tags doesn't mean everyone runs their server this way. (same with using register_globals!)I definitely don't as I try to avoid cutting corners.If you want to know about sloppiness, then XAMPP is a prime example, I mean, they cut corners to give you an All-In-One package, (I still highly recommend it) but if you configure your server how you want, then the pages that they created, that use short tags and registered global variables just doesn't make it compatible at all.So just remember do <?php ?> instead of <? ?> and do <?php echo $variable; ?> instead of <?=$variable; ?>, one reason would be if you wanted to do the processing line in an XHTML php document <?xml version="1.0" encoding="utf-8"?>, it can have undefined behaviour.Cheers,MC -
I use AVG when I log into Windows (very rarely do), and the only problem I had with it, was I couldn't find anything that suggested it logged what viruses were found, if anyone knows I would really appreciate it, else I think I'll just have to write a program to store it's information, I'm thinking maybe one of the files it dumps in the root directory (C:\) might contain information, but I haven't looked yet, as I said, I very rarely go on Windows now. MC
-
How To Setup An Ftp Server using BulletproofFTP
iGuest replied to rmdort's topic in Websites and Web Designing
Windows users I highly suggest FileZilla's FTP server, why? because it's open source and free and wasn't their FTP client good too? They released it this year in Febrary so many may not know about it. As far as I can tell for Windows, it's quite simple with all the advanced configurations thrown in, is BulletProof FTP free? I remember using it about a few years ago, and it did require payment/registration at that time, but if it's free then it should be good to get. I'll talk about the Linux way of doing it, there's the main http server, then theirs the UserDir way and also a fallback anonymous location if you do want anonymous connections, I won't talk about it now though, but be ready for it when I do. Cheers, MC -
How Do I Translate A Something.com To An Ip?
iGuest replied to rapco's topic in Websites and Web Designing
Hey rapco, My answer to that, well, I've been reading, researching and studying web servers that this is something you'll encounter, just like being hosted on Xisto, e.g. https://support.xisto.com/ can connect you to your subdomain or domain hosted here, well hopefully it does, unless of course it's a different server, we would replace it with the IP address in place of the server it's located on just by resolving it with nslookup. Since the IP address took us directly to a vDeck server, I just assumed that people hosted on it, all are allocated a UserDir and that the username determines where their public_html documents are stored. Most commonly the username is no longer than 8 characters but it could be longer, and it's most likely lowercase. The username could also be made from the domain, other than that, a dictionary/bruteforce method might be the only way to find the correct location, and not a method I would use. So the answer is... guess work really, so no special tools apart from a brain. Cheers, MC -
Lost Data Becouse Of Windows Reinstall
iGuest replied to Vagodeoz's topic in Websites and Web Designing
Just adding a tip for people who use the Welcome Screen and it doesn't display the Administrator login, to get to classic mode without changing it as Rudy suggested just do Ctrl+Alt+Del (twice) at the Welcome Screen and you'll get the login prompt instead on reboot or log out, you'll be back at the Welcome Screen so no changes were made, Won't this restart my computer? Well, I could just be lying right, pulling a prank on people, but do you really think I would do this? Oh by the way WinXP only... MC -
Main reason for doing this, a lot of guessing answers and not a lot of real answers, so I'm just keeping it real. OK this will just be a short one. (like all my short ones) Everyone gets to that stage in life when they feel they must install their very own web server, you know? that stage, where you just wake up one day and say, wouldn't it be cool if I could turn my computer into a web server (be on the lookout for my easy to abuse guide for a lot of open source web software you could install on your computer to make it webbed out to the max, now you're tingling). So you sit down at your computer and hit the internet (The Internet is a place where people can come together to b!@#h about movies and share pornography with each other. - Jay and Silent Bob's told definition), start googling, yahooing, exciting those engines and you get sites suggesting web server software but you don't see those All-In-One packages, and why not? (was that your keyword?, then that's your answer), guess you didn't know they existed (now you do) and that's why you go off and dowload these single packages, trying to put it all together to form your own DIY AIO (...and on that farm, he had a, ahem...) package, yet the documentation is in a foreign language, so you should have checked english only sites (if that's not foreign to you), So armed with documents you can understand it right?, right? why isn't anyone putting their hands up? This is where the All-In-One packages can help you, I highly recommend XAMPP from https://www.apachefriends.org/index.html , which will give you most packages you would want to be running on your very own server, they really do take the hassle out of the Do It Yourself method, but the advantage over a Do It Yourself method, is you learn while you pray for it to work, and in this learning process, you learn how you can administer/administrate (strike out the incorrect term, English Test #1) web servers. There's also, more flexibility as in where you want to store each individual package, although these All-In-One packages do a good job, it comes down to installing everything how you want, or letting someone else install their package how they wanted it, even if their logic is controlled by their relation (I wear the pants round here, she tells me which ones!). So the moral of telling you about XAMPP, well if you don't already have a web server installed, then what are you waiting for, the next morning where you rise and say "I want a web server", because it only happens once, and now is that time. So now that this is out of the way, I take it you've read the documentation, you understand the developers logic/relation with where each stored file is, because I am not going to physically tell you directories, I will just give you pointers and you decide on how to go about it. I hope you would know which Apache modules you'll require for this and have them already enabled. OK, but to the real meaning of this thread, So you've ran your server, but what if you would like to add users onto your server and let them have their own directories and create their own sites? Well, this is another stage you get to in your life, where you wish upon a star hoping that one day, other users will have their own web folders and can do their own things with it. For this, we need to edit our httpd.conf, of course this file will be different for Windows users and Linux users, and the others who are users too. In this, we are looking for UserDir, this specifies the location to go to the user's web root in the user's directory, how are users seen? They are seen by their username prefixed with a ~ (tilde), here's what I mean http://somedomain.com/~abuser1/, this well direct you to abuser1's web root, and with DirectoryIndex set, you'll see either index pages hopefully, as long as they exist in that users web root. Another thing is, ~abuser1 has to be a user that computer recognises, so before we start editting our httpd.conf file, lets add a user, you know how to do this right? could use your own user if you wanted to. You added a user, good. Now that users needs a place to store his HTML files, some Operating Systems do this for you, some don't so you must do it yourself. for my example: I have a user and in his directory I created two more directories called www and inside this folder, public_html because I wanted to keep all the www information for this user in it's own folder instead of having folders all inside his documents and I want to set the document root for this user as public_html. Now create your cgi-bin folder in www, outside of our docroot, why? because we can, and it's a lot safer this way too. What permissions are needed: User's Directory 711, www 711, cgi-bin 755, public_html 733, So back to httpd.conf, now edit/create these lines UserDir disabled root UserDir www/public_html (Windows will have a different way for this, look at the comments for the information on how to do this, don't worry, I'm sure the comments and examples will help you and you'll figure it all out) This says that the user root will be disabled (excluded) and that the docroot of UserDir is found at <User's Directory>/www/public_html Next we search for ScriptAlias and add [above] it (don't delete/remove the existing ScriptAlias): ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/www/cgi-bin/$2 What this is, is a regular expression match for requests made to the server. The first set of brackets becomes $1, basically it's capturing our username, the second set of brackets is $2 and that is capturing the cgi-script used. so as you can see, it's going to our User's path, then the www directory then the cgi-bin and then executing the script that was put into $2. Next we go right down to the bottom of the page and add: <Directory "/home/*/www/public_html"> Options Indexes SymLinksIfOwnerMatch IncludesNoExec AllowOverride None Allow from all Order allow,deny </Directory> <Directory "/home/*/www/cgi-bin"> Options ExecCGI SetHandler cgi-script AllowOverride None Allow from all Order allow,deny </Directory> Save the httpd.conf file and restart apache, then we need to create a test file to test it. Write this in a text editor (not a fancy editor that adds formatting information, it must be plain text) #test.pl #!/usr/bin/perl print "Content-Type: text/html\n\n"; print "It worked!"; now save it as test.pl in your user's cgi-bin, change it's permission to 755 and open up LOCALHOST/~username/cgi-bin/test.pl Things you may have to look into if there are problems, SetHandler cgi-script makes the directory it resides in, only accept cgi-scripts to be there and executed. So if what you want is not cgi-script related and resides inside the cgi-bin then you might want to remove SetHandler. AddHandler cgi-script .cgi .pl .whatever_other_cgi_extensions_you_have. Correct slashes and paths for your Operating System. AllowOverride, can be configured better than this, to allow your users to be able to use .htaccess files, I'll let you decide what they should or shouldn't have. When I mean look into them, I mean you should research your problem, The famous 500 Server Internal Error can result from incorrect permissions, ScriptAliasMatch not matching correct location, the (#!/usr/bin/perl) shebang line is not right for your OS. If it's just displaying text, then the mime-type isn't correct, it was uploaded as binary not ascii. Well, that's another exhausted short tutorial. With this, you'll surely know how you could go about doing this for VirtualHosts, but that's something you should find out for yourself, or read my book when I release it. Cheers, MC
-
This might be a short tutorial in my case, but I'm currently writing a book on setting up your own servers (FTP, HTTP, DNS, BitTorrent, CVS, etc) and during the process, I sometimes get the urge to splurt out some things, because I get annoyed when I see "bad suggestions". This book has no expected date, I'm not a technical writer, so it may take a lot longer than expected, I am not offering parts of it till it is finished and has been thoroughly tested, sorry for that, but I will provide tutorials that I feel are important to not have quick answers for, thank you First I'll explain SELinux (Security Enhanced Linux, does the name say it all?) is as it's name says an enhancement to Linux (what is Linux?) Linux is the kernel, so we can say, SELinux is an enhancment to the kernel. Others says it is a piece of .... because it makes it hard to configure, is there really a fine line between ease of use and security? Basically it provides additional (annoyances) security measures, which implement DAC (Discretionary Access Control) and RBAC (Role-Based Access Control). Tip: If you don't use SELinux then the commands like chcon will not apply to you but the rest will. Now I guess you want me to explain DAC and RBAC, that's ok, it's making this longer than I expected so... So why is DAC so annoying, well the annoyance that people encounter and one of the things we must fix to get UserDir permissions working is because of DAC (and I don't mean the green stuff that burns in pipes, although if anyone is offering a mellowpuff (this biscuit!)). The method relies on files and resources explicitly being told who's allowed and not allowed access (but isn't this normal User Permission settings, yes it is with a twist), It works with the permissions set, the user:group of that file, the user (mentioned again as object), the object (as an object) and the type (as an object, not! as what the object is part of but what the object actually represents in terms of it's type of content we should expect). So lets say you, being user1 create a file in your home directory /home/user1 called yeah_and.txt. Now since you created this file, you've got full rights over it, being the owner right, saving it in your own home directory right, yes that wasn't a trick question because you do have full rights of what a TXT file needs going by permissions, read and write access but not execute, so while it's not full full access it's enough access to work with that file (chmod 664). Then you have permissions being the owner and in your group, usually the same name as the owner. And least but not last (did he really say it backwards?, I think I need a mellowpuff), there's these blimmin' objects, which determines whether you are the user of this object, that it's based on an object, and that the type of object will be functional with other programs who could access this object (e.g. a text editor), pretty much what policies are set up for this type. Just follow my lead and you'll overcome it. For the owner implementing these DAC objects, it gives them control over who can access it, in more ways now (including doing more things), although those in higher authority already have the power, so powerful that not even DAC tries to get in their way, but DAC does set the same rules as if they were users, but the rules are special. So don't worry, they get treated the same too, but they aren't likely to be denied whatever they choose to do, you will be. OK so now that I spent ages going on about DAC, what about RBAC, well that'll have to wait after my smoke (15 mins later...) OK well lets not speak much on RBAC, it's similar to DAC, the thing is, it's based on your level of authority, imagine you had those people who knew what they were doing, they sometimes go by the name of the Administrators, well being high up, they deserve quite a lot of privileges, now say you have a user, who's known as The Janitor, now why would we give the Janitor the same privileges as the Administrators, we don't, we limit him to what access he needs and this is RBAC, it limits your access by who you are, if you're the CEO, we're not going to give you full access are we? We sometimes know that even if they are that high (and not CEO of some form of computer company) then we aren't giving them full access, because we do not like restoring from backups every 10 minutes right? So we are given these policies, SELinux wouldn't have taken off if users had no clue on how to configure it, since you had to work with the program access as well as user access, so the nice people over at Red Hat, took the trouble out of it by coming up with preconfigured policies, enough to make the riotting stop, except for Apache, who was severely SELinux-ified, that the simple task of actually getting Apache to accept UserDir was now a trial and error cry for those who don't RTFM or in this case Read The Configuration Comments, because it's right above where you were editting, some handy dandy, clues. So I think I've bored people enough, and I am a bit late with finishing this up, so lets get down to business. This is the important part to this, the above is just for reasoning. First of all, I hope you've got Apache installed, if not CONSOLE su -c "yum -y install httpd" su -c "/sbin/service httpd start" Test to see if it's running by opening your web browser and typing LOCALHOST/ Now you've got apache installed, now we want to work out where we want our user directory, this is easy as long as you're not root at the time. We want it at $HOME/public_html or /home/`whoami`/public_html, (nothing beats console!!!) and if you're not getting me, then in a way that doesn't work with console, /home/<username>/public_html, where you replace <username> with your username. OK so lets use console make those directories and set permissions, well lets leave the configuring apache till the end and do everything we can do now. CONSOLE mkdir $HOME/public_html chmod 711 $HOME chmod 755 $HOME/public_html echo "I just created a test homepage" > $HOME/public_html/index.html chcon -t httpd_sys_content_t -R $HOME/public_html su -c "vi /etc/httpd/conf/httpd.conf" Now you can use whatever text editor you want, I'm using vi, as I've got minimal things on my server, just the basics pretty much. So here we need to look for UserDir which most likely is disabled, so we enable it by making sure we've loaded the module with: LoadModule userdir_module modules/mod_userdir.so When then look for <IfModule mod_userdir.c>, that's if it exists if not then just underneath DocumentRoot and LocationMatch we will put it. <IfModule mod_userdir.c> # If you want to enable a lot of users, # either add them to UserDir enabled or change # UserDir "disable" to UserDir disabled root ... # and any other users you wouldn't allow. UserDir "disable" UserDir enabled yourusername goes here UserDir public_html </IfModule> OK, now at the very bottom of the page, we got one last thing to add. <Directory "/home/*/public_html"> Options Indexes SymLinksIfOwnerMatch IncludesNoExec AllowOverride FileInfo AuthConfig Limit </Directory> And that's it, all configured, now to just restart our server and test it out. CONSOLE su -c "/sbin/server httpd restart" firefox localhost/~username/ & If it works, I am done, if it doesn't, I'm am done for. Cheers, MC
-
nice tut
-
Yeah!. I love Mozilla MyIE2. And I use FLASH MX 2004. Yeah, I've learnt HTML when I was 9. I used to make pretty good websites then. I like watch TV. So, senks
-
Smile, i don`t think so!
-
i hate linkin park before he linked up with Jay Z, but now hes linked with Jay Z. hes just pure class
-
it dont take that long for me when i upload thing. took me 17 minutes to upload phpnuke platinum. which is 47mb
-
does anyone know what the best gaming graphics card is for the pc. i need a very powerful one so id be greatul if you could help
-
Difficult to compare The simpsons with Futurama. I like both. I cant really choose but if i have to choose i choose Futurama because i am sick of the reruns here on belgium television of the simpsons.
-
yeah I'm going to install phpnuke platinum now but I think you should install it on fantastico
-
AQu01rius I had a disturbing image of you doing the beyonce butt bounce while you sung Lose My Breath :|
-
hi i can pay in FNH$ if mine hasnt been reset before this is made, otherwise i cannot pay :cry: anyway if anyone is willing to do it i need the following:A cool sig which has something to do with "lareneg"A cool sig which has two swords crossed (you know a parry type thing), a staff which is doin some sort of cool thing (if this is too hard leave it out) and a bow and arrow. This should have the name "ghost mixer" on it.A logo (small square) for "Lareneg Ltd."A website banner for "Lareneg Ltd."Thnx in advance to anione who can do it il pay what i can in FNH...
-
I've learned it at school, in, let's say, 5 hours. That's the basics.The advanced things took a week or 2.
-
html kit is pretty good, as well as acehtml freeware. i use acehtml
-
y cnt ppl just learn html properly and use notepad? but if u do want to use an editor, either use HTML Kit or do it properly and buy dreamweaver.
-
If you Bill Gates, what you will do? I will spend my money for buy computer and give to poor child :wink:
-
my fav browser is firefox, altho i tend to use ie. i always forget to use firefox... internet explorer is pinned to the start menu and i cnt be bovad to pin firefox. also, i have shockwave and everything on ie and i cnt be bovad to install it on firefox.
-
I really love Fable, it's one of my favorites!At first, I only played the mainquests as a good wizard, but then I played the entire game with all sidequests as an evil warrior and I just spent hours after hours walking through Albion, robbing stores and killing guards.