Apach&mysql&php install

Apach&mysql&php install

Post by zibi » Thu, 29 May 2003 04:03:46



Quote:> Furthermore, I want the mysqld and the apache automatically to be started
on
> system boot, but I'm not sure how, as there are no runlevels on a bsd
> systems:-)
> Please tell me where to make which entry...
> Many thanks in advance!
>   Christopher

Allmost all configuration is located in /etc/rc.conf

Apache starts if you change NO to "" or "-u" by httpd_flags in /etc/rc.conf

man httpd says:
"Normally this service can be enabled for startup on OpenBSD by editing
     /etc/rc.conf. The -u option is of particular importance."

Mysql starts if you put line in /etc/rc.local like that
# /usr/local/share/mysql/mysql.server start

--
Don't think Linux, think BSD, read manuals

 
 
 

Apach&mysql&php install

Post by Marcin Dobruck » Thu, 29 May 2003 23:14:48



> E.g., I'm trying to get the php_mysql module loaded, and put it in the
> php.ini - without any effort, php still does not know the functions like
> mysql_pconnect:-(

   Chances are you didn't actually install the php-mysql extensions?  Go
to /usr/ports/packages/<your architecture>/All and install php-mysql...
using pkg_add

Quote:> Furthermore, I want the mysqld and the apache automatically to be started on
> system boot, but I'm not sure how, as there are no runlevels on a bsd
> systems:-)

   apache is configured through rc.conf script and you can see how to
add mysql by examples in rc.local.  Both are in /etc

   /Marcin

 
 
 

1. PHP & MySQL & root

I'm new to Apache/PHP/MySQL/Linux and I'm still in the learning process
(coming from Windows/IIS/ASP background).

A tutorial site covering MySQL and PHP has the following code...

    $db = mysql_connect("localhost", "root");

    mysql_select_db("table",$db);

    $result = mysql_query("SELECT ...",$db);

I can revise the code and it works fine on my site, exactly what I would
want.

However, I noticed that the root account is being used and I can't help but
wonder if there are any security implications.

I'll be creating/updating/deleting/retrieving records in pre-set tables
using PHP and MySQL.

What are the dangers of using the root account within a PHP script as shown
above?

--
Mike

2. How to change refresh rates in X4.0.1?

3. Apache compile & Php & mysql

4. Compiling inn-1.7 on solaris 2.5.1

5. Apache & mysql & php not working

6. XS3 and Orchid Fahrenheit 1280 VLB?

7. &&&&----Looking for a unix shell------&&&&&

8. Ethernet card DE500 on Linux

9. Problems installing PHP & MYSQL

10. ppp && PPPoE && ADSL && net && buffer(s)

11. &#27809;&#26377;&#20154;&#29992;&#20013;&#25991;&#21527;&#65311;

12. &&&&&& SUGGESTION ??? &&&&&&&&

13. Hercules &&&&&& SVGA ?