03-06-2001
save instead run
Well, when I run the PHP on my machine at home ir works fine under Windows. When I run it on Solaris it prompts me where do I want to save the *.php file(!?). I want to run the file instead.
Thanks,George
Note: I do have the book
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am not by any means a UNIX guru if you can't already tell by the question I'm about to ask.
How do I launch Apache web server on my SOlaris 8 server without rebooting it?
Any help would be much appreciated!!!
-Thanks (5 Replies)
Discussion started by: jskillet
5 Replies
2. UNIX for Dummies Questions & Answers
HI
I want to use the apache server on my solaris 9
How do I start it??
(/etc/init.d/apache start does not work)
Where do I need to put my html archives???
thanks (2 Replies)
Discussion started by: eldiego
2 Replies
3. Solaris
ii am trying to install apache 2 on solaris 10.it is configured successfully but is giving error while make.i have pasted last lines of that error.
make: Warning: Can't find `/build/ltlib.mk': No such file or directory
Current working directory /apache/httpd-2.0.59/srclib/pcre
make: Fatal... (1 Reply)
Discussion started by: raynu.sharma
1 Replies
4. Solaris
Hello,
I have been searching on unix.com and google in general. I can't find what I am looking for. Maybe too dumb of a question.
I've downloaded and installed the sunfreeware package for PHP 5.3.6 and made sure all dependencies are satisfied.
Apache 2.2.8 is currently installed and... (2 Replies)
Discussion started by: CSLibrary
2 Replies
5. Solaris
Hi ,
I am new to the unix environment.
I need to install apache 2.2.21 on my machine.
I have tried configuring apache from /etc/apache2 directory.
But now I want to install it under a separate user.
Can anybody tell me the step by step procedure to install it under separate user,please ?... (1 Reply)
Discussion started by: bikas89
1 Replies
6. Solaris
I am trying to install apache 2.2.22 on Solaris 10 but getting below error message when starting apache:
/etc/init.d/apache2 start
Server type is set to
running /opt/apache/conf/startup.pl for groups shared mem
Starting Apache HTTPD service with SSL disabled
httpd: Syntax error on line... (2 Replies)
Discussion started by: prash358
2 Replies
7. Solaris
Hi,
I have installed apache 2.2.22 on solaris machine and trying to do some basic testing, but it is failing for one of the scenario.
Seeing below in the error logs
But noy sure why there is a need for AuthUserFile when i mentioned AuthldapURL.
Please advise
Thanks (1 Reply)
Discussion started by: prash358
1 Replies
8. Solaris
Hi all,
This is Solaris 10 OS
I received this error
on Server,
-bash-3.00$ /usr/local/apache2/bin/httpd -v
ld.so.1: httpd: fatal: libaprutil-1.so.0: open failed: No such file or directory
Killed
-bash-3.00$
How to resolve this dependencies which are not resolved?
... (0 Replies)
Discussion started by: manalisharmabe
0 Replies
9. Solaris
Hi,
I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10.
Please any help is wellcome.
Some aditional info:
/usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
bash-3.2# g++ -v
Reading specs from... (0 Replies)
Discussion started by: lbslbs
0 Replies
10. Shell Programming and Scripting
Hi,
I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10.
Please any help is wellcome.
Some aditional info:
/usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
bash-3.2# g++ -v
Reading specs from... (1 Reply)
Discussion started by: lbslbs
1 Replies
LEARN ABOUT PHP
win32_create_service
WIN32_CREATE_SERVICE(3) 1 WIN32_CREATE_SERVICE(3)
win32_create_service - Creates a new service entry in the SCM database
SYNOPSIS
mixed win32_create_service (array $details, [string $machine])
DESCRIPTION
PARAMETERS
o $details
- An array of service details:
o $service
- The short name of the service. This is the name that you will use to control the service using the net command. The ser-
vice must be unique (no two services can share the same name), and, ideally, should avoid having spaces in the name.
o $display
-The display name of the service. This is the name that you will see in the Services Applet.
o $description
-The long description of the service. This is the description that you will see in the Services Applet.
o $user
- The name of the user account under which you want the service to run. If omitted, the service will run as the LocalSystem
account. If the username is specified, you must also provide a password.
o $password
- The password that corresponds to the $user.
o $path
- The full path to the executable module that will be launched when the service is started. If omitted, the path to the
current PHP process will be used.
o $params
- Command line parameters to pass to the service when it starts. If you want to run a PHP script as the service, then the
first parameter should be the full path to the PHP script that you intend to run. If the script name or path contains spa-
ces, then wrap the full path to the PHP script with ".
o $load_order
- Controls the load_order. This is not yet fully supported.
o $svc_type
- Sets the service type. If omitted, the default value is WIN32_SERVICE_WIN32_OWN_PROCESS. Don't change this unless you
know what you're doing.
o $start_type
- Specifies how the service should be started. The default is WIN32_SERVICE_AUTO_START which means the service will be
launched when the machine starts up.
o $error_control
- Informs the SCM what it should do when it detects a problem with the service. The default is WIN32_SERVER_ERROR_IGNORE.
Changing this value is not yet fully supported.
o $delayed_start
- If $delayed_start is set to TRUE, then this will inform the SCM that this service should be started after other auto-
start services are started plus a short delay. Any service can be marked as a delayed auto-start service; however, this
setting has no effect unless the service's $start_type is WIN32_SERVICE_AUTO_START. This setting is only applicable on
Windows Vista and Windows Server 2008 or greater.
o $base_priority
- To reduce the impact on processor utilisation, it may be necessary to set a base priority lower than normal. The
$base_priority can be set to one of the constants define in Win32 Base Priority Classes.
o $machine
- The optional machine name on which you want to create a service. If omitted, it will use the local machine.
RETURN VALUES
Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code on failure.
EXAMPLES
Example #1
A win32_create_service(3) example
Create a service with the short name 'dummyphp'.
<?php
$x = win32_create_service(array(
'service' => 'dummyphp', # the name of your service
'display' => 'sample dummy PHP service', # short description
'description' => 'This is a dummy Windows service created using PHP.', # long description
'params' => '"' . __FILE__ . '" run', # path to the script and parameters
));
debug_zval_dump($x);
?>
SEE ALSO
win32_delete_service(3), Win32 Base Priority Classes, Win32 Error Codes.
PHP Documentation Group WIN32_CREATE_SERVICE(3)