homepage Welcome to WebmasterWorld Guest from 54.234.147.84
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
How to Start up a PHP Script in Linux
How To Startup PHP Script in Linux SUSE
Khvicha




msg:3531898
 11:41 am on Dec 20, 2007 (gmt 0)

Hello

How can i startup php script in LINUX SUSE,i have one "Socket.php" file which should open and listen some virtual port in the system, when i open Web Browser and type address (http://localhost/Socket.php) manualy - it works, but i need to run that file in STARTUP.

I'm using:
LINUX - SUSE 10.1 (KDE 3.5.1)
WEB SERVER - APACHE 2.2.0
PHP - 5.1.2

 

badone




msg:3552428
 11:02 am on Jan 19, 2008 (gmt 0)

php Socket.php

jezra




msg:3553872
 7:59 pm on Jan 21, 2008 (gmt 0)

Suse appears to use init scripts to launch apps at start up and you will need to write a custom init script to launch your socket.php script.

At the bare minimum, you could create an executable script in /etc/rc2.d named S99socket containing

#!/bin/sh
/path/to/php /path/to/socket.php &

phranque




msg:3554074
 11:39 pm on Jan 21, 2008 (gmt 0)

welcome to WebmasterWorld [webmasterworld.com], Khvicha!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved