Apache web server not working...PLEASE HELP!!

I'm trying to get apache working on my Mac so I can host a website that will access a local MySQL database. I've researched this for a while. When I run the command:
#sudo /usr/sbin/apachectl -t
I get the following output:
httpd: Syntax error on line 75 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/mod_deflate.so into server: dlopen(/usr/libexec/apache2/mod_deflate.so, 10): Library not loaded: /usr/lib/libz.1.dylib\n Referenced from: /usr/libexec/apache2/mod_deflate.so\n Reason: no suitable image found. Did find:\n\t/usr/lib/libz.1.dylib: no matching architecture in universal wrapper\n\t/usr/lib/libz.1.dylib: no matching architecture in universal wrapper\n\t/usr/lib/libz.1.dylib: no matching architecture in universal wrapper
How do I fix this issue? I would really like to get this running without having to resort to a virtual Linux box or using XAMMP if possible. Thanks for any help you can provide!
Mike

I get the following when I run that:
Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t : run syntax check for config files
So it doesn't like the command. If I run "#sudo /usr/sbin/apachectl -t", I get the error listed in my initial posting.
Mike

Similar Messages

  • Changing port for http server not working, please help

    Hi Gurus
    I installed standalone hhtp server from db companion cd on AIX 5.3 10gR2.
    I tested the http server URL http://XXX.XXX.XXX.com:7777/epdev/helloworld
    after creating a procedure in the db and it works
    But I need http server to use port 80 and not default of 7777
    I did 2 changes in httpd.conf - Port 80 and Listen 80 But after this I am not
    able to start http server . Can somebody tell me what am I missing here ?
    I even tried starting it as root and got error as well
    $HTTP_HOME/opmn/bin/opmnctl startall
    opmnctl: starting opmn and all managed processes...
    ================================================================================
    opmn id=cov6053:6200
    0 of 1 processes started.
    ias-instance id=IAS-X-cov6053.6299
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    HTTP_Server/HTTP_Server/HTTP_Server
    Error
    --> Process (pid=720916)
    failed to start a managed process after the maximum retry limit
    Log:
    /export/host/thishost/unix/cen/app/oracle/product/http10.2/opmn/logs/HTTP_Server~1
    The log file has this entry no error:
    07/11/15 10:45:26 Start process
    /export/host/thishost/unix/cen/app/oracle/product/http10.2/Apache/Apache/bin/apachectl start: execing httpd
    Thanks a lot for your help

    I was able to reslove this. Followed this :
    On UNIX, you will hare to run as root if you want to run on ports less than 1024.
    In order to run Oracle HTTP Server as root, perform the following steps:
    Shutdown Oracle HTTP Server using the following command:
    UNIX: ORACLE_HOME/opmn/bin> opmnctl [verbose] stopproc ias-component=HTTP_Server
    Change to root user. Navigate to ORACLE_HOME/Apache/Apache/bin on UNIX or ORACLE_HOME\Apache\Apache\bin on Windows and execute the following command:
    chown root .apachectl
    chmod 6750 .apachectl
    Exit root.
    Restart Oracle HTTP Server using the following command:
    UNIX: ORACLE_HOME/opmn/bin> opmnctl [verbose] restartproc ias-component=HTTP_Server

  • Apache Web Server not working correctly

    Hello all,
    I have enabled web sharing and put a file in my "sites" folder under my username.
    I have instructed my friend to paste the link into his browser, he is using Leopard 10.5.5 as well, and it says that Safari can not find the server.
    The box is checked for web sharing, I gave him the link with my username at the end and the one without it and it still isn't working. In fact, even when I use localhost it says that Safari can not find the server....
    Is there anything else I need to do?

    I get the following when I run that:
    Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
    [-C "directive"] [-c "directive"]
    [-k start|restart|graceful|graceful-stop|stop]
    [-v] [-V] [-h] [-l] [-L] [-t] [-S]
    Options:
    -D name : define a name for use in <IfDefine name> directives
    -d directory : specify an alternate initial ServerRoot
    -f file : specify an alternate ServerConfigFile
    -C "directive" : process directive before reading config files
    -c "directive" : process directive after reading config files
    -e level : show startup errors of level (see LogLevel)
    -E file : log startup errors to file
    -v : show version number
    -V : show compile settings
    -h : list available command line options (this page)
    -l : list compiled in modules
    -L : list available configuration directives
    -t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
    -S : a synonym for -t -D DUMP_VHOSTS
    -t -D DUMP_MODULES : show all loaded modules
    -M : a synonym for -t -D DUMP_MODULES
    -t : run syntax check for config files
    So it doesn't like the command. If I run "#sudo /usr/sbin/apachectl -t", I get the error listed in my initial posting.
    Mike

  • Hi,my name is Hemanth.Im using ipod touch and my ipod is not detecting in itunes  but detecting in my computer.Im using windows7 os.I tried the troubleshooting process given in web but still it not working please help me.

    Hi,my name is Hemanth.Im using ipod touch and my ipod is not detecting in itunes  but detecting in my computer.Im using windows7 os.I tried the troubleshooting process given in web but still it not working please help me.

    Did you try everything here:
    iOS: Device not recognized in iTunes for Windows
    Then try a different computer to help determine if yo have an IPod or computer problem.

  • HT201412 my iphone 4s does not start by power switch, it starts when i connect to pc. the proximity sensor is not working. please help

    my iphone 4s does not start by power switch, it starts when i connect to pc. the proximity sensor is not working. please help.

    Sounds like it may be a hardware issue.
    Please contact Apple Support in your country.
    Here is a list of numbers: http://support.apple.com/kb/HE57
    Regards
    J

  • I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

    I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

    I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

  • I have 4s iPhone , I download the iOS 7. Now the front receiver microphone is not working , please help me that how to fix the problem.

    I have 4s iPhone , I download the iOS 7. Now the front receiver microphone is not working , please help me that how to fix the problem.

    I live in South Africa, and I had the same problem with my iPhone 4.
    After weeks of frustration and swearing, I was in the process of restoring my phone to a previous iOS. To do that you need to turn the "Find my iPhone" option off, since i turned it off, my problem was solved. No need to repair anything or revert back to old iOS.
    ***** that i cant use Find my iPhone, but atleast i can use my phone.

  • I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.

    I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.I have lost my resource cd .

    If you are running Lion or Mountain Lion, the drivers are downloaded from within Bootcamp Assistant. If you are running Snow Leopard the drivers are on your Snow Leopard install disk.
    Read the Bootcamp Install Guide for your version of OSx. http://www.apple.com/support/bootcamp/
    Bootcamp questions should be asked in the Bootcamp forum where the Bootcamp gurus hang out https://discussions.apple.com/community/windows_software/boot_camp

  • HT4623 iOS 6.1 no longer available because you are no longer connected to the internet- this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.

    this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.
    is there any other method to download ios 6.1.2.
    my phone is not being recognized by itunes on my new windows 8. neither its working on touch copy.
    kindly help.
    thanks

    well in thatcase, i need another help .
    thanks for your instant reply.
    i have currently bought a new laptop (windows 8) and my iphone is not being recognized by itunes.
    because i have no backup on my previous laptop, i downloaded touchcopy but even touch copy is not recognizing my iphone.

  • While updating 4.0 version to 5 version system shows sim card is not valid. My iphone is not working .Please help me

    while updating 4.0 version to 5 version system shows sim card is not valid. My iphone is not working .Please help me

    I would imagine your iPhone was hacked to make it work on your local carrier.
    Updating the iOs to 5.xx will lock it back to the original carrier .The carrier holding the lock are the only
    entity able to authorise the unlock .You will have to contact them and see if they unlock and the terms the apply

  • HT1414 my handsfree is not working please help me

    Hi There!
    I am using Iphone 4s and ny handsfree in not working please help me

    Try restarting you iPhone by holding down the on/off and the home buttons at the same time until you see the Apple logo. 

  • HT201320 I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration

    I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration

    Contact the email provider and obtain the correct setup information.

  • The built-in mic in g50 122ca laptop model is not working. please help me out.

    the built-in mic in g50 122ca laptop model is not working. please help me out. OS: Windows Vista (32-bit)

    here is a sample code .
    so far you procedure looks good but
    i bet you have to specify the name of report , instead of 'filename'.
    see this
    Plist_id := GET_PARAMETER_LIST('P_name');
    IF NOT ID_NULL(Plist_id) THEN
    DESTROY_PARAMETER_LIST(Plist_id);
    END IF;
    Plist_id := CREATE_PARAMETER_LIST('P_name');
    ADD_PARAMETER( Plist_id, 'P_Receive_date', TEXT_PARAMETER, TO_CHAR(Receive_date,'mm/dd/yyyy'));
    ADD_PARAMETER( Plist_id, 'P_Hearing_date', TEXT_PARAMETER, TO_CHAR(Hearing_date,'mm/dd/yyyy'));
    ADD_PARAMETER( Plist_id, 'P_Hearing_time', TEXT_PARAMETER, TO_CHAR(Hearing_time,'mm/dd/yyyy'));
    ADD_PARAMETER( Plist_id, 'P_Issue_date', TEXT_PARAMETER, TO_CHAR(Issue_date,'mm/dd/yyyy'));
    ADD_PARAMETER( Plist_id, 'P_Workshop_date', TEXT_PARAMETER, TO_CHAR(Workshop_date,'mm/dd/yyyy'));
    -- RUN_PRODCT(REPORTS,'..\Reports\Pro_License',SYNCHRONOUS, RUNTIME, FILESYSTEM, Plist_id, NULL);
    -- here Pro_License is the name of report.
    did you tried to see if the parameter passed using a message ?
    try
    message('parameter name'); pause; write this before "run_report".

  • My itnues for pc is not working :( it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me

    my itnues for pc is not working it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me

    Please helppppp

  • HT4539 All my old tv shows are not working please help my computer sed I have to Atheris 5 computers to play all my old tv shows I Pade for with eney Itunas cards. :( :'(

    All my old tv shows are not working please help my computer sed I have to Atheris 5 computers to play all my old tv shows I Pade for with eney Itunas cards.

    What do y mean by not work?
    What happens when y try to play them on yur iPod?
    What happens when yo try to play them in iTunes on yur computer?
    If you get a message what is the exact wording of the message?
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    Some countries do not allow redownloads some kinds of media

Maybe you are looking for

  • How to read data from a GPIB when sending a function generator command

    I'm using Visual C++ with the ComponentWork ActiveX and I'm tring to plot a CWGraph using the data coming from a GPIB device. When I write command such as "*IDN?" to the GPIB device, everythings if fine and I can read what the GPIB device return me.

  • Windows 7, file properties - Is "date accessed" ALWAYS 100% accurate?

    Hello, Here's the situation: I went on vacation for a couple of weeks, but before I left, I took the harddrive out of my computer and hid it in a different location. Upon coming back on Monday (January 10, 2011) and putting the harddrive back in my c

  • Chapter Markers do not show on iDVD

    I edited a movie in FCE, DV 16:9 aspect ratio. added chapter markers, but in order to preserve the 16:9 aspect ratio when I exported the project to Quick Time I encoded it as HD 16:9, It worked preserving the aspect ratio but in the process I lost th

  • Burned CDs won't play after updating to 6.0

    After updating to 6.0 and 6.01 the CDs I burn won't play in my car stereo. This was never a problem prior to the updates. I double checked everything I could think of and am burning them to CD-Rs and have audio CD selected on my burning preferences.

  • Photo-wrapped cover and matching dust jacket

    Photo-wrapped to me means the photo on the front of the cover wraps around to the back cover. If you remove the dust cover and lay it out, the photo is like a panorama, from front to back. Is that the way it works, and if so, how do you lay it out in