Apache2/php5.2/mysql for Drupal

Hello,
there is a little bit here and there about the topics in the subject but it seems that that triplet is enough important to deserve special attention in its own topic.
Basic questions:
I am assuming that everything can practically be done using the command line. Am I wrong?
How do I get rid of the original apache2 (or any other application) installation? What is the directory structure of a "Mac" and why is it not posted somewhere on the Apple's website?
Does anybody know why the GD image module is not available in the php that comes out the Apple Mac pro Box? What is the rational part of it?
Specific questions:
How do I install apache2? Is this enough?
extract it somewhere (/usr/local/src/)
then:
sudo ./configure --enable-layout=Darwin --enable-mods-shared=all
sudo make
sudo make install
Is the Darwin layout suppose to rewrite the "house" settings? I does not seem like it!
How do I install mysql? Is this correct?
Install the binaries from mysql.com and then
Install mysql libraries for php
http://support.apple.com/kb/TA25017
How do I remove the original php?
Should php-5.2.6 have GD support already installed?
I hope that somebody out there knows this stuff because apple is giving me too much trouble.
Thanks a lot
Daniele

leopard server is a lot more secure and easier to manage a large group, if that's what it is for.
I don't exactly know what you are trying to accomplish, but if it is going to see any serious
server usage to a bunch of students and the internet, then Leo server would be the logical
choice. If its just for a temporary small project, then that may be a different story.
As cheap as hosting is right now, if it is a temporary project. just host it somewhere.
Kj

