Please support VectorLinux!

Author Topic: [SOLVED]apache php mysql  (Read 5902 times)

nulll

  • Member
  • *
  • Posts: 33
    • nulll
Re: apache php mysql
« Reply #15 on: October 13, 2007, 06:02:15 am »
mmm but i don't know how to run php-cli in xampp!

jovanoti

  • Member
  • *
  • Posts: 11
Re: apache php mysql
« Reply #16 on: October 13, 2007, 04:32:46 pm »
i've tried to make php write a file...this was to know what was the owner and the group of apache...
in ubuntu/debian is www-data (owner and group)
but the file created via php has nobody as owner and nogroup as group...
how can i change this?

what about php-cli (php from command line?)
As I remember these are default user and group of Apache. So just try editting httpd.conf in lampp/etc directory.

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2299
Re: apache php mysql
« Reply #17 on: October 13, 2007, 05:58:13 pm »
mmm but i don't know how to run php-cli in xampp!


Hi null, sorry, I lost my inet connection at home, there is no way I can check the path of the php executable, but works in this way: you create a regular php file, for example:

Code: [Select]
<?php echo "Hello, world!"?>
Lets name it "salute.php". You need to give it execution rights:

Code: [Select]
chmod +x salute.php
And then you can execute it with

Code: [Select]
php salute.php
As I said, you will need to check the path for the binary file for php. It should be /opt/lampp/php or something like that. I can check it and post it tomorrow if you can wait ;)
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!

nulll

  • Member
  • *
  • Posts: 33
    • nulll
Re: apache php mysql
« Reply #18 on: October 14, 2007, 10:44:36 am »
yes...to run php command line:

/opt/lampp/bin/php