Hello experts,
I am newbie in php. I have been working on project where I am setting the user name and password in a file called config.php and i am allowing or denying requests from httpd.conf file. Now my problem is; I can access the data from localhost without any problem. When I change the cofiguration settings from localhost to IP address, I am not able to see the respective IP address. I changed the settings in httpd.conf file like following:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Satisfy all
</Directory>
and in config.php I changed in following way:
$GLOBALS['database'] = 'opendocman'; // Enter the name of the database here
$GLOBALS['user'] = 'root'; // Enter the username for the database
$GLOBALS['pass'] = ''; // Enter the password for the username
$GLOBALS['hostname'] = '10.10.10.12'; // Enter the hostname that is serving the database
I also changed $GLOBALS['hostname'] to 10.10.10.12 wherever it is required. I would like to know how could change the settings so that I will be able to see http://10.10.10.12/opendocman/index.php or http://10.10.10.12/opendocman/add.php instead of http://localhost/opendocman/add.php. I would appreciate your help. Thanks in advance.
Best regards.
httpd.conf configuration and hostname
Moderator: General Moderators
-
itpragmatic
- Forum Newbie
- Posts: 1
- Joined: Tue Dec 14, 2010 12:24 am