Similar Messages

  • Compile Apache2, PHP5 and mysql 4.1 with altered settings

    Hi Fellow mac users!
    I would liek to install those environments on my new MBP 17", like I used to be with my own written compile scripts on my linux boxes. Is this possible?
    If some are there some issues I must be aware of? Found nothing relevant from my friend Google, only bumped to the MAMP installations. Any help would be appreciated and feedback will alse be provide from my side just to provide info to others.
    TIA
    RoZeeL

    The hardest part is getting the software to install on top of the Apple versions instead of some default install location like /usr/local. Your best bet is to download the packages from Apple at:http://developer.apple.com/opensource/index.html
    In theory, when you build and install these packages, they should get squirrelled into the correct locations.
    You might also want to look at MAMP: http://www.mamp.info/

  • PHP5 and MySQL 5 Compatibility

    I host my websites on a reseller account for a webhost that is about to upgrade their server technology to PHP5 and MySQL 5. Both PHP and MySQL is now at version 4."something." :-) My question is this, I have websites that were built using MX Kollection Pro 3.7.1 and ADDT 1.0. Has anyone came across any compatibility issues with using PHP5 and MySQL 5. At this point, I don't think I will have issues using PHP5 - but not sure. But the MySQL 5 is uncharted territory for me.
    I really don't want to have a website that will not function properly due to the upgrade. I hope someone has come across using those technologies, so let me know if you have had any problems. I exclusively use ADDT for my new websites. MX Kollection is for managing my older websites. I only use the PHP/MySQL combination for my websites.
    Also, to write my database tables, I use PhpMyAdmin to create the tables. It is easy for me to login to my hosting account and use that program to write my tables. I then used Kollection or ADDT to write the scripts as far joining tables and stuff like that.

    Thank you! I have sites hosted on two different accounts. Most on a multi account that allows me to host other domains and a "real" reseller account. Once the reseller account makes the change and everything still looks right, I will then cancel my multi account but not before migrating everything to the reseller account. I was scared that my websites would not work and was at a standstill on what I should do next. Thanks for the info!

  • Where is the guide for Apache2/php5/10g/Linux install?

    http://www.oracle.com/technology/tech/opensource/php/apache/inst_php_apache_linux.html
    is now sadly outdated considering that the stable releases on all products are now:
    Apache -> 2.0.52
    Php -> 5.0.2
    Oracle -> 10.1.0.3
    I am looking to run namely these software versions on a Linux (Fedora Core and/or Debian) system, but can't find any worthwhile documentation anywhere (oracle, google etc.).
    First of all I would like to know if it is even possible to run Apache 2.0.52/Php 5.0.2 with oracle-instantclient-basic-10.1.0.2?
    I know that with Oracle 9i you had to install the whole 300MB client install to get things to work easy, but that time has surely passed?(!)
    I am running oracle 10g on a seperate installment, and would like to connect to it with Apache 2 and Php 5. What is the best way to do this?
    I don't want to sound rude, and I do not expect a full installation guide, but if somebody could tell me how to do this I would appreciate it. The apache part is easy, the tricky part is the --with-oci8 php part combined with the instantclient (installed correctly and added in ld.so.conf).
    --with-oci8=/usr/lib/oracle/10.1.0.2/client/(lib) does not even remotly work. Whats the trick, if any?
    YS
    Anders Berg

    I have been working on this issues for a few days now. I was able to get Apache 2.0.52, PHP 5.0.2 and Oracle 10g Client(Administrator option) to work. Here's my compile
    export ORACLE_BASE=/opt/oracle
    export ORACLE_HOME=/opt/oracle/OraHome_1
    export ORACLE_SID=DBRAC
    export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
    ./configure with-apxs2=/apache/bin/apxs with-oci8=$ORACLE_HOME --enable-sigchild
    However, when I compile using '--with-xsl' option (I isolated the problem with this option), I cannot get a database connection. There's no error with the compile. Can anyone help me? Thanks in advance
    Here's my actual command
    ./configure with-apxs2=/apache/bin/apxs with-oci8=$ORACLE_HOME enable-sigchild enable-track-vars enable-sockets enable-wddx with-curl with-mysql with-gd with-gettext with-ldap with-xsl enable-soap enable-discard-path --enable-exif                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • PHP5 With MySQL Pre-compile Configuration Error

    I have been attempting to compile PHP5 in order to get GD support for a Drupal website. The configuration runs fine until it gets to the MySQL configuration. It fails when checking "lmysqlclient" however the file appears to be found but it is of the wrong archetecture. I am using the MySQL.com binary for MySQL. The conf.log file for PHP is as follows:
    -----START CONF.LOG-----
    any gcc2 internal prototype to avoid an error. */
    /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
    char mysql_close();
    int main() {
    mysql_close()
    ; return 0; }
    configure:59851: checking for mysql_error in -lmysqlclient
    configure:59870: gcc -o conftest -I/usr/include -g -O2 -no-cpp-precomp -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/lib -Wl,-rpath,/sw/lib -L/sw/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lldap -llber -liconv -liconv -lgd -lssl -lcrypto -lcurl -lz -lssl -lcrypto -lm -lxml2 -lz -licucore -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lssl -lcrypto -lz -lxml2 -lz -licucore -lm 1>&5
    ld warning: in /usr/local/mysql/lib/libmysqlclient.dylib, file is not of required architecture
    Undefined symbols:
    "mysqlerror", referenced from:
    _main in ccaK6P1K.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    configure: failed program was:
    #line 59859 "configure"
    #include "confdefs.h"
    /* Override any gcc2 internal prototype to avoid an error. */
    /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
    char mysql_error();
    int main() {
    mysql_error()
    ; return 0; }
    -----END CONF.LOG-----

    MasterStarman wrote:
    Sorry I haven't replied. Here is the output of the command you told me to run:
    /usr/local/mysql/lib/libmysqlclient.dylib: Mach-O 64-bit dynamically linked shared library x86_64
    OK. Now do that again on all of the libraries that you are linking with in that configure step. One (or more) of them is going to be i386. Download the source for those libraries, install them into /usr/local, and re-do your configure.
    EDIT: I have looked through other threads about PHP and GD, it seems like I'm not the only one who wishes Apple would have included a very common library with the Mac. I sincerely hope they include better options in 10.6.
    I agree. I will say this for the Linux community - they are much handier at compiling their own code. Mac people tend to look for an easy way out and often get stuck because of it.
    I also have boiled it down to probably recompiling MySQL however this of course presents problems with the Leopard server as MySQL is a little more integrated.
    That is unlikely to help. You have an entire system - Apache, PHP, MySQL that all need to link together. You can't fix just one. (Actually you can, but people prefer to use the optimized versions with Apache). You must do them all the same way and correctly. You don't have to replace anything that Apple has done. You could install your own pre-build software using MAMP. You could build it all yourself and install in /usr/local. Unfortunately, the answer most people pick is "try to fix the system install". That is possible, but it has to be done correctly and requires that you know how to do such things.

  • AttachCurrentThread hangs after a few calls in a Apache2 PHP5 Extension

    Hello everybody,
    I have created a small C Library/API that calls with JNI a simple Java class with a few methods to work with a underlying Java Framework (Carrot2). That JVM/JNI code functions some kind like a bridge between C and Java. In a single-threaded environment I experienced no problems, the complete runtime flow works well, I get no crashes or other strange behaviour.
    Now I have built an PHP5 extension that makes use of that JNI/C code, the extension is built as a class with constructor/destructor and has a few methods that call functions of my C library. The JNI/C side I have 2 data structs, one is for the JVM and its handle (JavaVM) as well as the Java class name and its path, the jclass object of that class, jvm options, classpath, etc. A second data struct is for the Java environment containing the JNIEnv pointer, the jobject of the Java class and a few more application related variables. The C code consists of JNI functions to work with the Java class to call its methods, a few JNI helper functions and some internal application code and data handling.
    At module initialization (Apache startup) I use the PHP_MINIT and PHP_MSHUTDOWN functions to load and unload (on apache stop) the JVM. The JVM gets created and destroyed at these points.
    I use the PHP constructor (inside the extension) to attach to the JVM, that is AttachCurrentThread with the class constructor, I create and object of the Java class and preload a few Java primitives that I need for my methods later on and after all this I can work with the Java class through JNI. On PHP5 class destruction (also in the extension), I detach from the JVM using 'DetachCurrentThread', free some resources and "delete" the JNIEnv pointer (set it to NULL).
    The JVM data struct (containing the JVM object) is a static global in the PHP5 module since I think there is no need for thread safety. This data is only modified/used in module startup/shutdown. The JNI worker struct (data struct with the JNIEnv pointer and jobject, etc is safely handled by the Zend object store throughout the complete class, so this should be thread-safe. So I do not suspect any problem here.
    Testing the PHP 5 extension with a small PHP5 script using that PHP class and a few methods in Apache debug mode (that is the -X switch for just one worker process) works like a charm, no problems, crashes or misbehaving situations, not up to now with my testing though. But running Apache in regular mode with multiple processes, I run in to problems. One major problem is, after a few reloads of the php script using the extension class (lets say 10-15 reloads; The request is handled by the same apache child process) the `AttachCurrentThread' call hangs and the child process remains in that state. Continuing reloading the script a new child process answers and also here, after 10-15 reloads of the script, I get the same problem. So I am not sure what is really happening here nor I do not know how to solve that issue. Is that a signal problem (I read, that there can be signal mask issues and the JVM hangs when a new thread tries to attach to it, for example, the Jakarta Tomcat JK JNI worker uses a signal hack because of this problem. But that does not help me.
    Or is there some problem with the multi-threading itself (since the JVM is multithreaded too)? Another problem is, besides that hanging thread attach, that the processing sometimes stops in middle of a java call (I have one method that insert data (calling a add method in a for loop) with JNI into a Java list on the Java class side, there it can stop in middle of the insertion process.
    So, for now, I have no idea how to continue. Like said, in a single threaded environment, as a process, the application runs fine without a flaw.
    Some details of my development machines: Ubuntu Lucic 10.04 LTS (also another Ubuntu 8 LTS), Apache2 MPM Worker (multithreaded model) and also on another machine the prefork version, Java JRE 6.0.22, PHP 5.2.16 (compiled from source).
    So any hints that can help me proceeding the development of this module for PHP would be great. Any help is appreciated. If there are questions or some unclear points, please let me know.
    Andreas

    jschell wrote:
    847069 wrote:
    I use the PHP constructor (inside the extension) to attach to the JVM, that is AttachCurrentThread with the class constructor, I create and object of the Java class and preload a few Java primitives that I need for my methods later on and after all this I can work with the Java class through JNI. On PHP5 class destruction (also in the extension), I detach from the JVM using 'DetachCurrentThread', free some resources and "delete" the JNIEnv pointer (set it to NULL).
    That is unclear.
    I presume that you have a PHP class which is making JNI calls.
    Presumably you have a single thread in the caller of the PHP class, specifically a single method, which creates the PHP class, interacts with it, and then destroys it.
    Yes, programming PHP5 extensions in C or C++ let you implement a class or just flat functions that can be used in the PHP scripting language. I implemented a class. So my constructor attaches to the (already at Apache/Module startup created JVM). After that, I can use the methods I have implemented to use the carrot2 framework. To communicate with the Carrot2 library, I have written a simple Java Class containing static functions for adding documents, executing clustering algorithms and receiving the search results, so all pretty straightforward I think. When the PHP script exists (request finished) then the class destructor is called (also implemented in my PHP5 extension) to detach from the JVM and make some cleanup. This is generally how things work.
    Most problems with JNI is caused by pointer problems or misusing the API (like not handling exceptions correctly.)
    Other than that the Sun VM has a command line option that reports useful information when using JNI.I can compile and run my JNI code with some test data from command line and I pass to the JVM some debugging parameters (such as -Xcheck:jni, -verbose:jni and Xint) for testing and debugging. I get no exceptions, errors or warnings. Everything is executed cleanly, I see some JNI/JVM debugging output (such as Dynamic-linking native method messages) along my own debugging output and the program finishes normally. Most JNI calls are wrapped in special macros and I check for exceptions, describe and clear them and act with these situtions (if any), I also added a method to the Java Class where I am able to receive the Java backrace for further investigation and abort execution.
    So for now I am out of ideas. This is why I don't understand these problems within the Apache/PHP process. Like stated above, Apache with one worker "-X" the complete code runs fine, even with consecutive calls all is fine, but then in regular multiprocess mode, I get the above problems like the AttachCurrentThread hangs or the execution of called methods of my Java class (inserting documents to a ArrayList or executing one of the clustering algorithms) hang and I have no other choice but to stop Apache.
    One more thing, I valgrinded my C code as far as possible. It is not possible to valgrind C code that creates and executes a JVM. Valgrind will stop and report "Error occurred during initialization of VM". No wonder though, I do not expect valgrind to execute the JVM beast in its context. The PHP5 version i compiled from source is thread-safe (at least I compiled it with the proper flags for that).
    So any other debugging hints or ideas are welcome.
    Edited by: 847069 on Mar 24, 2011 10:31 PM
    Edited by: 847069 on Mar 24, 2011 10:35 PM

  • APACHE2+PHP5

    Hi Folks,
    I am brand new to PHP5 and APACHE2, and am trying to install both on Linux Redhat 3.
    Basically, I type in http://localhost into my browser (Mozilla) and it shows the successful installation page for apache.
    I then installed PHP 5 follow the instruction on PHP manual site.
    I've checked for PHP and Apache get along with one another follow the instruction:
    1.LoadModule php5_module modules/libphp5.so
    2.AddType application/x-httpd-php .php .phtml .html
    AddType application/x-httpd-php-source .phps
    And I wrote a simple page to test php works..
    <? phpinfo(); ?> named it test.php.
    I keep getting the error 404 when I try to test php in the browser by typing http://localhost/test.php
    The requested URL /php/php.exe/test.php was not found on this server.
    Apache/2.0.46 (Redhat) server at locahost Port 80.
    any clues as to where I am going wrong?
    A lot of thnx for you help ;o)
    TIA,
    Lux
    Message was edited by:
    lux
    Message was edited by:
    lux

    Hi,
    Try to put
    doc_root = location of your apache htdocs
    in your php.ini file

  • Securing MySQL for production server.

    Hello,
    I am about to start to build a server running 10.5.3 to host a web site with a MySQL back end. Whilst doing this i will be learning about MySQL as i go along. The question i would like to ask though before i get started is What do i need to do initially to secure the MySL installation on a 10.5.3 Leopard Server?
    Has Apple secured it as much as possible out of the box, apart form setting the root password or do i need to do further configuring to secure other areas.
    PS. Is there such a tool that will check for any security vulnerabilities in your configuration before it goes live?
    Thanks in advance for any help.

    There are multiple attacks targeting Joomla presently active, based on what the botnets are aiming at the (non-Joomla) web sites I manage.
    The web apps are the target here. Joomla, front and center. Yes, the attackers can want into the database, but they're going to try to gain that access through the very same applications that you have already authorized database access. Through your content management system (CMS). If Joomla can access and modify the database, then an attack based on SQL Injection or XSS can itself gain that same access.
    Having the DB located local, remote or even on Mars (well, other than the latency) does not alter the security situation, as the target (Joomla) is authorized access into the database.
    I don't prefer to connect Mac OS X Server (directly) to the web. For something like this, I use an out-board firewall, set to pass ports 80 and 443, and other specific ports as required, If you connect directly, you have to be much more careful with your management and installation. With Mac OS X Server behind a firewall, you can keep (most of) the port attacks blocked out at the firewall, and not directly on your server. If you install or reconfigure something that opens a port (whether you realize it or not) and you don't have an outboard firewall, that port can be accessed remotely.
    I do use the Mac OS X Server firewall, in conjunction with the outboard firewall. I don't prefer to use the host firewall -- in isolation -- in an internet-facing server environment. And I keep that outboard firewall locked down.
    One area of database security here involves getting recoverable copies off the host for use if the host becomes compromised. Periodically test the restores, too. And recognize you might have to drop back some number of snapshots, until you find a copy of your database and your web directories that isn't compromised.
    Get on the Joomla security notification lists (the content management system I use offers those; haven't specifically checked Joomla), and do lock down your web server. Figure out who owns Joomla or other security updates, and figure out who owns archival processing and recovery, and figure out what you want to do if your server becomes compromised.
    For the Apache configurations, you want to block access to all but specified directories, and you can want to block the .htaccess and other site-specific files. Access into your defaults, directory traversals, file specifications, etc., are typically blocked via conf directive or .htaccess. Joomla should have recommendations for this somewhere in its documentation. If not, other CMS pacakges have descriptions of locking down Apache, though various details of this process tend to be somewhat CMS-specific. (Check the [Drupal|http://drupal.org] site; I know that CMS has this sort of thing documented.)
    You'll want to watch the attacks, too.
    It usually takes me a half-hour or so to fully set up and test Apache, building from my templates and customizing those for the particular CMS install I'm working on. Way more than could be easily included here.

  • Cannot initializy mysql for first use

    I installed coolstack 1.3 fine. But when i ran mysql_install_db --user=mysql
    It failed as follow. Any idea?
    thanks
    =========================================================
    bash-3.00# /opt/coolstack/mysql_32bit/bin/mysql_install_db --user=mysql
    bash-3.00# /opt/coolstack/mysql_32bit/bin/mysql_install_db --user=mysql
    Installing MySQL system tables...
    ERROR: 1062 Duplicate entry 'localhost-' for key 'PRIMARY'
    081209 21:25:34 [ERROR] Aborting
    081209 21:25:34 [Note] /opt/coolstack/mysql_32bit/bin/mysqld: Shutdown complete
    Installation of system tables failed! Examine the logs in
    /opt/coolstack/mysql_32bit/data for more information.
    You can try to start the mysqld daemon with:
    shell> /opt/coolstack/mysql_32bit/bin/mysqld --skip-grant &
    and use the command line tool /opt/coolstack/mysql_32bit/bin/mysql
    to connect to the mysql database and look at the grant tables:
    shell> /opt/coolstack/mysql_32bit/bin/mysql -u root mysql
    mysql> show tables
    Try 'mysqld help' if you have problems with paths. Using log
    gives you a log in /opt/coolstack/mysql_32bit/data that may be helpful.
    The latest information about MySQL is available on the web at
    http://www.mysql.com/. Please consult the MySQL manual section
    'Problems running mysql_install_db', and the manual section that
    describes problems on your OS. Another information source are the
    MySQL email archives available at http://lists.mysql.com/.
    Please check all of the above before mailing us! And remember, if
    you do mail us, you MUST use the /opt/coolstack/mysql_32bit/bin/mysqlbug script!
    bash-3.00#

    Goran O wrote:
    Try Administrator/Administrator, it works for sh.rpd and samplesales.rpd.
    Regards
    Goran
    http://108obiee.blogspot.com
    Thank you too!!

  • ANN: Setting up PHP and MySQL for newbies!

    We've recently released two new solution recipes to help
    designers make the
    jump to building dynamic sites. Each solution recipe
    describes step by step
    how to set up PHP and MySQL on your XP or Vista systems. You
    can find them
    on the Solution Recipe page:
    Installing PHP and MySQL on Windows Vista
    Installing PHP and MySQL on Windows XP
    http://www.webassist.com/professional/products/solutionrecipes.asp
    Each of these Solution Recipes include PDFs that you can
    print out or read
    on screen.
    We also have steps outlined for the Mac in PDF format, one
    for 10.4.x and
    the other for 10.5.x:
    10.4.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    10.5.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    All content is freely available. Go get'em!
    Best - Joe
    Joseph Lowery
    VP of Marketing, WebAssist -
    http://www.webassist.com
    Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/

    Cool. I've bookmarked it for later.
    Thanks!
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Joseph Lowery" <[email protected]> wrote in
    message
    news:ftj87l$nem$[email protected]..
    > We've recently released two new solution recipes to help
    designers make
    the
    > jump to building dynamic sites. Each solution recipe
    describes step by
    step
    > how to set up PHP and MySQL on your XP or Vista systems.
    You can find them
    > on the Solution Recipe page:
    >
    > Installing PHP and MySQL on Windows Vista
    > Installing PHP and MySQL on Windows XP
    >
    http://www.webassist.com/professional/products/solutionrecipes.asp
    >
    > Each of these Solution Recipes include PDFs that you can
    print out or read
    > on screen.
    >
    > We also have steps outlined for the Mac in PDF format,
    one for 10.4.x and
    > the other for 10.5.x:
    >
    > 10.4.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    >
    > 10.5.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    >
    > All content is freely available. Go get'em!
    >
    > Best - Joe
    >
    > Joseph Lowery
    > VP of Marketing, WebAssist -
    http://www.webassist.com
    > Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/
    >

  • Apache2.2+PHP+MySQL

    Pliz, I need ur help... For creating new database connection
    I've entered name of connection, server - MySQL - localhost, name -
    root, password, database - ( i have for select 3 ways -
    information_schema, mysql and test) whatever I have selected, I
    press Test - Connection is succesfull, I press Ok, But when I press
    OK in previous window to finally creating connection, nothing
    happens... Help me plizzz...

    Have you tried creating the connections file manually? i.e.
    copy an existing one from a different website you've done and
    modify it to suit...

  • Setting up MySQL for Dreamweaver 8

    I set up MySQL on my Macintosh yesterday, along with PHP --
    all went fine yesterday, until I tried to connect Dreamweaver to it
    (today I went back and uninstalled and tried to reinstall, and all goes less well -- can anyone tell me what
    robert:/usr/local/mysql robert$ bin/mysqladmin -u root password 'himmel'
    bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: NO)'
    signifies?)
    In any case -- back to the story:
    I go to connect to the DB in Dreamweaver 8, and when I try to set up the DB in the "databases" tab and click on the "database" field I get
    "An unidentified error has occurred"
    and then
    "HTTP Error Code 404 File Not Found....
    [Possible Reasons]: 1) No testing server running on this machine.
    2) The Testing Server specified for this site does not map to the http://127.0.0.1/~robert/Sites/_mmServerScripts/MMHTTPDB.php?Type=MySQL&Connecti onString=host=localhost;uid=dwmx;pwd=mm&Host=localhost&&UserName=dmwx&Password=m m&Timeout=30 URL. Verifiy that the URL prefixs points to the root of the site."
    Any clue? I know little about PHP or Unix, but am trying to learn.

    Great info - thank you, David! I will be trying that this
    afternoon.
    Before I do, however, I need to clarify whether I am doing
    this the "best"
    way in my decision to use MAMP. I was looking for the
    quickest, easiest way
    to get a Testing Server setup so that I could test out
    multiple client
    sites. In your opinion, is my approach the best solution? Do
    I need to
    purchase MAMP Pro?
    Thanks again, much appreciated!
    Derrill
    "David Powers" <[email protected]> wrote in message
    news:gcar60$1ga$[email protected]..
    > Derrill wrote:
    >> Server Model: PHP/MySQL
    >> Access: Local/Network
    >> Testing Server Folder: (Not sure what goes here
    because I am not sure
    >> where my website root folder should reside)
    >
    > Since you have installed MAMP, the server root is
    > /Applications/MAMP/htdocs
    >
    > If you create a subfolder called mysite inside htdocs,
    URL prefix becomes
    >
    http://localhost/mysite/
    >
    > However, by default, MAMP uses a non-default port for
    Apache. If you are
    > using the MAMP ports, you need to change the URL prefix
    to
    >
    http://localhost:8888/mysite.
    >
    > As long as you run only MAMP, it's best to configure
    MAMP to use the
    > Apache and MySQL default ports (80 and 3306). You do
    this in MAMP Pro by
    > selecting Server > General, and clicking the Default
    port button. Since
    > you have got MAMP Pro, you can also create virtual hosts
    for your sites.
    > You do that by clicking the Hosts tab in MAMP Pro. Click
    the plus button
    > at the bottom-left of the panel, give the virtual host a
    new name and
    > specify its location in the fields on the right.
    >
    > Always restart the servers after making any changes.
    >
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "The Essential Guide to Dreamweaver CS3"
    (friends of ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • Best data type in mySQL for an Image

    What would be the preferred data type in mySQL to store an image
    (jpeg or png)?
    I would think BLOB would serve this purpose best.
    Who is currently doing this and what data type are you using?
    Regards,
    Scott

    Hi GIlly,
    well, we all agreed that the best field type in which to store the image
    would me a blob. I still have not succeeded in storing an actual image
    in  MySQL database (see my post of July 4th).
    UbuntuPenguin has been giving me some ideas but  I can't get
    an image written to the DB. The trick is to encode the image into
    a byteArray and I have code for that and for the decode of the
    image when reading from the database.
    If you take the encoded byteArray and copy it by hand into a blob
    field in MySQL every thing is fine. I just can't get an HTTP service
    call to do it.
    Regards,
    Scott

  • MySQL for MacBook Pro?

    Hi there, first time Mac owner and recent lurker here.
    I'm sorry if this has already been addressed, but I've looked in several places and am still unsure of which version of MySQL to install on the new MacBook Pro.
    I understand there is a universal binary version. In another thread, one person says it is this: mysql-standard-5.0.15-osx10.4-powerpc.dmg. Pardon my lack of experience / ignorance, but doesn't powerpc imply that it is not of the newer universal binaries?
    I have Apache and PHP configured and working, I just need to get MySQL in there now. Can anyone please recommend the right version?
    Thank you for your time.

    Go here
    http://dev.mysql.com/downloads/mysql/5.0.html
    and scroll down to the Mac OSX group and then select the version for "x86." That version is compiled for intel.

  • Oracle taking 3 times more disk spaces than MySQL for BLOBs?

    Hello there,
    We have been migrating one big about 8 TB MySQL table into Oracle 11g R2. The table contains biometric data in 18 BLOB columns - it's a kind of storage table for all biometric information in the form of BLOB. The avg. row length is about 140KB. We had a rough estimation - it might take about 12 TB of disk spaces after migrating the thing into Oracle. We planned to put this table in a 32K bock size tablespace. The table contains about 85 million records.
    After we finished loading the data, we discovered that about 20 millions of records already consumed more than 7 TB of disk spaces! In this fashion, we might end up with consuming 30TB of disk spaces after loading the 85 million of records. The only thing at this moment I am thinking about is to reduce the PCTFREE parameter to 2% instead of 10% - the records will be very rarely updated. This will save about 2TB of disk spaces from that 30TB, I guess.
    On top of your head, do you have any quick thoughts about the possible reasons of such abnormal (?) disk consumption - it is taking about 3 times more disk than MySQL database. What would be the best way to debug the problem - where to look at?
    FYI- All the storage parameters of the table has been kept default - just mentioned the tablespace name while created the table. We have been using SQL*Loader with DIRECT mode to load the data.
    Thanks for your cooperation!
    Regards.

    Hi,
    We are using the old BLOB - and not compressed yet.
    The machine is not remotely accessible, I will get the DDL later on.
    FYI, we did not mention any storage option for the table except the tablespace name. Earlier, I looked at the dba_lobs, dba_segments, dba_extents and had the following few information -
    * All the blob columns has "initial_extent" 163840 [from dba_segments]
    * Block allocation gradually increased, not uniform (extent_id 1 -> blocks 2, ... extent_id 14 -> blocks 32... extent_id 77 -> blocks 256... extent_id 938 -> blocks 2048 [from dba_extents]
    * CHUNK is 32768 for all lob segments
    * RETENTION is 900
    * No value for PCTVERSION
    Thanks for your time!

Maybe you are looking for