linux/apache/php/mysql setup

linux/apache/php/mysql setup

Post by paul simdar » Sun, 31 Dec 1899 09:00:00



I have ReedHat 6.1 installed .  Apache and mysql are running.  Then I
thought I'd add php to put it all together.  In added the apache-devel
package from the CD and then I went to php.net (I think that was the
place).  They have released php4 and were encouraging everyone to
upgrade to it.  I downloaded the source and installed it.  It went
well.  BUT, now the apache server no longer runs.  Any clues as to what
went wrong?
A second point, one interesting thing I noted along the way was that in
two different documents I looked at each had their command to start
apache.  Neither were recognized by my computer.
Thanks for any help.
Paul

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

 
 
 

linux/apache/php/mysql setup

Post by Wayne Polloc » Sun, 31 Dec 1899 09:00:00


As root, go to the /etc/rc.d/init.d directory
start apache by typing "./httpd start".
Do "ps -ef" and see if it is in fact running.

If so, you need to arrange to have apache start automatically in the
proper runlevels.  Probably leves 3 and 5.  Check your documentation
on how to do that.

If Apache isn't runing, cd to "/etc/httpd/logs" and look at the
error log file.  If you can't figure out how to fix whatever it
reports, post your question again and include the log output.

-Wayne Pollock


> I have ReedHat 6.1 installed .  Apache and mysql are running.  Then I
> thought I'd add php to put it all together.  In added the apache-devel
> package from the CD and then I went to php.net (I think that was the
> place).  They have released php4 and were encouraging everyone to
> upgrade to it.  I downloaded the source and installed it.  It went
> well.  BUT, now the apache server no longer runs.  Any clues as to what
> went wrong?
> A second point, one interesting thing I noted along the way was that in
> two different documents I looked at each had their command to start
> apache.  Neither were recognized by my computer.
> Thanks for any help.
> Paul

> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


 
 
 

linux/apache/php/mysql setup

Post by Dances With Cro » Sun, 31 Dec 1899 09:00:00



>I have ReedHat 6.1 installed .  

        ^^^^^^^
Interesting.  Does it come with X-Basketweaver and GNU Grass-Plaiting?
:-)

Quote:>Apache and mysql are running.  Then I thought I'd add php to put it all
>together.  In added the apache-devel package from the CD and then I
>went to php.net (I think that was the place).  They have released php4
>and were encouraging everyone to upgrade to it.  I downloaded the
>source and installed it.  It went well.  BUT, now the apache server no
>longer runs.  Any clues as to what went wrong?  

It's entirely possible that you have to recompile Apache so that it can
see and use the PHP module you've built.  There's a pretty good guide to
putting together Apache+PHP+MySQL over at
http://hotwired.lycos.com/webmonkey/99/21/index2a_page3.html?tw=progr...
so you may wish to follow that.  I did, and had hardly any problems
getting MySQL+PHP+Apache running well.

Quote:>A second point, one interesting thing I noted along the way was that in
>two different documents I looked at each had their command to start
>apache.  Neither were recognized by my computer.

Yep.  RedHat puts the Apache start script somewhere that isn't quite
standard; do a "locate apachectl" to find out where the apachectl binary
is, then start up your server with "/path/to/apachectl start".  After
finding my apachectl, I made a symlink to /usr/local/sbin/apachectl so
that it would be easily available....

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Those who do not understand Unix are
http://www.brainbench.com     /   condemned to reinvent it, poorly.
-----------------------------/           --Henry Spencer

 
 
 

linux/apache/php/mysql setup

Post by Jeff Davi » Sun, 27 Aug 2000 12:57:00


I have been through a similar process. Can you be a little more specific
about you problem and errors?

in RH6.1, I think you use:
/etc/rc.d/init.d/httpd start
or replace start with restart or stop.

For more help, I will need to know something more than 'the apache server
no longer runs'. Specific error messages and problems you have would be
most helpful.

Regards,
Jeff Davis


> I have ReedHat 6.1 installed .  Apache and mysql are running.  Then I
> thought I'd add php to put it all together.  In added the apache-devel
> package from the CD and then I went to php.net (I think that was the
> place).  They have released php4 and were encouraging everyone to
> upgrade to it.  I downloaded the source and installed it.  It went
> well.  BUT, now the apache server no longer runs.  Any clues as to what
> went wrong?
> A second point, one interesting thing I noted along the way was that in
> two different documents I looked at each had their command to start
> apache.  Neither were recognized by my computer.
> Thanks for any help.
> Paul

> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

 
 
 

linux/apache/php/mysql setup

Post by paul simdar » Sun, 31 Dec 1899 09:00:00



> I have been through a similar process. Can you be a little more specific
> about you problem and errors?

> in RH6.1, I think you use:
> /etc/rc.d/init.d/httpd start
> or replace start with restart or stop.

> For more help, I will need to know something more than 'the apache server
> no longer runs'. Specific error messages and problems you have would be
> most helpful.

