VectorLinux
October 23, 2014, 03:26:50 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 [2]
  Print  
Author Topic: [SOLVED]apache php mysql  (Read 5319 times)
nulll
Member
*
Posts: 33


WWW
« Reply #15 on: October 13, 2007, 06:02:15 am »

mmm but i don't know how to run php-cli in xampp!
Logged
jovanoti
Member
*
Posts: 11



« 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.
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2288


« 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:
<?php echo "Hello, world!"?>

Lets name it "salute.php". You need to give it execution rights:

Code:
chmod +x salute.php

And then you can execute it with

Code:
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 Wink
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


WWW
« Reply #18 on: October 14, 2007, 10:44:36 am »

yes...to run php command line:

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

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!