Allowing another IP to access my server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Allowing another IP to access my server

Post by Steveo31 »

I'm makin a small site, and a friend of mine is going to help me. However, when I send him my IP, he gets a forbidden error. I think it is something in my access.conf file (phpDev, Apache 1.3.27, MySQL4). I'd like him to have access mostly to the PhpMyAdmin, but the others would be a plus.

What do I need to do?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

http://httpd.apache.org/docs/mod/core.html#listen
Will perhaps get you more info regarding Apache.

In phpMyAdmin, you need to edit the $cfg['Servers'][$i]['host'] parts of the config.inc.php to reflect your public IP/host. Most commonly doing local development we use localhost or 192.168.0.2/127.0.0.1 or so...

After adding the public ip, you need to rearrange the usertable so that the user(s) you have today fits your new configuration: Steveo31@192.168.0.2 would look like Steveo31@your-public-host.com and User2@your-friends-host.com.
More about that: http://dev.mysql.com/doc/mysql/en/Adding_users.html

Might not help, but I gave you some directions to investigate...
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

What type of connection do you have? Certain ISP's block 80. I know when I hosted from Verizon DSL, I had to do all this port changing nonsense and dynamic ip updating to get the thing visible to the outside world.
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

The worst for this... dial up. It's not much of a problem for me and what I am doing because I just send him the IP and he can connect.

I'll look into all that. Thanks.
Post Reply