Jump to content

LAMP

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling
  • Location
    Missouri, USA

LAMP's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hmm, over in \'Nix land, that\'d likely be hanging child processes. Do you have the possibility of calling \'graceful\' in the Windows version? But what could exactly be causing them to hang, I dunno. I\'d look at the site(s) for errors of any kind (in the PHP code). Are scripts attempting to make TCP/IP connections of any kind? Access a database that might be not running? How about a firewall ... Apache tends to like to look for DNS info about itself .... If you think it\'s caused by one of more of your virthosts, could you comment each of them out (one at a time, or various combis) and kill/restart? Might help narrow it down, I guess..... I believe the only time I\'ve seen anything like this was a case of bad scripts on the host. Y\'know---[php:1:22049a344c]while ($x<$y) { do_something(); } // $x is never incremented!!![/php:1:22049a344c]
  2. Have you check the FAQ at httpd.apache.org? Seems like this is on it ... in the middle of a big download now, though, and it took forever just to load this page ....
  3. First assign the names in your hosts file. On my BSD box, it\'s /etc/hosts ... I can only assume that it\'s in a similar location in RH. Something like this should do: 127.0.0.1 www.onno.org 127.0.0.1 www.tom.org Test, and make sure that the names resolve locally. In BSD, changing /etc/resolv.conf to instruct the resolver to check the hosts file before the nameserver is simply a matter of which line comes first. Like I said, not sure about RH..... Secondly, you need to enable Name-based virtual hosting in httpd.conf. Here\'s an example: # # Use name-based virtual hosting. # NameVirtualHost *:80 # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. <VirtualHost *> ServerName www.onno.org DocumentRoot /www/onno ServerAdmin me@localhost </VirtualHost> Restart apache, voila!
  4. The answer to your second question is found in your httpd.conf file: If there is nothing below this in *your* httpd.conf, hit me back here and I\'ll show you mine As for the other question, I *think* that if you\'ll remove the \"Indexes\" option from this: --- you should be able to get the result you want. Haven\'t tried it myself, though....
  5. Glad to hear it\'s working. In Apache 1.3.x, at least (have no experience with 2.x) you must both \"Load\" and \"Add\" your modules, as your experience has shown.
  6. Here\'s all I need in httpd.conf --- is yours similar? #grep php /usr/local/etc/apache/httpd.conf LoadModule php4_module libexec/apache/libphp4.so AddModule mod_php4.c <IfModule mod_php3.c> <IfModule mod_php4.c> DirectoryIndex index.php index.php3 index.html <IfModule !mod_php4.c> DirectoryIndex index.php3 index.html <IfModule !mod_php3.c> <IfModule mod_php4.c> DirectoryIndex index.php index.html <IfModule !mod_php4.c> <IfModule mod_php3.c> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s <IfModule mod_php4.c> AddType application/x-httpd-php .php .html .php3 AddType application/x-httpd-php-source .phps
  7. Well, this may be more difficult if you\'re drunk, but can you post your code here? Or, point us to a link we can see from outside ... ?
  8. To see the results of PHP scripts, your script should be running on a webserver that runs PHP. AFAIK, that ain\'t DW. . . and as far as Mac/OSX goes, I\'m less than \'bright\' ... So, if you\'re just using DW to look at your pages, the answer is \"probably you need to install a real webserver on your Mac, but the genie of the LAMP isn\'t all powerful and might be wrong ... \" :shock:
  9. Well, if you got parse errors, then the server is parsing PHP. Are you sure you entered the code correctly? There are no parse errors in the code I posted....
  10. Hmm, did I do that well??? I tried to not appear to have a preference...but if you read my first post in this thread, I did make a recommendation. FreeBSD all the way for me ... good enough for Yahoo, good enough for my company. Be sure and dload the handbook before you destroy any HDD\'s .... :wink:
  11. Hi, Lora007 --- Make a page in notepad or your favorite text editor, exactly like this:[php:1:736746cfd6]<?php echo \"Hello, Lora!!!\"; ?>[/php:1:736746cfd6] or, like this:[php:1:736746cfd6]<?php phpinfo(); ?>[/php:1:736746cfd6] name it \"test.php\" ...and upload it to your site. Look at it in your browser. If it says \"Hello, Lora!!!\" (in the 1st case) or has a big white/purple page with lots of technobabble on it (in the second case) then you can use PHP on your site. Then, do this: rename the test.php file to \"test.html\" and load it into the browser. If it works the same way as it did in the first test, you can then embed PHP script into your standard HTML pages. If it doesn\'t, then your pages will have to be \"pagename.php\" in order to work.
  12. Oh, well.................. For starters, Linux isn\'t an OS. Red Hat Linux is; so is Mandrake Linux, Slackware Linux, Debian Linux, Gentoo Linux, SUSE Linux, Chainsaw Linux, etc., etc., etc. Each of the Linuxes is some version or another of Linus Torvalds\' kernel (generally the latest at the time of release) with a \'userland\' made up of (mostly GNU) software and generally, a pre-installed/configured desktop environment, such as Gnome or KDE. A major goal of several of the Linux distros has been to \"compete with MS Windows\", and as a result, you get varying degrees of \"user friendliness\" and lots of graphical tools. The amount of \"free software\" for use with Linux blows the mind, and it doesn\'t blow your budget. Many people have heard of Linux; many have tried it, and their mascot is cuter. The BSD\'s are directly descended from 4.4BSDLite, (one of?) the last release(s) from the (Univ. of California) Berkeley Systems Distribution. There\'s a lot more history and tradition in *BSD, and Linux users occasionally find it to be stiff and archaic, unforgiving at times, and more difficult to come to grips with in terms of terminology, etc. However, since it is rather tightly controlled by one group (actually now, 3 biggies, FreeBSD, OpenBSD, NetBSD) you have a more centralized distribution and documentation system, and a more centralized user community. The hier(7) layout is the same in all the BSD\'s (can\'t say that for every Linux distro, I don\'t *think* --- haven\'t used \'em all). The ease of upgrading the entire kernel && userland and the straightforwardness of the *BSD \'ports\' system is something that definitely makes these OS\'s worth investigating. Slackware is perhaps the most BSD-like Linux, or was at one time. Gentoo has also imported the \"ports tree\" concept from the BSD\'s into its \"portage\" system.
  13. Network type, and traffic are the keys. If you don\'t expect gigabyte traffic, you could host fifty domains with Apache on FreeBSD or Linux (I\'d actually recommend *BSD) on a Pentium 133 from the dumpster with no performance hit for the most part. Be sure and check your ISP\'s AUP. Also, unless you have a static IP addy, you\'ll have to deal with dynamic DNS, which is a bit more headache than you might want. But you could definitely look into it. I luv being the SU!! woot!!!
  14. Looks like it works now. Whad\'ja hafta do?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.