LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2004, 10:21 AM   #1
jwreese0
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Initializing PHP script


I am attempting to install Word Press using a PHP script (install.php). The documentation says this can be done by opening said file from the browser, but the script won't initialize. The browser (and I've tried several) asks for an application to open the script. When I try this from the command line with root privileges I get:

./install.php: line 1: ?php: No such file or directory
./install.php: line 2: =: command not found
./install.php: line 3: syntax error near unexpected token `'../wp-config.php''
./install.php: line 3: `if (!file_exists('../wp-config.php')) '

Of course, I have made sure permissions on the file are appropriate, etc.
 
Old 08-31-2004, 10:51 AM   #2
scissors
Member
 
Registered: Aug 2004
Location: Seattle
Distribution: Red Hat es and as, Solaris, Fedora, Debian, Tru64
Posts: 45

Rep: Reputation: 15
At the command line, try:
Code:
php install.php
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
issues with mirc script accessing our php script dtra Linux - Software 2 07-02-2005 04:30 PM
PHP script DiagonalArg Programming 2 06-18-2005 02:02 PM
PHP -- How to execute a shell script from PHP using FTP functions?? zoonalex Programming 3 07-29-2004 11:51 AM
converting shell script to php script ? ibro Linux - General 6 05-24-2004 05:19 AM
php script delta7 Programming 3 07-24-2003 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration