Hi all,
I have a centos 4.2 with apache. I need allow a php site access the firebird DB. How can I do this? -- ===================== Marcus Tulio T. Carvalho Telemacro Sistemas e Serviços =====================
On Mon, 2006-02-27 at 19:45 -0300, Marcus Carvalho wrote:
I have a centos 4.2 with apache. I need allow a php site access the firebird DB. How can I do this?
The easy way would be to install the Firebird libraries and headers, grab the PHP SRPM, add --with-interbase to the %configure line, and rebuild.
The clean way would be to modify the PHP spec file to create a separate php-interbase extension package, but that's a bit more work.
2006/2/27, Ignacio Vazquez-Abrams ivazquez@ivazquez.net:
On Mon, 2006-02-27 at 19:45 -0300, Marcus Carvalho wrote:
I have a centos 4.2 with apache. I need allow a php site access the firebird DB. How can I do this?
The easy way would be to install the Firebird libraries and headers, grab the PHP SRPM, add --with-interbase to the %configure line, and rebuild.
The clean way would be to modify the PHP spec file to create a separate php-interbase extension package, but that's a bit more work.
Thanks Ignacio,
But I have a doubt...
I instaled PHP 4.3.9 from yum install. Should I remove it from the system and configure the php source adding --with-interbase %configure line??
-- ===================== Marcus Tulio T. Carvalho Telemacro Sistemas e Serviços =====================
On Tue, 2006-02-28 at 00:32 -0300, Marcus Carvalho wrote:
2006/2/27, Ignacio Vazquez-Abrams ivazquez@ivazquez.net:
On Mon, 2006-02-27 at 19:45 -0300, Marcus Carvalho wrote:
I have a centos 4.2 with apache. I need allow a php site access
the
firebird DB. How can I do this?
The easy way would be to install the Firebird libraries and headers, grab the PHP SRPM, add --with-interbase to the %configure line, and rebuild.
The clean way would be to modify the PHP spec file to create a
separate
php-interbase extension package, but that's a bit more work.
Thanks Ignacio,
But I have a doubt...
I instaled PHP 4.3.9 from yum install. Should I remove it from the system and configure the php source adding --with-interbase %configure line??
No, you should rebuild from SRPM, modifying the release in order to make it higher than the current one (I recommend adding a small tag such as ".ibase" to the end instead of incrementing), and then install the rebuilt RPMs.
hi!
...trying to get my feet wet w/php... ok...I think I have to add something to the httpd.conf or something to accept php???
I want be able to embed php in html code...following along in php freak's manual but can't get anywhere yet
thx
John
...trying to get my feet wet w/php... ok...I think I have to add something to the httpd.conf or something to accept php???
yum install php that'll do the dirty work for you, and add php.conf to /etc/httpd/conf.d/
I want be able to embed php in html code...following along in php freak's manual but can't get anywhere yet
General purpose type stuff, it doesn't really go this way.. you can put html in php, but not php in html. (yes there are exceptions to the rule. that's not the concern here)
-- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775
On Wed, 1 Mar 2006, rado wrote:
hi!
...trying to get my feet wet w/php... ok...I think I have to add something to the httpd.conf or something to accept php???
I want be able to embed php in html code...following along in php freak's manual but can't get anywhere yet
if you have done [ root@radobox ~]# yum install php
then do .... /etc/init.d/httpd restart
it should configure it automatically for you.
Then create a script in your document root such as....
index.php
<?php phpinfo(); ?>
you should see a bunch of information....
At what stage are you stuck at ?
At what stage are you stuck at ?
Double score plus 1000 bonus points for beginning and ending that sentence with the same preposition! Well done!
/not personal. had to do it.
-- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775
On Wed, 2006-03-01 at 23:22 -0500, Jim Perrin wrote:
At what stage are you stuck at ?
Double score plus 1000 bonus points for beginning and ending that sentence with the same preposition! Well done!
/not personal. had to do it.
---- Harriet Michaels - "It's late." Charlie MacKenzie - "Not for me."
Harriet Michaels - "Who for, then?" Charlie MacKenzie - "Who for, then, what?"
sorry...one of my favorite movies...
Craig
On Wed, 2006-03-01 at 21:38 -0700, Craig White wrote:
On Wed, 2006-03-01 at 23:22 -0500, Jim Perrin wrote:
At what stage are you stuck at ?
Double score plus 1000 bonus points for beginning and ending that sentence with the same preposition! Well done!
/not personal. had to do it.
Harriet Michaels - "It's late." Charlie MacKenzie - "Not for me."
Harriet Michaels - "Who for, then?" Charlie MacKenzie - "Who for, then, what?"
sorry...one of my favorite movies...
Craig
Oh man and I wanted to get out of here and go to bed but y'all made me laugh...see what my friggin question started oh lol that's it I ain't lookin here no more tonite!
John!
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Oh man and I wanted to get out of here and go to bed but y'all made me laugh...see what my friggin question started oh lol that's it I ain't lookin here no more tonite!
Well FINE! If you want to actually accomplish something here... It's probably not working because you're calling it a .php3 file, which is OLD and deprecated. The php.conf file in /etc/httpd/conf.d does not contain the necessary AddType entry to run .php3 files. Rename it to .php, or even better, use an index.php file of <?php phpinfo(); ?> as was previously suggested. That should be all you need.
-- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775
I think you can probably identify with this scolding.
At what stage are you stuck at ?
Double score plus 1000 bonus points for beginning and ending that sentence with the same preposition! Well done!
/not personal. had to do it.
-- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I want be able to embed php in html code...following along in php freak's manual but can't get anywhere yet
if you have done [ root@radobox ~]# yum install php
then do .... /etc/init.d/httpd restart
it should configure it automatically for you.
Then create a script in your document root such as....
index.php
<?php phpinfo(); ?>
you should see a bunch of information....
At what stage are you stuck at ?
The Jim and Robin for your replies. what's bothering me, lol ya rite! what's bothering me is that I don't know what I'm doing! lol , no really, the following 2 points:
1. [root@rbadmin bin]# rpm -q php php-4.3.9-3.9 [root@rbadmin bin]#
2. and I did this that I found somewhere on the web but can't find it again: [root@rbadmin bin]# cat <<EOP > script-test.php3
#!/usr/bin/php -q
<? echo "PHP script interpreter is OK!\n"; ?>
EOP
[root@rbadmin bin]# chmod 755 script-test.php3 [root@rbadmin bin]# script-test.php3 PHP script interpreter is OK!
I also thought I saw a line in my httpd.conf referring to php but I think I'm losing it.
k...tommorrow morn I am going to do what y'all suggested.
thx for your help
John
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, 2006-03-01 at 22:43 -0500, Robin Mordasiewicz wrote:
On Wed, 1 Mar 2006, rado wrote:
hi!
...trying to get my feet wet w/php... ok...I think I have to add something to the httpd.conf or something to accept php???
I want be able to embed php in html code...following along in php freak's manual but can't get anywhere yet
if you have done [ root@radobox ~]# yum install php
then do .... /etc/init.d/httpd restart
it should configure it automatically for you.
Then create a script in your document root such as....
index.php
<?php phpinfo(); ?>
you should see a bunch of information....
At what stage are you stuck at ?
well, at least I ain't stuck w/just picking my nose now cuz that index.php works just fine!!!
Oh my!, you guys are awesome!! ...ok now that that is established, php is indeed healthy in centos 4.2 right off the install w/out having to do anything at all but know what you are doing.
My next and question, do y'all know any tutorials specific to 4.2 or at least close...I am tired of goin blind reading about what happens in windows and slackwhere.
of all the googling I have done on this, it took you guys to let me see something of php on one of my test sites!!!
thx y'all,
John
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thu, 2 Mar 2006, rado wrote:
On Wed, 2006-03-01 at 22:43 -0500, Robin Mordasiewicz wrote:
On Wed, 1 Mar 2006, rado wrote:
hi!
...trying to get my feet wet w/php... ok...I think I have to add something to the httpd.conf or something to accept php???
I want be able to embed php in html code...following along in php freak's manual but can't get anywhere yet
if you have done [ root@radobox ~]# yum install php
then do .... /etc/init.d/httpd restart
it should configure it automatically for you.
Then create a script in your document root such as....
index.php
<?php phpinfo(); ?>
you should see a bunch of information....
At what stage are you stuck at ?
well, at least I ain't stuck w/just picking my nose now cuz that index.php works just fine!!!
Oh my!, you guys are awesome!! ...ok now that that is established, php is indeed healthy in centos 4.2 right off the install w/out having to do anything at all but know what you are doing.
My next and question, do y'all know any tutorials specific to 4.2 or at least close...I am tired of goin blind reading about what happens in windows and slackwhere.
well there are about a million tutorials on php. Maybe you can grab a book, or sign up for an safari http://safari.oreilly.com account Another good reference is the php site http://www.php.net/manual/en/
There are tons of code snippets and explanations about what each function does.
here is a quick sample php script.
<?php
$myusername="Joe Blow";
echo "<html><body>";
echo "<h1>" . $myusername . "</h1>";
echo "</html";
?>
On Thu, 2006-03-02 at 10:25 -0500, Robin Mordasiewicz wrote:
On Thu, 2 Mar 2006, rado wrote:
On Wed, 2006-03-01 at 22:43 -0500, Robin Mordasiewicz wrote:
On Wed, 1 Mar 2006, rado wrote:
hi!
...trying to get my feet wet w/php... ok...I think I have to add something to the httpd.conf or something to accept php???
I want be able to embed php in html code...following along in php freak's manual but can't get anywhere yet
if you have done [ root@radobox ~]# yum install php
then do .... /etc/init.d/httpd restart
it should configure it automatically for you.
Then create a script in your document root such as....
index.php
<?php phpinfo(); ?>
you should see a bunch of information....
At what stage are you stuck at ?
well, at least I ain't stuck w/just picking my nose now cuz that index.php works just fine!!!
Oh my!, you guys are awesome!! ...ok now that that is established, php is indeed healthy in centos 4.2 right off the install w/out having to do anything at all but know what you are doing.
My next and question, do y'all know any tutorials specific to 4.2 or at least close...I am tired of goin blind reading about what happens in windows and slackwhere.
well there are about a million tutorials on php. Maybe you can grab a book, or sign up for an safari http://safari.oreilly.com account Another good reference is the php site http://www.php.net/manual/en/
There are tons of code snippets and explanations about what each function does.
here is a quick sample php script.
<?php $myusername="Joe Blow"; echo "<html><body>"; echo "<h1>" . $myusername . "</h1>"; echo "</html"; ?>
kk thx Robin!
I know there is tons out there for this if I can just get the start or understand errrr the proper syntax or geez just get going.
yes, index.php works fine. Is this to say that if you have an index.php, apache looks at and handles this first...taking the place of index.html?
thx
John
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thu, 2 Mar 2006, rado wrote:
On Thu, 2006-03-02 at 10:25 -0500, Robin Mordasiewicz wrote:
here is a quick sample php script.
<?php $myusername="Joe Blow"; echo "<html><body>"; echo "<h1>" . $myusername . "</h1>"; echo "</html"; ?>
I know there is tons out there for this if I can just get the start or understand errrr the proper syntax or geez just get going.
yes, index.php works fine. Is this to say that if you have an index.php, apache looks at and handles this first...taking the place of index.html?
The master config file for Apache is
/etc/httpd/conf/httpd.conf
when you want to add new virtual servers or special configuration options it is recomended to create a file
/etc/httpd/conf.d/mydomain.com.conf
If you open the /etc/httpd/conf/httpd.conf file you will see a conf option called
DirectoryIndex
You will see that when you installed php, that a file /etc/httpd/conf.d/php.conf
was added.
if you open the file /etc/httpd/conf.d/php.conf, you can see that the option DirectoryIndex is not overridden but added to. Check the master httpd.conf file to see what options are set.
When you make a change to the apache configuration files you must do.. /etc/init.d/httpd reload
On Thu, 2006-03-02 at 11:09 -0500, Robin Mordasiewicz wrote:
On Thu, 2 Mar 2006, rado wrote:
On Thu, 2006-03-02 at 10:25 -0500, Robin Mordasiewicz wrote:
here is a quick sample php script.
<?php $myusername="Joe Blow"; echo "<html><body>"; echo "<h1>" . $myusername . "</h1>"; echo "</html"; ?>
I know there is tons out there for this if I can just get the start or understand errrr the proper syntax or geez just get going.
yes, index.php works fine. Is this to say that if you have an index.php, apache looks at and handles this first...taking the place of index.html?
The master config file for Apache is
/etc/httpd/conf/httpd.conf
when you want to add new virtual servers or special configuration options
I add virtual servers all the time...but!
it is recomended to create a file /etc/httpd/conf.d/mydomain.com.conf
...this is a new one on me!
If you open the /etc/httpd/conf/httpd.conf file you will see a conf option called
DirectoryIndex
You will see that when you installed php, that a file /etc/httpd/conf.d/php.conf
was added.
kk...php was already installed and yes, etc/httpd/conf.d/php.conf is there...
if you open the file /etc/httpd/conf.d/php.conf, you can see that the option DirectoryIndex is not overridden but added to. Check the master httpd.conf file to see what options are set.
kk later on today ...will do as you say...gotta work outside now tho
When you make a change to the apache configuration files you must do.. /etc/init.d/httpd reload
....always... thx Robin
John
On Thu, 2006-03-02 at 08:43, rado wrote:
if you have done [ root@radobox ~]# yum install php
then do .... /etc/init.d/httpd restart
it should configure it automatically for you.
of all the googling I have done on this, it took you guys to let me see something of php on one of my test sites!!!
If you have a test machine you might want to try an "everything" install to see what else you might be missing. It's probably a bad idea to run anything that way in production though.
-- Les Mikesell lesmikesell@gmail.com
On Thu, 2006-03-02 at 10:13 -0600, Les Mikesell wrote:
On Thu, 2006-03-02 at 08:43, rado wrote:
if you have done [ root@radobox ~]# yum install php
then do .... /etc/init.d/httpd restart
it should configure it automatically for you.
of all the googling I have done on this, it took you guys to let me see something of php on one of my test sites!!!
If you have a test machine you might want to try an "everything" install to see what else you might be missing. It's probably a bad idea to run anything that way in production though.
-- Les Mikesell lesmikesell@gmail.com
Hi Les! lol ::ducking:: yes, bad me, but I always install everything...oh, I know it's not really right but it's just something I do and now and then it creates pleasant suprised like for instance this php thang...it's already there just waiting for me to get smart w/it! lol
thx Les
John
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos