VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Pages: 1 [2]

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

nulll

  • Member
  • *
  • Posts: 33
    • nulll
Re: apache php mysql
« Reply #15 on: October 13, 2007, 07:02:15 am »

mmm but i don't know how to run php-cli in xampp!
Logged

jovanoti

  • Member
  • *
  • Posts: 11
Re: apache php mysql
« Reply #16 on: October 13, 2007, 05: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.
Logged

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2322
Re: apache php mysql
« Reply #17 on: October 13, 2007, 06: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 ;)
Logged
"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, 11:44:36 am »

yes...to run php command line:

/opt/lampp/bin/php
Logged
Pages: 1 [2]