Ask Your Question
0

does it matter where I run a php script

asked 2012-01-01 23:54:18 -0500

willettwork gravatar image

If I save my php scripts in /home/bill/workspace They should still work in the browser?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-01-02 01:27:10 -0500

SoumyaC gravatar image

What is the web server you are running ? In case of Apache you have to put your files in your "DocumentRoot".

The DocumentRoot can be edited in httpd.conf file. Check where your DocumentRoot points to as shown below -

# grep -i 'DocumentRoot' /etc/httpd/conf/httpd.conf

In default case its /var/www/html folder. You can edit it

# vi /etc/httpd/conf/httpd.conf

The restart your Apache Server.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-01-01 23:54:18 -0500

Seen: 400 times

Last updated: Jan 02 '12