Apache enable php

Every time I upgrade my iMac with a new MacOS, I restart at the stone age.
What a boring system.
Every time my iMac loses the hostname, and apache on local files is unable to manage php files.
What a boring system.
In this community, if I select the Mountain Lion folder and then I search for apache anable php, the search engine show me articles related to 10.5, 5 years old, totally useless.
What a boring system.
Now, I have to solve a css problem in a web page and cannot even start to see the page locally, since my iMac is totally unable to do what I expect as assumption, seen that it worked for years.
This system is really, really boring.
Does someone give me a link to a useful page on how to configure these boring things?
Thank you!

Try Google:
https://www.google.com/webhp?client=safari#hl=en&client=safari&sclient=psy-ab&q= mac+mountain+lion+configure+apache+php&oq=mac+mountain+lion+configure+apache+php
That was so easy it's boring.

Similar Messages

  • Enable PHP and apache!

    Hello,
    Is there a simple way to enable php and apache on my new imac? So I can test my website locally. Hopefully its not a lot of steps. I have seen a lot of tutorials by using google. But they involve terminal and I don't know that well to be able to mess with it. I don't want to ruin my computer. So any help would be appreciated.
    Thanks,
    Kash_Money

    And to answer your first question, "how can I use a .html extension page" see http://discussions.apple.com/thread.jspa?messageID=5850167&#5850167
    which is, however, for Tiger. On Leopard, the relevant file is /etc/apache2/httpd.conf and it turns out that /etc/apache2/other/php5.conf is even more relevant for exactly what you want.
    Specifically, first read the first paragraph therein for why you should do something else instead. However, the hopefully not too crazy instructions (sorry, but the only way I know how uses the Terminal and emacs, so due to your Terminal-phobia I'll give detailed instructions and hope I'm not insulting you too much), will be for what you want, not for what I think you should do. The Terminal+emacs instructions are needed because /etc/ is a hidden directory owned by root, which makes it hard to use TextEdit to edit it.
    So open a Terminal , and type
    sudo emacs /etc/apache2/other
    emacs is a text editor that works inside the Terminal, and which, for the uninitiated, has weird key bindings. You'll probably see something like
    <pre style="background: #eee">
    <IfModule php5_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
    DirectoryIndex index.html index.php
    </IfModule>
    </IfModule>
    </pre>
    Press the down arrow key, ctrl-e, and type " .html". The file contents should now look like
    <pre style="background: #eee">
    <IfModule php5_module>
    AddType application/x-httpd-php .php .html
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
    DirectoryIndex index.html index.php
    </IfModule>
    </IfModule>
    </pre>
    Type ctrl-x ctrl-s to save, and then ctrl-x ctrl-c to exit.
    Restart the web server, either by typing
    sudo apachectl restart
    or by going into System Preferences and unchecking, then checking web sharing.

  • Enabling PHP is breaking Apache.

    I am following the tutorial at, http://developer.apple.com/mac/articles/internet/phpeasyway.html, to enable apache/mysql. Where the tutorial is titled, "Enabling PHP in Apache", I copy and pasted the code to terminal. Osascript password prompted and I entered. When the script finished, I can't access "my computers website", as it just returns as busy/not found. For some reason the Mac HD: private: etc: apache2: httpd.conf file (the copy) is created, but is completely blank. When I replace it with the original, I can access "my com website" again.
    Also. The httpd.conf file does not have a line "#LoadModule php5_module libexec/apache2/libphp5.so".... so there is nothing to toggle?
    Can I just edit that file manually to enable Php?
    Message was edited by: thejackkelly

    Solved with new php install.

  • Can't get suexec to work with apache and php

    I want to enable php scripts to be executed by a php process that runs as the same user as the owner of the site.  In my case I am just using userdir so anything under /home/username/public_html should be run as username.  I have mod_suexec.so loaded in my httpd.conf file.  In the apache docs it says that:
    User directories:
    Requests that are processed by mod_userdir will call the suEXEC wrapper to execute CGI programs under the userid of the requested user directory. The only requirement needed for this feature to work is for CGI execution to be enabled for the user and that the script must meet the scrutiny of the security checks above. See also the --with-suexec-userdir compile time option.
    I think my file meets the security checks it mentions which are listed on the site: http://httpd.apache.org/docs/2.0/suexec.html  So that makes me wonder about CGI execution being enabled for my user and how do I modify that.  Is there anything else I need to change to enable it?
    Last edited by nLEyETn (2009-07-05 20:50:33)

    I want to enable php scripts to be executed by a php process that runs as the same user as the owner of the site.  In my case I am just using userdir so anything under /home/username/public_html should be run as username.  I have mod_suexec.so loaded in my httpd.conf file.  In the apache docs it says that:
    User directories:
    Requests that are processed by mod_userdir will call the suEXEC wrapper to execute CGI programs under the userid of the requested user directory. The only requirement needed for this feature to work is for CGI execution to be enabled for the user and that the script must meet the scrutiny of the security checks above. See also the --with-suexec-userdir compile time option.
    I think my file meets the security checks it mentions which are listed on the site: http://httpd.apache.org/docs/2.0/suexec.html  So that makes me wonder about CGI execution being enabled for my user and how do I modify that.  Is there anything else I need to change to enable it?
    Last edited by nLEyETn (2009-07-05 20:50:33)

  • Need Urgent Help with Apache and PHP

    I have been struggling with apache and php for a week now and I finally broke down to post a message.
    I have apache 1.3 running on my mac mini g4 with 10.4.9 and I installed sql. I went to the entropy website and downloaded php5 to install without knowing I already had php4 on the machine. I installed 5 but could not get it to work. I then went back to httpd.conf and tried to install php4 by uncommenting out the loadmodule and addmodule lines. I restarted apache but php still did not work. I tested the phpinfo.php script but all I got was the script in Safari and not the actual page. At the moment, I have php4 and php5 on my machine but can't get either one to work. I am sure there is an easy fix but I don't know it. Please help.

    The problem is not terribly complicated, but Apache will not start with the entropy file in the folder
    /etc/httpd/users/
    Let me experiment on you. Rename the entropy file and then try to start Apache. To do this, open Terminal and paste this command:
    <pre>sudo mv /etc/httpd/users/+entropy.conf /etc/httpd/users/+entropy<pre>
    Now check the Apache configuration:
    <pre>apachectl configtest<pre>
    If it says "Syntax OK", start Apache:
    <pre>sudo apachectl start<pre>
    Since we only disabled the entropy file, you should be able to enable PHP5 with some more advanced configuring.

  • Enabling php

    Hi there, I am running into some serious issues with enabling the built-in PHP on Mountain Lion.
    I have followed the steps described in an article that I have found through google. Everything were fine until I hit to the steps to enabling PHP service. Unfortunately, I serached through google to see if I can find a solution to it, and it turns out unsuccessful. So, keeping up with a little hope to see if one of your smart techs can solve my issue with PHP:
    I have created a .conf file using my shortname as described in the article that I found on google. Everything went fine with localhost, but when I tried to access to http://localhost/~username then the headache message popped out stating that 403 forbidden. I tried to change access permission but turned out disappointed. Well, with no one can seek for help, my only hope is on you guys. Looking forward to get a good hand soon.

    Hi, I am assuming you are trying to configure the httpd.conf file on your computer.
    In OSX, by default when you enable Apache, the root folder is OSX HDD > Library > WebServer > Documents
    Place a test html file or php file (e.g. something that displays the message 'Hello World') in that folder and open up Safari or any web browser of your choice and just enter http ://localhost/(your test file) in the address bar.  Does the test open and display whatever message it is supposed to show?
    You can edit the httpd.conf file via terminal:
    sudo nano /etc/apache2/httpd.conf
    enter your administrator password
    Scroll down the file and uncomment (delete #) for the LoadModule lines to enable the modules you want.
    (The PHP module is near the end of that LodeModule list, just remove the # in front of the line to enable it.)
    Scroll down more to the line that begins with DocumentRoot "/Library....  and change the root directory path to whatever you want.
    (If you want to be able to open up http ://localhost/(your username) in a web browser, make sure that a folder with your username exists inside the root directory.)
    Save and exit httpd.conf file by entering the following keyboard commands:
    ctrl + o, press enter to save
    ctrl + x
    Don't forget to restart Apache after editing the httpd.conf file with this command in terminal:
    sudo /usr/sbin/apachectl restart

  • Apache and PHP update causes an error

    Apple update downloaded updates for apache and php, since then I cant get to work my squirrel mail, because web wont start if it has the php plugin enabled, any help or suggestions ???

    Shxnnxn please see Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html for information on how to resolve Error 49.

  • How do i enable php on my mac

    I would like to enable php on my mac (and apache if necessary).
    It needs to be simple.
    I can do this on a pc (with XAMP).
    I have some development with php to do?

    actually there are no cookies on mac's. only got CACHES:
    go to Finder
    choose Go (menu bar)
    hold OPTION Button (keyboard)
    choose Library
    choose Caches

  • Enable PHP on osX 10.4.10

    I'm a newbie so bear with me.
    I have an iMac osX 10.4.10
    I want to run Gallery 2 on the local server on my computer to set it up.
    I used MAMP. Easy. It shows green lights for Apache Server and MySQL server using PHP 5. Great!
    Now I need to Enable PHP. I found this:
    http://docs.info.apple.com/article.html?artnum=107292
    "For 10.3 or later
    Open Server Admin.
    Select the Web service from the desired server in the Computers & Services list.
    Click on Settings.
    Click Modules.
    Enable or disable the php4_module as desired.
    Save the changes.
    Restart the Web Service."
    I downloaded Server Admin and started it.
    My local address is http://myname.local/
    Server Admin says, "There is no server available at the address you entered.
    All services failed to access the address you provided for myname.local. Check the address and try to log on again or contact your network administrator.
    All I want to do is activate PHP...that's it!
    The directions in the above link are NOT for osX 10.4.10...So now what do I do?
    Thanks
    Tim

    Are you using Mac OS S Server?
    You posted in the Server forum. Server Admin is geared to managing Mac OS X Server and can't help you with the client version of the OS.
    To enable PHP on the client version of Mac OS X you're going to have to manually edit /etc/httpd/httpd.conf and uncomment the lines:
    LoadModule php4_module libexec/httpd/libphp4.so
    AddModule mod_php4.c

  • Will Apple update Apache / MySQL / PHP on Tiger 10.4.11

    Recently, a scan was made on the two xServes that I have, both running 10.4.11 with only the web services set up. They are running the default bare bones setup for Tiger Server 10.4.11.
    The scan showed issues with the current install of Apache and PHP. I have been told I need to update the serves to a more secure version of Apache, Mysql, and PHP.
    Does anyone know if Apple is going to issue an update for this? Is my only option to patch together a more recent version of Apache, Mysql, and PHP to patch this?
    Or is Apple's answer to my dilemma is to just upgrade to Leopard?
    Thanks for your comments.

    Your choices here fairly limited; there's the upgrade Leopard, loading (for instance) the [MAMP|http://mamp.info] kit or other such kit and shut down the integrated stuff within Mac OS X Server, or rolling your own Apache and related pieces. If these are Intel Xserve boxes, then you could tactfully and officially drag your heels for a couple of months and upgrade to Snow Leopard.

  • Apache/MySQL/PHP and Mountain Lion

    I was about to buy Mountain Lion, but I just read by a reviewer that there is an issue with the webserver or websharing capabilities of it. The reviewer was saying he/she had to go into the terminal and launch it from there!
    Is anybody else having issues with developing database driven sites on Mountain Lion, or are you getting on OK with it?
    I currently use xammp as my apache/mysql/php server. Is anybody on Mountain Lion using xammp, if not, what equivalent are you using?
    Thanks.
    Mat

    Starting Apache is very easy. Simply type the following into a terminal:
    sudo apachectl start
    I think that they removed the tick box because it's so easy to do from terminal, and not something that most OSX users need.
    As SnakEyez02 mentioned, using a package like MAMP or XAMPP doesn't require this. Those apps run their own Apache

  • Ssh, sshd, and Apache Enable OpenSSL pkcs11 Engine by Default on T4, T4+ Platforms (18762585, 18764604)

    Hi,
    so I followed the advice in ssh, sshd, and Apache Enable OpenSSL pkcs11 Engine by Default on T4, T4+ Platforms (18762585, 18764604) - Oracle® Solari… and turned off UseOpenSSLEngine in /etc/ssh/sshd_config (Solaris 11.2 x86, AES-NI capable Intel CPU)…
    Now dtrace shows me this:
    root@sol112:~# ps -ef | grep ssh
      raider 18807 18806   0 03:02:43 ?           0:00 /usr/lib/ssh/sshd
    root@sol112:~# dtrace -n 'pid$target:::entry { @[probemod, probefunc] = count(); }' -p 18807
      libcrypto.so.1.0.0                                  AES_encrypt                                                  481299
      libcrypto.so.1.0.0                                  _sse_AES_encrypt_compact                                     481299
      sshd                                                ssh_ctr_inc                                                  481299
    Honestly, I was expecting AES-NI and not SSE calls… Could someone please tell me what's wrong?
    root@sol112:~# nm /lib/openssl/default/libcrypto.so.1.0.0 | grep -i aesni
    [1302]  |   1406040|        52|OBJT |LOCL |0    |21     |aesni_128_ctr

  • Apache shows PHP files sources instead of running them.

    I've installed MySQL, Apache and PHP. All the configuration mentioned in Arch WiKi for LAMP seems to be done. But instead of executing PHP scripts Apache shows their sources as plain text. What can cause such a problem?

    I got the same problem, before I realize that by double clicking on my file opens it in firefox, but with
    "file://......"
    instead of
    "http://localhost/...."
    so the file was not interpreted by php.

  • Apache and PHP Security Scans

    I am now required to keep up with the latest versions of Apache and PHP on my Xserves for security reasons. Is there an easy way to do this?

    In order to keep up with security updates you'll have to install your own apache and php and stop using the ones that comes with Mac OS X (i think it is a good idea to do that anyway).
    Fortunately there are tools out there that will help you.
    I use macports, (http://macports.org) but if you decide to use it you will no longer be able to start, stop and control apache from the Server Admin interface. (there is actually a way to continue to do it but it will break at any system update you run).
    If you are comfortable controlling the server with the command line you'll like it very much and at the end feel it is a great improvement over the apache/php that ships with OS X.
    There is also Fink (http://www.finkproject.org/) but i have never used it so i can't say if it will work well or not and i'm sure it will also prevent you from using the Server Admin.
    Good luck.

  • How to enable php

    I am trying to enable php on my macbook with Lion 10.7.  I have found and changed the http.conf file, but I can't save the changes.  My computer tells me I don't have permission, but it doesn't give me any pop up to confirm my permission.  Can anyone help.

    Well, first make sure that you are accessing the PHP through the browser with an URL that begins with 'http' or 'https'. If you access it through Finder, or opening it directly in your browser, the web server (that would normally process the PHP script), is completely bypassed.
    If that's not the issue, open Terminal.app. Type
    grep -i php /etc/apache2/httpd.conf
    The result should be
    {quote}
    LoadModule php5_module libexec/apache2/libphp5.so
    {quote}
    If you see a '#' at the beginning of the line, the PHP module was disabled. You need to edit /etc/apache2/httpd.conf and remove the '#' (in the terminal, type 'sudo nano /etc/apache2/httpd.conf').
    While you are at it, also do
    grep -i apache2/other /etc/apache2/httpd.conf
    ... and if it doesn't look like this
    {quote}
    Include /private/etc/apache2/other/*.conf
    {quote}
    Edit the file and add that line.
    If that's OK, then type
    cat /etc/apache2/other/php5.conf
    That should look like this
    {quote}
    <IfModule php5_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
    DirectoryIndex index.html index.php
    </IfModule>
    </IfModule>
    {quote}
    ... if not, edit that file and make it look like it is above. Once all that is done, go to System Preferences, click on the Sharing icon, and uncheck Web Sharing, then check it again a couple of seconds later (to restart the web server).

Maybe you are looking for

  • How to get the ROWID in a Trigger?

    On Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit when I try below script I always get the same Rowid as "AAAAAAAAAAAAAAAAAA". Is this normal? Thank you. create table testrowid (a number ); create or replace trigger testrowidbins b

  • Error message when connecting to Itunes

    Keep getting this error message when connecting. [IMG]http://img813.imageshack.us/img813/2214/ipod.png[/IMG] I have uninstalled and reinstalled twice now. Its an Ipod Touch 8GB with front and back camera. Thanks

  • Flash 10.1 installs in Vista and XP but will not play some content

    I started this morning by thinking the problem I am experiencing with Flash Player 10.1 is a version of the problem discussed in this forum  under "Flash 10.1 not working in User account."  I now recognize that it is a different problem. First, FP 10

  • Adobe needs to be more helpful

    Just bought Premier CC. I used Premier back in the days when it was on 3.5 inch floppies and decided to move on from FCP. I'm trying to use it on an i7 Sony laptop with cuda. Technically, it seems to be a good system with a horrible interface. Adobe

  • Sdk 4.6 mobile viewMenuItem

    Hello, I was using sdk 4.5 with view that contains: <s:viewMenuItems>         <s:ViewMenuItem label="Ocorrência de Não Venda" click="viewmenuitem1_clickHandler(event)" id="menuItem"/> </s:viewMenuItems> Until flex 4.5  this works perfect in my androi