[SOLVED] How to get an apache that recognizes php, how to init mysql.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
How to get an apache that recognizes php, how to init mysql.
I want to have apache + php + mysql.
My apache does not recognize php and mysql is only partially installed.
Php works but not thru apache. The apache conf file has no reference to it.
I'm on fedora 18.104.22.168-127.fc12.i686.
In case it matters, I insalled some security updates that created a defective later version -
22.214.171.124 which loops and displays garbage. At startup I interrupt grub and tell it to run the
old one. I would remove the defective one but don't know how. I'm an experienced systems
programmer with almost no unix time. (pdp8-os8, pdp11-rsx, tandem-tal, vax-vms,os360, etc)
I ran yum install mysql-develop -- with no understanding of what it did.
If in super user mode I type 'mysql - v' it responds
ERROR 2002 (HY000) Can't connect to local MySql server through
If I could load a pre asembled apache that would be ideal.
My primary question - what is the easiest (i.e. least needing of unix expertise) way
to get the apache I want. If necessary I will wade thru the documentation
apparently needed to assemble it, but am in hope that there is a less time consuming way.
( Friend with Windows merely loaded 'wamp' and was immeditely up and running.)
Maybe someone can suggest the way to get there with minimum unix expertise.
Secondary issue - how to get mysql functioning - I suspect that a little research would
solve this one, but if a friendly expert has some advice I would be happy to take it.
Do you have mod_php installed? If you do it should be in /etc/apache2/mods-available/.
this setup you describe is the debian way.
in fedora (red hat, centos, etc.) it should be in
and is called libphp5.so instead of mod_php.so (at least on my centos box here right now)
substitute lib/ for lib64/ on an x86_64 box.
php installation should add the php.conf file to
yum install httpd mysql mysql-server php -- and
when I run a test php page on local host - it works - apache sees php
it does not show mysql as one of the services
when I run the same test page on godaddy where I have a page
it comes back with a section that describes the mysql service
GO DADDY shows the following - there is no such info on localhost
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.18
MYSQL_LIBS -L/usr/local/mysql-5.0/lib/mysql -lmysqlclient
Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off
Fantastic - i typed yum install php-mysql and
it installed php-pdo and php-mysql and now
I also have mysql on my display
regarding godaddy, they are on linux - following from godaddy
PHP Version 4.4.9
System Linux p3slh016.shr.phx3.secureserver.net 2.4.21-63.ELsmp #1 SMP Tue Nov 3 18:23:59 EST 2009 i686
Build Date Jun 16 2010 14:35:02
Configure Command './configure' '--with-cgi' '--enable-fastcgi' '--with-config-file-path=/web/conf' '--with-gd' '--with-xml' '--with-gettext' '--with-zlib-dir=/usr/src/zlib' '--disable-posix' '--with-jpeg-dir=../jpeg-6b' '--enable-gd-native-ttf' '--enable-ftp' '--with-freetype-dir=/usr' '--with-freetype' '--with-sybase=/usr/src/freetds' '--with-curl=/usr/bin/curl' '--with-dom' '--enable-calendar' '--enable-soap' '--enable-bcmath' '--with-zip' '--with-openssl' '--with-mcrypt' '--with-mysql=/usr/local/mysql-5.0'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /home/content/d/i/c/dickknox/html/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies
My problem is solved - somewhere there is a way to tell the system I'll post and find the way