Apache php mysql installation on arch

does anyone have a tutorial on how to install :
- apache
- php
- mysql
on Archlinux
i have installed apache
pacman -S apache
pacman -S php
pacman -S mysql
but apache won't start : /etc/rc.d/httpd start - it gives me FAIL
and when i try httpd it give a nasty error
httpd: arp_sockaddr_info_get() failed for pufos (pufos - the linux box name)
httpd: Could not reliably determine the server's fully qualified domain name , using 127.0.0.1 for ServerName
is because i didnt configureg good httpd.conf or what
anyway , a tutorial for installing apache php and mysql would be perfect.
Thank guys

pacman -S mysql
/etc/rc.d/mysqld start
:: Adding mysql group
/etc/rc.d/mysqld: line 14: groupadd: command not found
:: Adding mysql user
/etc/rc.d/mysqld: line 19: useradd: command not found
chown: 'mysql.mysql': invalid user
:: Starting MySQL [FAIL]
omg , if the mysql installed through pacman get stuck cause 'useradd' does not exist as a command .... huuuh
??? any sugestions ?

Similar Messages

  • Problems with Apache PHP Mysql

    I tried doing an upgrade from Tiger to Leopard server but was having lots of issues while working with the virtual sites I have hosted. I tried a clean install and I was still unable to get Apache php and mysql to work together. Each service was starting fine but when I would try to run a php file it would only display a white page. Under the upgrade instead of displaying the page it was downloading any page I tried to load.
    In the new clean install I enabled phplib5 through server admin but even a simple info.php file with <?php phpinfo(); ?> was only giving me a white page. I dont know if mysql was interfacing with php and apache at this point cause I could not get any further. I mainly just want to be able to run wordpress which is a php blog that uses a mysql database.
    I have heard some people talking about mamp installs and not using the stock web services but I did not know if that would be a smart route to take.

    well the problem come in that you could end out with multiple releases of the same application when the idea is to make one package "stable"
    would you rather have a debain package data base that has seventeen apache's or one stable full featured apache?
    as for a server/stable tree for production machines this is coming. implimentation is not the trouble it is time that is a factor.

  • Apache php mysql mac 10.4.8 client

    does anyone know the version of php mysql and apache on 10.4.8 if it's shipped with osx and how to upgrade them
      Mac OS X (10.4.8)  

    mysql is not shipped... unless youre talking about osx server then it may be.
    php is 4.4.1 and the path is /usr/bin/php and /usr/lib/php
    apache is 1.3.33 and the relevant paths are /usr/libexec/httpd and /usr/sbin
    I wouldnt reommmend upgrading any of them because its possible they could be broken by future system updates, although i dont specifically know of this ever happening. but for development purpouses its better to isolate your environment. Instead of upgrading the system versions i would recommend installing the versions you wish into /usr/local and jsut setting things up to run from there. Marc Lyiange's php packages do this for you by default (www.entropy.ch). MySQL also comes as a mac binary and installs into /usr/local. As for Apache that will require some configuration What i would do is install it into usr/local. Then i would rename /usr/sbin/httpd to /usr/sbin/httpd-1.3.33 and /usr/sbin/apachectl to /usr/sbin/apachectl-1.3.33. then make symlinks to /usr/local/apachedir/bin/apachectl and /usr/local/bin/httpd to /usr/sbin/httpd and /usr/sbin/apachectl.
    Of course you could always change the appropriate plists to just run your version of apache but i dont know what those are off hand. For what its worth unless you need a particular module thats not supported on 1.3.33 i wouldnt even mees with apache 2.0. its jsut not worth the effort in my opinion.

  • How to set up a PHP/mySQL "server" in arch?

    Hi,
    I know its a wide question, and i may have to go to different howtos and such, but as this distro is different from the others there might be some differences in that.
    If i want to run a PHP based site in mozilla and the site is hosted in my machine, do i need to do something real strange to make it work ?
    if you can post any link to some info, it wont hurt. and yes i will google anyway!

    sud_crow wrote:If i want to run a PHP based site in mozilla and the site is hosted in my machine, do i need to do something real strange to make it work?
    I am running Apche/PHP/MySQL on my machine and simple to setup. Few things requires to know. It can be done in different way. This is how I do including how to test the server(s). Host name is: "localhost". If anything is missing, please let me know.
    <b>INSTALL:</b>
    pacman -S apache
    pacman -S php
    pacman -S mysql
    <b>APACHE:</b>
    <b>1. </b>Add the following line in /etc/httpd/conf/httpd.conf :
    LoadModule php4_module /usr/lib/apache/libphp4.so
    AddModule mod_php4.c
    AddType application/x-httpd-php .php
    <b>2.</b> Add line in /etc/host :
    127.0.0.1 localhost.localdomain localhost
    <b>3.</b> Edit /etc/rc.conf :
    # Networking
    HOSTNAME="localhost"
    <b>4.</b> Run in terminal (root):
    # /etc/rc.d/httpd start
    <b>5.</b> Edit /etc/httpd/conf/httpd.conf (close "AddModule mod_php4.c"):
    LoadModule php4_module /usr/lib/apache/libphp4.so
    # AddModule mod_php4.c
    AddType application/x-httpd-php .php
    <b>6.</b> Add line in /etc/rc.local (to start at boot):
    /etc/rc.d/httpd start
    <b>Test</b> Apache:
    http://localhost/
    <b>PHP:</b>
    <b>1.</b> Edit /usr/etc/php.ini (open the mysql extension):
    extension=mysql.so
    Test PHP with a simple script:
    <html>
    This is a test. Say hello to Arch:
    <p>
    <body>
    <?php
    $myvar = "Hello Arch Linux";
    echo $myvar;
    ?>
    </body>
    </html>
    Save the file as "test.php" and copy to /home/httpd/html/
    <b>Test</b> PHP:
    http://localhost/test.php
    <b>MySQL:</b>
    <b>1.</b> Run in terminal:
    # /etc/rc.d/mysqld start
    <b>2.</b> Add line in /etc/rc.local (to start at boot):
    /etc/rc.d/mysqld start
    <b>Test</b> MySQL
    Run in terminal (don't enter any password):
    # mysql -p
    <b>Note:</b> Change the /var/lib/mysql directory to user "mysql" if not getting MySQL to run.
    <b>For more information</b> (if new in PHP/MySQL):
    http://hotwired.lycos.com/webmonkey/99/21/index2a.html

  • Does 10.4.7 break PHP/MySQL installations like 10.4.6?

    Our server is still using 10.4.5 because I didn't have the time or inclination to deal with the reported broken PHP installations, etc.
    Am I still going to have the same problem going from 10.4.5 to 10.4.7?

    It appears that you think there was a widespread problem with PHP/MySQL when upgrading from 10.4.5 to 10.4.6. I did not suffer from this, nor hear much about it. Perhaps it was a bit more specific to your config? Why don't you tell us about your previous problem.

  • Apache, PHP, MySQL, phpMyAdmin

    Hi, I'm upgrading to snow leopard and I want to setup my local webserver but I had some problem with phpmyadmin and mysql.
    I've activated the pre-installed apache server from the system preferences panel and I've uncommented the load module of the php5 from the httpd.conf.
    Which version of MySQL I have to use? And how can I configure the phpMyAdmin?
    I've done this on my macbook with leopard, but I'm not beb able to do it on my iMac with snow leopard.

    raskolnikov wrote:
    Log files are in /var/log/httpd/, you should check at least error_log
    LAMP works for me, so it may be a configuration issue.
    Umm.. well I know where the log files are for apache, but they're unlikely to help me fix mpd   I found the .error and .log files for mpd, they're in $HOME/.mpd/ , but they're both empty! This is really frustrating.. what the hell can it be? mpd was fine yesterday.. it connects on the default port, 6600, is it possible that one of the LAMP pieces of software is interfering with this? Yet if that were the case, surely me stopping all the LAMP-related daemons would allow me to start mpd...
    The only other thing I've change since yesterday is my /etc/hosts:
    127.0.0.1 localhost.localdomain localhost kaminoitte
    That's fine though, isn't it?
    Gaargh, this is doing my head in   :evil:
    EDIT:  Aah.. it might be a groups problem.. maybe. I've got it in my mpd.conf to run under user 'dave', but I accidentally used 'useradd' instead of 'usermod' yesterday when adding myself to the mysql group I made, so I may be missing from one of the necessary groups. I added myself back to optical and video yesterday.. would someone using mpd be good enough to post 'grep [mpd_username] /etc/groups' for me?
    EDIT2 (1 minute later): Hehe, I just noticed I didn't add myself back to 'audio'... what a muppet. Problem solved!  XD

  • Apache + php + mysql

    Hello
    I´m an web designer and need those programas all offline time.
    It would be so nice have it on my Ipad.
    I search how to install those programs without jailbreak.
    Do i really need to use jailbreak to install that?
    I really don´t want to. Any one can help how to install it?
    Is there LEGAL app or way to do that?

    So IOS does not support... Thank you.
    I don´t want to attempt to develop with Ipad. I can't for the life of me too understand why anyone would even want to attempt to develop on a tablet.
    In deed, a portable web server is the solution of my dreams. A notebook is to large and hard to keep it useful. Today  i need a notebook with apache an Wi-Fi router and another device to administrate data in offline meetings. I hope some day sync two idevices using one as webserver.

  • PHP/MySQL issue after security update 2010-005

    Hello,
    I run Apache/PHP/MySQL on my MBP for testing Web sites.
    After the 2010-005 security update I can't connect to my databases anymore.
    I don't know how to fix this, I even don't know where to start looking.
    Ideas, anyone?

    coloma wrote:
    etresoft, thanks for sharing this ... I decided to go with the TriangleJuice suggestion instead for two reasons ... first is that I wasn't sure where to find this launchd file.
    There is nothing wrong with TriangleJuice's suggestion. My only issue with creating a php.ini file is that now I have to worry about all those other settings in the ini file. If something else in PHP breaks, I have to figure out if I am the one who broke it.
    Apple ships MySQL with MacOS X Server. They probably adjusted the PHP settings to match how they have MySQL setup in MacOS X Server.
    For MySQL's, no, Sun's - drat! no, Oracle's part, they still haven't acknowledged the fact that Apple has shipped MacOS X 10.4. MySQL still ships with a Startup Item. If you don't know where the launchd file is, it is because you don't have one. You probably have a MySQL entry in /Library/StartupItems or maybe /System/Library/StartupItems. Startup Items were deprecated in 10.4. Oracle should be creating a file named com.mysql.mysqld.plist in /Library/LaunchDaemons.
    Here is what mine looks like now:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>KeepAlive</key>
    <true/>
    <key>Label</key>
    <string>com.mysql.mysqld</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/local/mysql/bin/mysqld</string>
    <string>--socket=/var/mysql/mysql.sock</string>
    <string>--basedir=/usr/local/mysql</string>
    <string>--datadir=/usr/local/mysql/data</string>
    <string>--user=mysql</string>
    <string>--log-error=/usr/local/mysql/data/Pele.local.err</string>
    <string>--pid-file=/usr/local/mysql/data/Pele.local.pid</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>
    I also don't have a /var/mysql directory and wasn't sure whether I should just create one or if this meant my configuration was different. If you feel like explaining any of this, I'd be curious to know.
    You have to create one. Such a directory probably already exists on MacOS X Server. Just make sure it is owned by mysql.
    sudo mkdir /var/mysql
    sudo chown _mysql:staff /var/mysql
    sudo chmod 0755 /var/mysql
    [jdaniel@Pele:516] /var $ ls -al /private/var | grep mysql
    drwxr-xr-x 3 _mysql staff 102 Aug 26 20:03 mysql
    Of course, /var is a symbolic link to /private/var. Long story there.

  • Apache2, PHP, MySQL Help

    Hi,
    Sorry if this is a bit of a newbie thing todo but I am not too good with solaris configuration yet.
    Can anyone supply a decent step by step and easy tutorial/how-to on how to set up Apache, PHP, MySQL and PHPmyadmin on a SPARC solaris 10 box please...
    Thanks Rob

    Can anyone supply a decent step by step and easy
    tutorial/how-to on how to set up Apache, PHP, MySQL
    and PHPmyadmin on a SPARC solaris 10 box please...Setting up Apache is very easy since all it takes is setting it up. Its installed by default, you can check /etc/apache for an example configuration file. Next to that www.apache.org/docs/ is also a very valuable read.
    <blunt SPAM>
    You could also consider looking into the Java webserver (formely SunONE). Its currently being made available for free with the Java Enterprise System and compares very well to Apache. If you'll also be doing some Java it would be a better choice (IMO its a better choice than Tomcat) and it can also do PHP.
    http://www.sun.com/software/products/web_srvr/home_web_srvr.xml
    http://www.zend.com/sun/?article=/sun/index.php&kind=&id=6179&open=1&anc=0&view=1
    http://www.php.net/
    </SPAM>
    As you'll note I included the PHP website because with the above setup you'd also need to manually setup PHP. If you have the companion CD present you can install the PHP module which will end up on /opt/sfw/apache. This directory will also present you a php.ini example which will need to be placed in /etc/apache as well. Setting it up is basicly following the documentation in the ini file, and the Apache documentation on adding an extra module (/opt/sfw/apache/libexec/libphp4.so).
    MySQL. Also very easy since its shipped with Solaris as well. Look into /etc/sfw/mysql for a README which covers the most essential steps to set it up. In short you'll need to setup a few directories for MySQL to work and optionally (but recommended) copy the default config file to /etc (/etc/my.cnf) which will define certain basic settings. The readme explains. Next you're likely to need the MySQL guide (if you're new with MySQL) which can be located at http://dev.mysql.com/doc/refman/4.1/en/index.html.
    This applies to the version (close enough anyway) which is shipped with Solaris. From personal experience I can say that MySQL 5 will also run very well on Solaris 10.
    Finally the PHPMyadmin... That really is an RTFM issue, once you have your environment setup (Apache and the likes) its likely you only need to copy it to your document root and point your browser to it.
    Hopes this helps somewhat.

  • How to create php/apache/mysql installer with AIR

    Dear Flexer,
    I'd like to use AIR to create my own web tools installer (like mamp, wammp...).
    But I have no idea how to do that.
    Can you help me?
    Thanks

    There's a tutorial here:
    http://www.php-mysql-tutorial.com/wikis/php-tutorial/installing-php-and-mysql.aspx
    That said, why go through all the trouble? There are a number of applications out there than install and configure Apache, PHP, and MySQL for you.

  • How to install and configure latest xampp, php, Mysql, apache server, and configure it with dreamvie

    Working on my next project for the tech blog Techmozilla I am trying to make php to work with Apache. . i surfed for the procedures and finally i was asked to do the below mentioned operation .. but i am unable to understand it can anyone please help me .I am using Windows XP
    # Add the following 3 lines to your httpd.conf file. You can put them anywhere in the file but maybe it makes sense to put them after the other LoadModule section.
    LoadModule php5_module "d:/Program Files/php/php5apache2_2.dll"
    AddType application/x-httpd-php .php
    PHPIniDir "D:\Program Files\php"
    Is there any other link which helps to install PHP,Apache and MySql. Please help me. Thank you in advance

    This forum is for helping people who are trying to download and install Adobe software products.  You need to find an information resource suitable to the task you are undertaking, most probably provided by whomever provided the resource(s) you are trying to install.

  • How to update PHP, MySQL or Apache

    The Mac OS X 10.6.2 system does not include the latest versions of PHP, MySQL or Apache.
    What is the recommended update procedure for PHP, MySQL or Apache:
    a) automatically by Mac OS X system (is this possible?) or
    b) manually by the administrator (are there any documentations?)
    Many thanks.
    Actual system versions:
    Mac OS X 10.6.2
    MySQL 5.0.82
    Apache 2.2

    Hi, Thanks for your answer.
    That sounds Apple do not seriously release updates of third party packages shipped with the system (like Apache, mySQL ...) very often.
    To use month or year old packages in a web environment is a big risk, e.g. mySQL actual official version is V5.50 / mySQL Version shipped and updated by Mac OS X 10.6.2 Server is V5.0.82).
    The same with Apache and PHP, both are packages included in Mac OS X Snow Leopard Server product by Apple and are included in a old version.
    And when manually updates by the administrator of the server system do not work well or are not supported by the OS X Server system (as I understand your posting), the administrator can not act to improve and secure the system.
    That can only lead to one conclusion: Apple's Mac OS X Snow Leopard Server should not be used in a productive, internet faced web environment.
    Is this true? I do not want to believe this!?
    Is there really no official supported or documented procedure by Apple to keep the integrated third party components updated?
    I'd like to prefer Mac OS X Server odd Linux distribution because it seems more handy to administrate and to use, e.g. tools like Server Admin. These tools are an advantage of Mac OS X Server.

  • "best practice" documentation for installing/upgrading Apache 2, php, mysql

    does any documentation exist for the recommendation procedures for installing/upgrading Apache 2, mysql, php ???
    thanks

    Yes me also
    MacBook Pro 15", iMac 24", G4 Dual 867   Mac OS X (10.4.9)  

  • Ruby | Php | Mysql on iMac Apache

    Hello,
    I am a developer who is trying to get my iMac to run local versions of all the languages I use.
    I have been successful in the following:
    Establishing Ruby and mysql on the built in apache server
    Installing MAMP to serve as the php, mysql machine
    This has left me with a problem.
    I have two versions of mysql on my machine, and they are independent. What I would like is to consolidate, preferably by getting php to run on the built in apache. I have been unsuccessful in my attempts to compile and make php.
    A worst case scenario would be telling phpMyAdmin on MAMP to read from the mysql database on the built in server.
    The Goal: access my Ruby on Rails databases through phpMyAdmin.
    Any suggestions, links or points in the right direction would be greatly appreciated!
    Thanks.

    PHP isn't enabled. You have to go into /etc/httpd.conf and uncomment a couple of lines.
    10.4.11 has PHP 4 I think. It does not have GD. I see many posts here with people trying to build their own PHP with gd and failing miserably. I've tried to explain to people how to do it, but they want a 3 minute fix. A 30 minute fix just isn't good enough and they will spend weeks trying to get the 3 minute fix to work.
    Here is what you do:
    1) Enable PHP by uncommenting
    # LoadModule php4_module libexec/httpd/libphp4.so
    and
    # AddModule mod_php4.c
    2) Restart Apache via "sudo apachectl restart" or turning Web Sharing off and back on.
    3) Create the standard phptest.php file containing only "<? phpinfo() ?>" and open it in a browser.
    hopefully you'll see everything you need. If you need to add additional modules:
    4) Go to Apple's open source page, select the appropriate directory for your OS and processor.
    5) Download the "apachemodphp-18.8" project (note this is PHP4, if you want 5, download it from the 10.5 directory - it should work).
    6) Collect the additional, non-default packages you want to use. Build and install them via regular configure, make, make install.
    7) Inspect the Makefile that comes with the Apple PHP. I don't know if the Makefile will work or not. It may need other parts of the darwin open-source environment. It does have the configure options used to build PHP. Go into the PHP directory, and configure using Apple's options and any additional options of your own, make, and make install.
    There are many other threads dealing with PHP and GD but almost everyone is trying to hack up something they got from Fink. If you need to hack around with things, it would be better to start with Apple's default settings and the default settings of any 3rd party libraries.

  • Trying to get Apache, PHP and MySQL up and running

    I have just bought a new MacBook and I want to set up Apache, PHP and MySQL in order to create a local mirror of a website I have in my 'Sites' folder.
    I fall at the first fence!! To get Apache, I switch web sharing on in System Preferences' and I get the green light. When I click the links for personal website or computer's website I get a "Safari can't connect to the server" message.
    Any ideas what I should do now?

    Stephen Dancer wrote:
    Any ideas what I should do now?
    You will need to make some change to the index file in your Sites directory in order to enable Apache for that directory.
    You will have to enable PHP in the Apache config file at /etc/apache2/httpd.conf
    For MySQL, you will have to install it, and then fix it. You'll want to remove the StartupItem it wants to use and replace it with a launchd file. This discussion has a good roundup of the very latest tricks to get MySQL up and running with the latest security updates.

Maybe you are looking for