1. Can't get PHP5 to read mySQL

    Date: 11/21/07 (PHP Community)    Keywords: php, mysql, sql, apache

    I have PHP5.2 running under Apache 2.2 on Windows XP, and followed all directions to enable the mySQL library for PHP, but it's not working. Here's what I did:

    Uncommented the extension lines for php_mysql.dll in c:php\php.ini
    Enabled c:\php into the Windows PATH variable
    Copied the mysql library DLL to windows/system32


    Here is my phpMyAdmin config against this (Apache's port is 8080, also):

    $cfg['Servers'][$i]['host'] = '127.0.0.1:8080';
    $cfg['Servers'][$i]['extension'] = 'mysql';
    $cfg['Servers'][$i]['port'] = '3306';
    $cfg['Servers'][$i]['connect_type'] = 'tcp';
    $cfg['Servers'][$i]['compress'] = false;
    $cfg['Servers'][$i]['auth_type'] = 'config';
    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = 'xxxxxx';


    Any other pointers would be greatly appreciated.

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

  2. JBoss, Apache founders engage in war of words on the web

    Date: 11/26/07 (Open Source)    Keywords: software, web, apache

    JBoss founder Marc Fluery lashed out Sunday at a blog written by an Apache chief claiming he did not pay proper homage to the Apache Software Foundation after making his fortune. In Maison Fleury’s latest blog, entitled, “The Brotherhood is Displeased,” Fleury takes issue with a web post authored by Apache Software Foundation co-founder and [...]

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

  3. Mulberry open source code is now out

    Date: 11/27/07 (Open Source)    Keywords: apache

    Fulfilling a promise made by developer Cyrus Daboo in April, Mulberry has placed the source code for its e-mail program online, under an Apache license.

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

  4. PHP5 Still Not Enabled for mySQL

    Date: 11/27/07 (PHP Community)    Keywords: php, mysql, html, sql, apache

    This is an update from this post last week. So far, I've had no luck with it. To recap my config settings:

    PHP 5.2
    Installed on Windows XP, C:/php
    php.ini file copied to c:/windows/system32
    doc_root = "E:\public_html"
    extension_dir = "C:/php/ext"
    extension=php_mysql.dll uncommented

    Apache 2.2.4
    Installed under C:/Apache
    php5 running as a module
    document root, E:\public_html




    System Windows NT CROSSBOW-DEV 5.1 build 2600
    Build Date Nov 8 2007 23:18:08
    Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
    Server API Apache 2.0 Handler
    Virtual Directory Support enabled
    Configuration File (php.ini) Path C:\WINDOWS
    Loaded Configuration File (none)
    PHP API 20041225
    PHP Extension 20060613
    Zend Extension 220060519
    Debug Build no
    Thread Safety enabled
    Zend Memory Manager enabled
    IPv6 Support enabled
    Registered PHP Streams php, file, data, http, ftp, compress.zlib
    Registered Stream Socket Transports tcp, udp
    Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*





    If I can't figure out anything else to get mySQL to work, does anyone have praise for Wamp?


    Update
    I was running out of time and just installed Wamp. It's almost too easy to configure and run. Thanks everyone for your input; it'll be very handy for future reference.

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

  5. IIS vs Apache 2

    Date: 12/18/07 (Web Development)    Keywords: virus, web, apache

    I am having problems working with both IIS and Apache.

    When I turn on IIS, for some reason other people on my network cannot access my server website files, and the same thing happens when I turn off IIS and turn on Apache.

    I can access the web server on my laptop, but for some reason it does not work for other users in my network.

    It used to work before, but that was before I wiped my computer (virus) and before we got a new router for our network. Does this have anything to do with me being on a wireless network instead of a LAN? I was on a wireless network when it worked before. If this is the case then how come I can wirelessly access my router through my laptop?

    Any idea where the problem might be?


    Thanks

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

  6. Compiling PHP, having problems.

    Date: 12/20/07 (PHP Community)    Keywords: php, mysql, sql, apache

    Hey guys, not sure if this is entirely the right place, but I'm having issues compiling PHP. I downloaded the 5.2.5 source tarball to my CentOS box this morning, compiled with gcc using:

    ./configure \
    --with-apxs=/usr/local/apache/bin/apxs \
    --with-libdir=lib64 \
    --prefix=/usr/local/custom \
    --enable-bcmath \
    --enable-calendar \
    --enable-ftp \
    --with-gd \
    --with-jpeg-dir=/usr/local \
    --with-png-dir=/usr \
    --with-xpm-dir=/usr/X11R6 \
    --enable-magic-quotes \
    --with-mysqli \
    --with-mysql=/usr \
    --enable-discard-path \
    --with-pear \
    --enable-sockets \
    --enable-zip \
    --with-zlib \
    --enable-soap


    and got this when I ran make test:
    =====================================================================
    FAILED TEST SUMMARY
    ---------------------------------------------------------------------
    Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
    iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
    Bug #41567 (json_encode() double conversion is inconsistent with PHP) [ext/json/tests/bug41567.phpt]
    =====================================================================


    Since the errors listed are not functions used in my php applications, I installed anyway and everything worked fine. I then realized that I had omitted '--with-openssl', which is needed for my SOAP client, so I recompiled with the additional argument and am now getting the following output from make test:

    =====================================================================
    FAILED TEST SUMMARY
    ---------------------------------------------------------------------
    Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
    iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
    Bug #41567 (json_encode() double conversion is inconsistent with PHP) [ext/json/tests/bug41567.phpt]
    Bug #31422 (No Error-Logging on SoapServer-Side) [ext/soap/tests/bugs/bug31422.phpt]
    IPv6 Loopback test [ext/sockets/tests/ipv6loop.phpt]
    Test array_reverse() function : usage variations - assoc. array with diff. value for 'array' argument [ext/standard/tests/array/array_reverse_variation5.phpt]
    Test array_unshift() function : usage variations - assoc. array with diff values for 'array' argument [ext/standard/tests/array/array_unshift_variation5.phpt]
    Test vsprintf() function : usage variations - string formats with non-string values [ext/standard/tests/strings/vsprintf_variation8.phpt]
    =====================================================================


    Since I use array_reverse() and vsprintf(), I didn't install.

    Oddly enough though, I'm getting the same failed test results now whether or not I include the '--with-openssl' argument. I run make clean in between attemtps and have even re-downloaded the 5.2.5 source tarball. Same 8 errors. Has anyone run into this?

    I have not yet downloaded an older source, and I'd rather not if I don't have to

    Edit: By changing the --prefix=[PREFIX] to a directory that was empty, I was able to get the errors to go back to the original 3, which is good enough to get my SOAP client working over SSL. I'd still like to get this to compile without any failures, but for now I can at least start work on the project that requires SOAP/SSL.

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

  7. 404 for user pages

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

    I've thought of adding MediaWiki to my site just to make it super easy to add content whenever I wanted. I know I could make Apache serve the wiki user page if the ~username URL was requested, but is it possible to make it do that only if it couldn't be found in the more traditional location (like his home dir) first? Would that require some kind of handler script?

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

  8. Detailed Post-Mortem of a Website Hack Through WordPress & How To Protect Your WordPress Blog From Hacking

    Date: 12/26/07 (Java Web)    Keywords: web, apache

    This WordPress blog was hacked for few hours on 24th December (nice Christmas present!) from Russia. The hacker exploited several WordPress vulnerabilities in administrative scripts to gain full access to the website (as permitted to apache user), including the ability to upload & run scripts, delete any file owned by apache user, view the file [...]

    Source: http://blog.taragana.com/index.php/archive/detailed-post-mortem-of-a-website-hack-through-wordpress-how-to-protect-your-wordpress-blog-from-hacking/

  9. How To Use Apache HTTP WebDav Server With Windows XP Explorer

    Date: 01/24/08 (Java Web)    Keywords: web, apache

    You have two options. Either you tear your (remaining) hair looking for solution on the web and trying different changes to Apache Web Server or Explorer even try magic incantations (alohamora?). Or you read below for a simple one liner solution. Install NetDrive from Novell. You can download it here. It will allow you to create [...]

    Source: http://blog.taragana.com/index.php/archive/how-to-use-apache-http-webdav-server-with-windows-xp-explorer/

  10. php/linux permissions

    Date: 02/02/08 (PHP Community)    Keywords: php, apache

    In an Ubuntu distribution, I believe PHP runs as user www-data (inheriting the user name of apache).

    All of the files I create have my user name and my group name.

    I have a script that requires write access to some files and folders.

    Is it better to add www-data to my group, or is it better to make these files and folders world writable (ie 0777)? Or is there another approach I am missing?

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

  11. How do I specify the server's document root?

    Date: 02/05/08 (Apache)    Keywords: php, web, apache

    I work on a Macintosh running Apache 2.2.6 for a lot of website development projects in PHP. Up until now, when it was necessary to specify a document root I would just change the value of $_SERVER['DOCUMENT_ROOT'] ... but that's really not that functional, as I still cannot do something like link an image or link like /index.php.

    I've been googling for a way to change Apache's document root based on folder structure but thus far my efforts have just caused apache to fail until I undo my changes. What I'm trying to do is set it so that when you go to say "127.0.0.1/Bob" that "Bob" and all its subsequent directories might have a doc root of /httpd/Documents/Bob" but if you go to "127.0.0.1/Mary" there would be a different document root.

    Is this possible?

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

  12. Apache-related Question.

    Date: 02/05/08 (Web Development)    Keywords: php, web, apache

    This is only vaguely webdev related and I apologize for that; but I'm getting no response from either '[info]'apache or '[info]'macintosh




    I work on a Macintosh running Apache 2.2.6 for a lot of website development projects in PHP. Up until now, when it was necessary to specify a document root I would just change the value of $_SERVER['DOCUMENT_ROOT'] ... but that's really not that functional, as I still cannot do something like link an image or link like /index.php.

    I've been googling for a way to change Apache's document root based on folder structure but thus far my efforts have just caused apache to fail until I undo my changes. What I'm trying to do is set it so that when you go to say "127.0.0.1/Bob" that "Bob" and all its subsequent directories might have a doc root of /httpd/Documents/Bob" but if you go to "127.0.0.1/Mary" there would be a different document root.

    Is this possible?

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

  13. Apache SSL, removing passphrase prompt

    Date: 03/05/08 (Apache)    Keywords: apache

    When my system reboots Apache needs the passphrase to start. I'd like to remove this prompt so the server can start without human intervention. So, according to the docs I can do this:

    openssl rsa -in server.key.current -out server.key.new

    But I wasn't prompted to enter my passphrase when issuing this command.  The resulting outfile is identical to server.key.current.
    Suggestions?

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

  14. How To Use .htaccess to Prevent Apache HTTPD Directory Listing

    Date: 03/16/08 (Java Web)    Keywords: php, html, apache

    Apache HTTPD servers are configured by default to display directory listing, when index files like index.htm or index.html of index.php etc. are not present in the directory. This can expose sensitive information to prying eyes and are often indexed by search engines. This can compromise your data by making it visible to unintended audience. The [...]

    Source: http://blog.taragana.com/index.php/archive/how-to-use-htaccess-to-prevent-apache-httpd-directory-listing/

  15. PDFlib and PHP

    Date: 03/17/08 (Web Development)    Keywords: php, apache

    For some reason the default version of PDFlib (5.0.3) distributed with the latest version of PHP (5.2.5) crashes on the default example of building a PDF, taking down Apache along with it with this in the error log:

    PDFlib exception (fatal): [1202] PDF_set_parameter: Unknown key 'objorient'
    Error in my_thread_global_end(): 253 threads didn't exit
    [Mon Mar 17 12:54:45 2008] [notice] Parent: child process exited with status 99 -- Restarting.


    Fortunately there is an easy fix for it. Simply download the latest version of PDFlib from http://www.pdflib.com and install/register its DLL with PHP.

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

  16. Is it possible in Apache to disable cookies?

    Date: 02/09/09 (Apache)    Keywords: java, web, apache

    We use Apache(2.0.47) as proxy for our java web applications running on Tomcat.
    Is it possible to setup Apache in order it removes/disables cookies?

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

  17. .htaccess works in http, not in https

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

    Hi everybody,
    first time poster.

    This has me a little perplexed.
    I don't have shell access to this machine so i can't check logs and such to see what is actually going on, but my .htaccess script works fine under http, but it fails to accept the same password with https accesss.

    my thought is that perhaps there is some form of authentication difference, or perhaps i need to rebuild my .htpasswd file again.

    however this is my .htaccess file

    AuthUserFile /full/os/path/to/file/.htpasswd
    AuthType Basic
    AuthName "Admin Folder"
    Require valid-user



    any ideas?


    ---- UPDATED 2008:10:08 ----
    got this from their tech today.

    > Subject: Re: Re: Https and basic authentication under apache.
    >
    > haven't had any success as yet.
    >
    > the problem appears to be that the username is being "lost" when
    > authenticating via the SSL server.. (the error_log shows a "blank
    > space" where the username should be....)
    >

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

  18. Reserved word in apache?

    Date: 06/25/08 (Apache)    Keywords: php, apache

    While I do have RewriteRules in my htaccess, I'm not employing them currently. And I do not see this as a PHP issue, so here I am. I have a fuseaction based LAMP site, and one of the links in particular isn't working right.

    Clicking Link:

    http://foo.com/index.php?page=client_sign_in&subpage=file_upload

    Returns URI as:
    http://foo.com/index.php?page=$redirect_page


    Upon further inspection, I noticed that if I change the text from 'file_upload' to 'file_upload1', or any other variation, it works. Is this a reserved word in apache?

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

  19. Configuring SVN and Apache

    Date: 06/24/08 (Apache)    Keywords: apache

    svn came installed on my RHEL5 box and I am working on configuring the system for use with Apache.

    I am using the following tutorial: http://www.howtoforge.com/apache_subversion_repository_p2

    Everything seemed OK (no errors) until the section "Setting up the initial repository layout:". When issuing the third command:

    svn import /tmp/subversion-layout/ http://127.0.0.1/subversion/


    The system returned the following error:

    [user@myserver directory]# svn import -m /tmp/svnmessage /tmp/subversion-layout/ http://127.0.0.1/subversion/
    svn: PROPFIND request failed on '/subversion'
    svn: PROPFIND of '/subversion': 405 Method Not Allowed (http://127.0.0.1)

    I did not restart apache before issing the svn import command - is that necessary? Also, I created all of the directories as root. Would that cause this problem?

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

  20. Sporadic network timeouts

    Date: 04/17/08 (Apache)    Keywords: apache

    So, three sites are hosted on a single RHEL5 box, with Apache 2x serving pages. Apache is using IP based virtual hosts.

    Every once in a blue moon I try to access one of the sites and receive network timeout errors (doesn't matter if I access via IP or domain name). The other two sites are still up and serving pages quickly - no slowdown or timeouts.

    After several minutes the network timeouts go away on their own.

    Any ideas?


    Source: http://community.livejournal.com/apache/41725.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