> Regards,
> Jeff Davis

> > -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> > http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> > -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

Well, the command above was correct (. . . ./httpd restart).   And your
suggestion regarding more info was good.  I looked in the log file.  I had
just assumed it was not running because when I typed in my localhost name it
said it could not find that URL. But it is running according to the log and
also 'ps' shows that it is running.   So, looking at the following error_log
entries, I realise that I have put this reference into httpd.conf and
srm.conf.
In httpd.conf it is  DocumentRoot /home/httpd/htdocs.
It is the same in srm.conf.  If this is wrong, what do you think it should
be.

Here is what was in the log file.

[Sat Aug 26 19:05:35 2000] [error] [client 192.168.1.107] File does not
exist: /home/httpd/html/htdocs/
[Sat Aug 26 19:09:15 2000] [error] [client 192.168.1.107] File does not
exist: /home/httpd/html/htdocs/
[Sat Aug 26 19:09:20 2000] [error] [client 192.168.1.107] File does not
exist: /home/httpd/html/htdocs/

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

 
 
 

linux/apache/php/mysql setup

Post by Stephen Hu » Sun, 31 Dec 1899 09:00:00


Quote:> Well, the command above was correct (. . . ./httpd restart).   And your
> suggestion regarding more info was good.  I looked in the log file.  I had
> just assumed it was not running because when I typed in my localhost name it
> said it could not find that URL. But it is running according to the log and
> also 'ps' shows that it is running.   So, looking at the following error_log
> entries, I realise that I have put this reference into httpd.conf and
> srm.conf.
> In httpd.conf it is  DocumentRoot /home/httpd/htdocs.
> It is the same in srm.conf.  If this is wrong, what do you think it should
> be.

> Here is what was in the log file.

> [Sat Aug 26 19:05:35 2000] [error] [client 192.168.1.107] File does not
> exist: /home/httpd/html/htdocs/
> [Sat Aug 26 19:09:15 2000] [error] [client 192.168.1.107] File does not
> exist: /home/httpd/html/htdocs/
> [Sat Aug 26 19:09:20 2000] [error] [client 192.168.1.107] File does not
> exist: /home/httpd/html/htdocs/

In that case, create a directory called /home/httpd/html/htdocs and put
some sort of HTML file in there and call it index.html.  Then try to
view it through a browser again.

Hope this helps!  :o)
Stephen.

--
Stephen Hui, ARL:UT, Austin, Texas

Computer Terms: Programmer - A red-eyed, mumbling mammal
capable of conversing with inanimate objects.

 
 
 

linux/apache/php/mysql setup

Post by NDQ » Sun, 31 Dec 1899 09:00:00



> It's entirely possible that you have to recompile Apache so that it can
> see and use the PHP module you've built.  There's a pretty good guide to

Not need to recompile Apache ! I have already Apache server and I
compiled and installed PHP4 (Apache module) without any problem under
RH6.1. Try recompile your PHP4 ...

Q.

 
 
 

1. PhP MySQL and Apache Setup under SuSe

I have Apache set up on a SuSe 7.0 linux box.  Php, MySql and Apache
all came with the distribution, and are supposably installed.  I got Apache
to work and have used MySQL, but have yet to get PhP to work.

I mess with my php.ini file and this is what it had:

    <IfDefine PHP>
    LoadModule php3_module ........libphp3.so
    </IfDefine>

    <IfDefine PHP>
    AddModule mod_php3.c
    </IfDefine>

    <IfDefine PHP>
    AddType application/.......
    </IfDefine>

I took out the IfDefine's and loaded them regardless and got this error:
    "sqlinit: DBROOT must be set!!!"

my "httpd.conf" file is located in:  /etc/httpd/httpd.conf
my "php3.ini" and "php.ini" files are located:  /etc/httpd/php3.ini    and
/etc/httpd/php.ini  respectively
my httpd daemon is at:  /usr/sbin/httpd
and my doc root is at:  /usr/local/httpd/htdocs

I don't know what I'm missing to get php to work.  Another problem is I
can't build the packages manually
because I don't have the source code (or cant find it at least!).  Can
someone please give me some guidance?

My ultimate goal is to have Apache running with PhP, MySQL, Python, and Perl
support.

Thanks,

Tony C.

2. kickstart rh6.2 problem

3. Which Linux for Apache/PHP/MySQL Gateway

4. FTAM for Linux?

5. Linux / Solaris Unix Differences in MySQL, PHP, Apache

6. mouse works with X11, but not selection ???

7. linux+apache+PHP+MySQL

8. sysctl

9. Php not working with Apache, mySQL on Linux, save as dialog box comes up

10. Apache/php/mysql building everything for Linux?

11. Apache w/ PHP and SSL: w/ PHP OK - w/out PHP NOK

12. weird php error when using php-mysql-4.2.3 from ports

13. PHP+MySQL vs. PHP+PostgreSQL