Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

How to Start up a PHP Script in Linux

How To Startup PHP Script in Linux SUSE



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

5+ Year Member


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)
PHP - 5.1.2


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

10+ Year Member

php Socket.php


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

10+ Year Member

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

/path/to/php /path/to/socket.php &


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

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

welcome to WebmasterWorld [webmasterworld.com], Khvicha!

Featured Threads

Hot Threads This Week

Hot Threads This Month