1. Seperate instances of Apache under one box

    Date: 06/11/07 (Apache)    Keywords: security, hosting, apache

    Can Apache run under different instances, so that we can direct traffic to each Virtual Host under a different instance. Would doing so offer better security than simply using virtual hosting? One of our sites is internal, the others are public. We want to keep the internal site locked down extremely tight.

    In that same light, is it possible to have different SSL certs for different Virtual Hosts running on the same physical box (under one IP)?

    Thanks for suggestions/pointers.

    Source: http://community.livejournal.com/apache/37060.html

  2. http or https - is there a _SERVER var for this?

    Date: 06/13/07 (PHP Community)    Keywords: php, apache

    Not sure if this goes here or in apache..

    Is there a $_SERVER variable for protocol?

    edited
    Sorry, RTFM and found that protocol is available via $_SERVER['SERVER_PROTOCOL'] in php 4.1 and above.. BUT that returns HTTP/1.1 regarless of HTTP or HTTPS.

    So to check for HTTPS KernelM suggests using $_SERVER['HTTPS'], and look for an empty value for HTTP or 'on' for HTTPS. (works perfectly) Thanks! :o)

    Source: http://community.livejournal.com/php/572033.html

  3. Apache 2.2.4 and Vista

    Date: 06/21/07 (Apache)    Keywords: apache

    I guess lots of people (including me) are having problems getting Apache to work on Vista. I don't know if anyone's already posted this solution, but I pieced it together from a few different sites that each offered their own little tidbit. I hope this helps someone:

    1) if you have already been trying to make this work, make sure you completely remove and detele all evidence of apache 2.2.4 from your computer: program files, registry, etc. if you haven't had a failed install attempt and you're starting fresh, go on to step 2.
    2) turn off User Access Control
    2) run cmd.exe as an administrator. you can do this by right-clicking on the link in the start menu program list.
    3) from the command line, go to the directory your apache msi file is in. enter: "msiexec /i .msi" (without the quotes obviously)
    5) let the program run, check off everything as you see fit. when the program has finished running, it will most likely display an error popup. close this.
    6) back on the command line (still running as administrator), go to \bin and enter: "httpd -k install"
    7) now apache should show up as a service. but you're not done yet! go to the apache monitor/control thingy in your start menu. right-click it and go to properties->compatibility. set the compatibility mode to winxp sp2.
    8) that's it! you may want to start your apache control, but it will run now without that.

    Source: http://community.livejournal.com/apache/37811.html

  4. Problem with verisign cert

    Date: 06/28/07 (Apache)    Keywords: browser, apache

    We bought a certificate for a domain.   I've set up a few sites with ssl before this, so I was careful to enter the FQDN in my csr request.  A day later Verisign sent the cert in an email, which we copied into a sitename.crt file on the server.   I made an unecrypted version of the key so I wouldn't have to enter the passphrase every time Apache starts.  (yes I entered the passphrase, which was accepted)

    So - I start the server without errors.  When I access the site using https://sitename, the browser returns a certificate mismatch error.   The cert details appear with localhost, localdomain, ect, which is not what I entered when creating the csr & key. 


        ServerName sitename.department.domain.ext
        ServerAdmin abc@123.def
        DocumentRoot /www/virtualhosts/sitename
        ErrorLog /var/log/httpd/sitename-error_log
        CustomLog /var/log/httpd/sitename-access_log common
        SSLEngine On
        SSLCertificateFile /usr/local/ssl/crt/sitename.crt
        SSLCertificateKeyFile /usr/local/ssl/crt/sitename_unencrypted.key
        SSLCACertificateFile /usr/local/ssl/crt/intermediate.crt



    Is there a way to print out the details listed in a crt file, from command line?   Can I do the same with the original csr file?  

    Source: http://community.livejournal.com/apache/38398.html

  5. It’s finished. It’s done. GPVv3 that is.

    Date: 07/02/07 (Open Source)    Keywords: linux, google, apache

    In addition to Linux, GPLv3 also faces threats from Google, which prefers Apache licenses that protect its commercial rights. So, are you making the switch?

    Source: http://feeds.feedburner.com/~r/zdnet/open-source/~3/129755399/

  6. Intranet/Apache/IP issue

    Date: 08/01/07 (Web Development)    Keywords: php, mysql, browser, sql, apache

    ok, this is getting posted a few places because I'm head/desk-ing all over the place on it.

    Have Intranet, Intranet is based around an OS X Mac running Apache/PHP/MySQL. Was working fine, OS X server (just regular OS X but the machine is designed to work as a server) was at someone's house. Worked fine with the IP it had there and everything pointing to it, which was actually the IP of the router it was connected to I believe. This was the ServerName address in httpd.conf . Server moved to small office, BOOM.

    Updated the ServerName value in httpd.conf to the proper IP for the machine, however if you try and go to that IP (how the intranet works there, via the browsers connecting to that ip then going where they need to from the index page there) it gives a "Forbidden" error (don't think it's even a 403) and says that you don't have permission to connect to the OLD IP address. I don't understand this, we even disconnected it from the internet to see if it was even actually trying to connect to that IP and no, same error. Anything else and it says it cannot be reached when the uplink is disconnected, so definitely a problem on the server somehow. On top of that, localhost and 127.0.0.1 will work, the machine will reach out to the internet and can be mounted in internet explorer with the \\servername\path\etc., however this won't let us access the PHP processor to display the pages, just the files themselves.

    Is there anywhere else that a problem like this could lurk? Just uninstall Apache and re-install? I've never removed Apache from a machine or done a make of apache or anything else on a mac so I'm not exactly sure how to if that would even help. Really don't understand what's going on and I need to get this up ASAP. :( Any help please? Will repay in kind somehow, not monetarily but somehow (work, knowledge, something).

    Thanks!

    Cross posted all over sort of.

    Source: http://community.livejournal.com/webdev/425477.html

  7. Intranet/Apache/IP issue

    Date: 08/01/07 (PHP Community)    Keywords: php, mysql, browser, sql, apache

    ok, this is getting posted a few places because I'm head/desk-ing all over the place on it.

    Have Intranet, Intranet is based around an OS X Mac running Apache/PHP/MySQL. Was working fine, OS X server (just regular OS X but the machine is designed to work as a server) was at someone's house. Worked fine with the IP it had there and everything pointing to it, which was actually the IP of the router it was connected to I believe. This was the ServerName address in httpd.conf . Server moved to small office, BOOM.

    Updated the ServerName value in httpd.conf to the proper IP for the machine, however if you try and go to that IP (how the intranet works there, via the browsers connecting to that ip then going where they need to from the index page there) it gives a "Forbidden" error (don't think it's even a 403) and says that you don't have permission to connect to the OLD IP address. I don't understand this, we even disconnected it from the internet to see if it was even actually trying to connect to that IP and no, same error. Anything else and it says it cannot be reached when the uplink is disconnected, so definitely a problem on the server somehow. On top of that, localhost and 127.0.0.1 will work, the machine will reach out to the internet and can be mounted in internet explorer with the \\servername\path\etc., however this won't let us access the PHP processor to display the pages, just the files themselves.

    Is there anywhere else that a problem like this could lurk? Just uninstall Apache and re-install? I've never removed Apache from a machine or done a make of apache or anything else on a mac so I'm not exactly sure how to if that would even help. Really don't understand what's going on and I need to get this up ASAP. :( Any help please? Will repay in kind somehow, not monetarily but somehow (work, knowledge, something).

    Thanks!

    Cross posted all over sort of.

    Source: http://community.livejournal.com/php/578944.html

  8. Google moves the numbers, press panics

    Date: 08/07/07 (Open Source)    Keywords: java, google, apache

    Apache's share is declining because Google has switched its own servers to its own flavor of Apache -- the Google Front End server -- which makes extensive use of AJAX and server-side Java for faster page loads.

    Source: http://feeds.feedburner.com/~r/zdnet/open-source/~3/141592703/

  9. FilesMatch

    Date: 08/27/07 (Apache)    Keywords: php, apache

    I want to generate links with my code like "index_flotsam.php" and "index_jetsam.php" and have apache ignore everything but "index.php". So if the user clicks on "index_flotsam.php" it will just take them to the file "index.php" but will still display the url "index_flotsam.php". I'm using Apache 2.2.4. I have a feeling I could probably do this with the FilesMatch directive, but I'm not entirely sure how. Any ideas?

    Thanks!

    Source: http://community.livejournal.com/apache/38566.html

  10. PHP Install problems

    Date: 08/29/07 (PHP Community)    Keywords: php, mysql, html, sql, apache

    I've wrecked my setups enough times to be a pro at getting PHP, Apache, MySQL and Windows XP to all play together nicely. However, this time I'm running into a strange problem. I've got PHP 5.2.3 and Apache 2.0.59. Apache runs fine, PHP seems to run fine, phpinfo() shows everything as it should be. When I try to load anything that seems to have more than a single line in it, it doesn't look like it's parsing anything. I get a lot of broken bits of code showing on the screen. Things like '>' when used as operators are being parsed as HTML tags. These are scripts that ran fine on Sunday with Apache 1.0.3 and PHP 4.whatever. I'm having trouble deciphering exactly what it's doing or why, but it's obvious it's not working. I'm at an end here, for now. Anyone have any suggestions?

    EDIT: Found it after staring at a script for half an hour. Know what it was? From PHP.INI:

    short_open_tag = On

    That was set to off. Of course I'm lazy and never actually type to start a script, however, my editor sometimes puts that in for me, which is why some scripts worked. I'd read about this setting, but never thought it might apply to me.

    Source: http://community.livejournal.com/php/582157.html

  11. Analytics

    Date: 09/11/07 (Apache)    Keywords: apache

    Our project is interested in buying a solid analytics application for several sites hosted on an Apache server.   What are our best options?

    Source: http://community.livejournal.com/apache/38750.html

  12. Analytics

    Date: 09/11/07 (WebDesign)    Keywords: apache

    Our project is interested in buying a solid analytics application for several sites hosted on an Apache server.   What are our best options?

    Source: http://community.livejournal.com/webdesign/1308021.html

  13. Improving Site Performance…

    Date: 09/24/07 (Java Web)    Keywords: apache

    I have significantly improved our site performance in the last month. I did all the site optimization steps by the book, found a lot of new things and fine-tuned existing ideas. There are a couple of good ideas I am yet to implement like using Lighttpd server instead of Apache 2. I am writing a detailed [...]

    Source: http://blog.taragana.com/index.php/archive/improving-site-performance/

  14. What else did Evans survey say?

    Date: 09/26/07 (Open Source)    Keywords: software, linux, apache

    We're going to see a lot more desktop Linux, despite the current lack of hardware sales. We're going to see a major migration to Linux, once organizations gain more knowledge of it. Apache is the very model of a modern major software outfit.

    Source: http://feeds.feedburner.com/~r/zdnet/open-source/~3/161724821/

  15. Segfaultalicious

    Date: 09/28/07 (PHP Community)    Keywords: php, mysql, xml, sql, apache

    I am just putting the finishing touches on a year long project that included in its design the use of an Op-Cache of some sort. After spending the last week and a half slamming a dev. server with siege for testing I noticed that occasionally the apache2 would seg. fault. We're using the LTS version of Ubuntu 6.04 with a stripped down environment dedicated and slaved to Apache w/memcache. From what I've researched and tested, this is actually a pretty well known issue with APC and also xcache. I've already written a simple daemon to watch the primary error log and if it spots a segfault fault error report to restart Apache, but this feels like using a band aid on a compound fracture.... Anyone have any other suggestions?

    PHP compiled with just the bare minimums plus memcache, mysqli & mysql, JSON, and the XML library.

    Source: http://community.livejournal.com/php/588121.html

  16. Colons with Windows

    Date: 10/29/07 (Apache)    Keywords: apache

    I'm running my Apache 2 install on a Windows system. It seems that using a colon causes a 403 (Forbidden) error. I figured this is because it thinks the colon is pretending to be a drive label (thingy thing).

    Anyway, how'd I fix that? Is there a way?

    Source: http://community.livejournal.com/apache/38945.html

  17. Yet another mod_rewrite question: tilde home directory expansion

    Date: 11/04/07 (PHP Community)    Keywords: web, apache

    Mod_rewrite seems to be the flavour of the month. I'm trying to use it on a web server that's currently set up without a domain (the domain will be switched to this server when development is finished). So the currently the site lives on a url similar to:
    http://webhost-14.test.com.au/~goc/

    But the catch is that the expansion:
    http://webhost-14.test.com.au/home/goc/
    is not true. So when mod_rewrite expands it I get a 404. :(

    Sooo... how do I tell mod_rewrite not to expand home directories?

    "Home directory expansion
    When the substitution string begins with a string resembling "/~user" (via explicit text or backreferences), mod_rewrite performs home directory expansion independent of the presence or configuration of mod_userdir."
    Apache man

    Source: http://community.livejournal.com/php/593745.html

  18. OpenSSL: How To Create Self-Signed Certificate

    Date: 11/09/07 (Java Web)    Keywords: security, linux, apache

    OpenSSL is a free, popular, robust, high quality, open source (Apache License) toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. It is available on multiple platforms (Linux, BSD & Windows). In short it means that you can use OpenSSL [...]

    Source: http://blog.taragana.com/index.php/archive/openssl-how-to-create-self-signed-certificate/

  19. How To Communicate Between PHP Scripts (Sample Source Code Included)

    Date: 11/13/07 (Java Web)    Keywords: php, apache

    PHP scripts such as WordPress, phpBB, phpMyAdmin etc. operate in their own world without much inter-process communication, even if they are running on the same Apache server. However sometimes you need to have a seamless way to communicate between PHP scripts without deadlock or resource contention. This is where messaging becomes useful. PHP allows you [...]

    Source: http://blog.taragana.com/index.php/archive/how-to-communicate-between-php-scripts-sample-source-code-included/

  20. Apache Con

    Date: 11/14/07 (Apache)    Keywords: apache

    Anyone here in Atlanta at ApacheCon?

    Look for the guy in black with the pipe in one hand and a book in the other. That's me.

    Source: http://community.livejournal.com/apache/39386.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home