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

Similar Messages

  • How to set up SAPconnect with email server

    Hi,
    Does any one know <b>how to set up SAPconnect with email server</b>
    We are using workflow and when it fails it we are sending the notification mail to the user on his company mail id, i.e. [email protected]
    This is working in the current production system. We are doing the new development which will replace the current production system. The existing Basis team does not know how it was setup in production system and how to set it up in the new system.
    When we send any mail notification from workflow we can see the mail in SCOT transaction but it is not received at the specified mail address.
    Can any one provide the configuration steps or any document for this.
    Thanks in advance..
    Pratik

    Hi Pratik,
    Check the following link:-
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    these link will help u to config SMTP.
    And one more thing u have to do..
    Go to SE11 n open Table sxnodes in change mode.
    And change F_ESMTP field to false i.e. BLANK for the Field NODE = SMTP.
    Hope this will work For U.
    Regards
    Sachin Dhingra

  • How do set operation timeout in tomcat server?

    hi all
    suppose i have one endless loop program(jsp) that program run under tomcat server,
    so it's keep on runing in tomcat server.
    i want, after some time the server send error message like operation timeout.
    how do set operation timeout in tomcat server?
    if anybody know help me.
    my mail id [email protected]

    Well, the server.xml file has connection time outs, but that is for idle time, I think... I'm not sure what would happen in a loop... , especially if you are sending some data back to the client in each iteration. Generally you shouldn't be starting a loop that will really run forever. Maybe have some type of counter to break out if something hasn't occurred within x iterations, or create a separate thread that can sleep for x seconds and set a flag to break the loop after that time.

  • How to set up the "incoming Mail server" for google apss account

    how to set up the "incoming Mail server" for google apss account

    The settings are not generic for all webmail accounts, only your office IT department would know what the server address is for their outgoing email server.  You'll have to ask them about it.

  • How to set class path for mysql

    hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java and run java abc.
    when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.

    hai, I have been trying to make a java program read
    from mysql database. but i don't know how to set the
    class path for mysql-connector-java-5_1_.0.6-bin. i
    set the class path in system variable as C:\Program
    Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-jav
    a-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java
    and run java abc.
    when run it come out error
    java.lang.ClassNotFoundException:
    com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
    Goto properties->advanced->environment variables.
    Look for 'classpath' under system variable.
    Select it and click edit.
    put ';' and path of the mysql connector jar at the end
    suppose if u have jar file under d:/driver/mysqlconnector.jar
    thn put this value in variable value text box
    ;d:/driver/mysqlconnector.jar
    or simply put ur driver jar file in jre/lib/ext folder
    D:\j2sdk1.4.2_03\jre\lib\ext
    [Servlet tutorial|http://www.jsptube.com]

  • How to set the CLASSPATH in Unix Server

    Hi, everyone~
    Do anyone noe how to set the CLASSPATH in the hp-ux server? I tried the setenv CLASSPATH, but not working.. I think should use export. But my jsp pages still cannot working, dunnoe y?
    I wonder is the hp-ux support jsp and servlet or not?
    In order to let the jsp and servlet to run properly in the unix server, what kinds of steps should taken ?
    Hope somemore who experience with this situation b4 can give me some guidance.. Thanks~~
    regards,
    tzeyik

    Tomcat ignores any and all CLASSPATH environment variables. Even if you could figure out how to set it, Tomcat wouldn't use it.
    Better to learn how Tomcat's CLASSPATH works and how to deploy Web apps properly. - MOD

  • How to Set "delete from hub and server" for each account

    How can I set "delete from hub and server" differently for each account?
    I have 3 emails (2 shared, 1 personal).
    the personal is a 'hotmail' account which has device set to 'sync email', 'push', and 'Use SSL'.
    it will only sync one way (from desktop to device).
    I cannot set the global setting on the device to "delete from Hub and server" without affecting all accounts.
    I do not want to have to confirm delete on every item.
    previous to the 10.3 update this was not an issue.
    am i missing something? or is this another step backwards?

    The only other way would be to set it to prompt every time you get an email. Yeah, I know that defeats the purpose.. I guess in this aspect it is a step back

  • How to set ACLs on Remote MAC server Volumes..

    Hi,
    I have Mac OS X server v 10.5 Leopard. Initially I have enabled the ACLs using fsaclctl on the MAC server volume. When this volume gets mounted(through afp) on some other MAC client(MAC OS X 10.4 Tiger), the ACL status is shown as disabled. And it not allowing to set the ACLs on the remote volume from the client side.
    I have used the following command to enable ACLs from Client.
    sudo fsaclctl -p /Volumes/<server Volume> -e
    This failed as "not supported".
    Anyone knows how to set the ACLs on the remote MAC server volumes? Basically I want to see ACL working on Remote MAC server volumes.

    Hi
    +". . . remote MAC server volumes . . ."+
    Are you saying you are trying to enable ACLs on volumes shared by another OSX Server when volumes are mounted on the server in question?
    Or are saying you can't see if ACLs on mounted volumes when issuing ls -lae for example?
    You might want to read:
    http://discussions.apple.com/thread.jspa?messageID=648307&#648307
    http://discussions.apple.com/thread.jspa?messageID=1535247
    and
    http://discussions.apple.com/message.jspa?messageID=8456140#8456140
    http://discussions.apple.com/message.jspa?messageID=8340573#8340573
    http://discussions.apple.com/message.jspa?messageID=7777878#7777878
    Tony

  • How to Set CLASSPATH in Apache Web Server Using IAS

    Hi,
    I have problem setting the classpath for the servlet I am using for file uploading...My work environment is Web Server is Apache with Oracle8i IAS on Sun Solaris..
    I have tried various method like setting wrapper.classpath=/oracle/ias/Apache/Jserv/servlets and my class resides under /oracle/ias/Apache/Jserv/servlets/com/oreilly/servlets/MultipartRequest.class
    in the Jserv.properties, still it get the error message class ...not found in type declaration when I compile the code...my reference to the servlet in my JSP code is com.oreilly.servlet.MultipartRequest ..
    Can someone help me out please, if you have have any idea of how to set the class path with the working environment I have specified ealier....
    null

    have you posted this on the ias 9i forum where the ias 9i apache experts are at ??

  • How to set the priority for Commit Server?

    Hi all,
    I want to know how to set up the priority for committing documents.
    I'm having two different odc applications and i want to commit documents belongs to one application (URGENT) as soon as it has complete the indexing. (I'm running commit server every second for this (URGENT) application).
    But once the commit server start to commit batches belongs to one application it continues until finishes, and then only it switch to the URGENT application even though indexed documents are there.I have tested with batch priority, Batch status fields in commit server.
    What is exactly happen in setting batch priority ?
    How do i switch commit serve to run urgent batches (which is belongs to another application) as soon as indexed??
    I can use ODC or ODDC.
    Thank You.....

    Don't worry - I'm more think aloud, so it is more a hypothesis than a solution.
    You write that
    We are using ODC to Index the documentsWhat exactly does this mean? If it means that a user types in metadata values, then you could take a look whether those metadata are needed for the item to be checked in (like the mentioned security group), or whether it is "other" metadata (e.g. supplier, invoice number, etc.) that you could, in theory, fill in in your application in IPM - imagine that you use IPM to check in the document and all you have is a TIFF.
    Btw. you also write that
    (we) use Input agent to sent documents to IPMI thought that ODC (Commit Profile) does this work for you, or not? If you use ODC to commit to a disk, and Input agent to get it from a disk to IPM, how about using a direct commit profile to IPM?

  • 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 ?

  • How do i set up a PHP,MYSQL,Apachie server on my macbook

    I play a well known MMORPG (WoW) and my guild recently lost there site due to owner of the site leaving the guild, i had previously mentioned i had a little experience in designing but not developing so they asked me to develop a web site for the guild with DKP (Dragon Kill Points like currency) info, Forum and other features.
    basiclly most of the work is done on the site design wise and mockups i just now have to create a forum, so i found an online document showing step by step forum development (using Dreamweaver 8 and impAKT) but a pre-req is i have to have a server set up on my system to create it i have no idea about server set up or maintence and i have never had a site published please any help would be much apreciateded on setting up a server. Thank you for your time.

    Apache is already running on your Mac if you are running OS X.
    PHP for Mac OS X is free, and can be downloaded from http://www.entropy.ch/software/macosx/php/. There is some good instructions on installing and testing your installation. It also provides links to PHP add-ons, such as MySQL. Great page. I think it should get you started in the right direction.

  • How to set up my mac mini server to use two drives seamlessly?

    I have a mid 2010 mac mini server, with OSX Lion installed. It has dual 500gb hard drives.
    I've been moving all my important files to it, and I've always assumed that once I filled one disc, it would seamlessly transfer over to the other and continue backing up. This does not seem to be the case.
    I'm at roughly 495gb of data, and when I try to move a 10gb file onto my server, it tells me that I don't have enough disc space to continue the operation.
    What can I do to make use of both drives?
    -Thanks

    It sounds like what you're asking for is to have the two drives in a RAID 0, where the two 500 Gb drives look like a single 1 Tb drive. I'm not sure the exact procedure for installing RAID 0 on a mini's internal drives, but the process would involve backing up, reconfiguring for RAID (which destroys all data,) restoring data from the backup, and more risk than I would personally find acceptable. I'd expect to lose a full day with the backup and restore steps. I can guarantee, there will be pain.
    Instead, I'd suggest looking at what's consuming the 500Gb, and seeing if there are particular folders that can be moved. For example, a shared folder is pretty easy. Copy it over. In file sharing setup, edit the share to point to the new location. Make sure remote users disconnect, and reconnect to the "new" share. When you're happy there is no data loss, delete the old location.
    User's home directories can also move, but the process has a few more steps, and depends on how the accounts are built (local vs. OD)
    If the majority of the data is in a single "your backup files" folder, shared or otherwise, then I would just set up a second folder on the second drive and write to it, leaving the first alone. If it is truly a backup, then you could make the first folder read-only at this point for extra protection. If you go the 2 folder route, keep in mind your boot drive is operating with 1% free space, I like my drives to have at least 15% free, and OS drives more like 25% (you'll find some range in recommended %-free, but most will agree 1% is too little) so move SOME stuff to the new folder, before closing the old.

  • How to set Lion built-in FTP Server auto run off

    Hello all.
    I set FTP Server by using Rumpus Server application.
    But Lion's built-in FTP Server is running on the front.
    So if I try to connect my FTP Server out of my LAN, I can only connect to the built-in FTP Server despite I wanted to connect Rumpus FTP Server.
    It can be solved by unload the built-in FTP Server(using sudo -s launchctl unload...) but every after rebooting I should set it because it is set to run automatically in every booting.
    How can I set the auto run off?

    well, the ftp server (=ftpd) takes account info from the user list for your mac. so, go to the system settings on your mac, then to users, and then just add another user with a password of your choice (tap on the little plus-sign to add a user!). this will then be a valid user for your ftp server after you restart your ftp server.
    the other thing you want to do, about the home directory, is called chroot. you can set the home directory of a specific ftp-user to be another directory then the standard. for this, there are configuration directives in the configuration file in /private/etc/ftpd.conf which you have to edit by hand. so make sure what you do there.
    you should read this before editing the file, this will give you a better understanding of what to put there: https://developer.apple.com/library/mac/documentation/darwin/reference/manpages/ man8/tnftpd.8.html

  • How to set up standalone wireless print server

    I need step-by-step instructions on to set up a KonicaMinolta bizhub multifunction printer to print wirelessly from various Macs. In other words, it would not be hooked up to the internet or my wireless network. I understand this can be done with an AirPort Express or AirPort Extreme. I tried it with a Linksys WPSM54G wireless print server without success. I'd like to try the AirPort Express, but so far haven't been able to get it to work.
    How do I configure my AExp to operate as a print server? How should I have it connected when I do the configuration?
    How do I find the print server's IP address?
    When I plug in the AExp and connect it to the printer via USB, the AExp flashes amber and never turns green (and therefore never connects with the MacBook).
    If I successfully set up the print server as a separate network, can I be connected to the printer and my wireless network at the same time? Or do I need to switch back and forth?
    If I'm accessing the internet via Ethernet, can I simultaneously access the printer via AirPort?
    Any help will be greatly appreciated.

    How do I configure my AExp to operate as a print server?
    The AirPort Express Base Station (AX) or AirPort Extreme Base Station (AEBS) can only operate as a "print" server if the printer is attached to its USB port. Ethernet printers would require their own print server service if connected by Ethernet to either router.
    How should I have it connected when I do the configuration?
    Neither router would need a WAN port connection as both can provide a stand-alone wireless network. For a USB printer, it would need to be connected to the respective router's USB port.
    How do I find the print server's IP address?
    This would be the AirPort's LAN IP address. The default is: 10.0.1.1
    When I plug in the AExp and connect it to the printer via USB, the AExp flashes amber and never turns green (and therefore never connects with the MacBook).
    The flashing amber indicates that the AX has configuration issue. If you temporarily connect your MacBook directly to the AX's Ethernet port, and then, run the AirPort Utility, you can find out what the issue(s) is(are).
    If I successfully set up the print server as a separate network, can I be connected to the printer and my wireless network at the same time? Or do I need to switch back and forth?
    No, you would have to switch wireless networks. One way around this, is to have the AX configured to "Join a wireless network." This mode was specifically designed to allow the AX to perform as a wireless client and simultaneously provide both print sharing and iTunes streaming to network clients.
    If I'm accessing the internet via Ethernet, can I simultaneously access the printer via AirPort?
    Potentially, but your computer and the printer will be on separate broadcast domains/subnets.

Maybe you are looking for