Easyphp site on local network

Solved
oumouri Posted messages 25 Status Membre -  
 Hamouda -
Hello! I have a site made with EasyPHP 1.8 and I would like to know how to use it on a local network. I tried from another machine other than the one where EasyPHP is installed by typing: http://192.168.100.1/index.php knowing that the machine where EasyPHP is installed has the IP address 192.168.100.1. But to no avail. The network is working normally. I pinged and there is nothing unusual.
Can you please indicate the configuration to be done for it to work?
Best regards, Oumouri.

37 réponses

  • 1
  • 2
juj2potence
 
I am working with Easyphp 2.1.

As Etycia told us:
"So no, that's not it...
First, you need to go to the Easyphp configuration/apache icon
and look for the line "listen " usually followed by 127.0.0.1:80 and replace this IP with that of the local post (from now on access will be via the browser using this IP address) always with :80 behind.
Then, find the line "Alias /mysql/ phpmyadmin" below it says "allow from 127.0.0.1" replace it with "allow from 192.168.0.x" and then save. "

However, if you want to continue working by opening the Local Web (F7), you won't be able to.
The solution is even simpler; instead of "Replacing", you "Add" by copying the line right below it, but using YOUR address. Like this:

Listen 127.0.0.1:80
Listen 192.168.x.x:80

Then

<Directory "${path}/phpmyadmin">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
allow from 192.168.x.x
deny from all
</Directory>

<Directory "${path}/sqlitemanager">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
allow from 192.168.x.x
deny from all
</Directory>

<Directory "${path}/home">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
allow from 192.168.x.x
deny from all

And everything is set!! No need to touch the .htaccess or anything else...

@+
36
DuncanMacLeod
 
Hello everyone,

And if I want my site to be visible from the outside, how should I proceed?
0
DuncanMacLeod
 
1st question:
And if I want my site to be visible from the outside, how should I proceed?
I have typed my addresses and I can see my easyphp page, however, I do not see my site even when typing the alias after my address "http:\\address\alias"

2nd question:
Is it possible to configure easyphp in such a way that I don't have to enter the alias? "http:\\address\"

Thank you.
0
nouar
 
I'm sorry, but I cannot assist you with that.
0
Eltorosam137
 
Really, your thing juj2potence works great! THANK YOU :D
0
nono
 
It works, thank you.
0
etycia
 
So no, that's not it...
First, you need to go to the easyphp configuration/apache icon
and look for the line "listen," which is generally followed by 127.0.0.1:80, and replace this IP with the local post IP (from now on, access will be via this IP address in the browser) always with :80 at the end.
Then, find the line "Alias /mysql/ phpmyadmin" and below it, where it says "allow from 127.0.0.1," replace it with "allow from 192.168.0" and then save.
Finally, search for the .htaccess file in the easyphp installation directory, open it with Dreamweaver, UltraEdit, or another editor, and change the address "127.0.0.1" to "192.168.0"...
This, of course, in a local network configured with fixed or automatic IPs and an alternative configuration. This is for easyphp 1.8

There you go.
9
BartWö_O
 
> To say that I strained my eyes scrolling through the K.reg created by easyPhp, while there was an apache/conf file in .txt, that's unfortunate.

> Thank you very much for these tips, I saved time creating a local SQL database for 3 machines (+ 1 friend who is hogging our bandwidth). However, it's much more advantageous to install apache, php5, and MySQL on a single machine (p2/440Mhz/1Go.sdram, that's more than enough), but for the storage of the database: thanks to the network local drives, it works with the PC turned off, as long as the drive is managed by one or more machines that are powered on and running.

> Thanks again, it took me 12 hours instead of taking my whole weekend.

>ö_O<
-1
lolo24
 
What is the "local post"???
0
jee pee Posted messages 31933 Registration date   Status Modérateur Last intervention   9 957
 
It is the local host, so the IP of the PC hosting the EasyPHP server.
0
goria
 
I do what is necessary, but on another computer, the same site design does not appear. Also, for my IP address, I can see that the homepage and for other site pages, the URL reverts to 127.0.0.1. How can I make sure that all my pages display with my IP address, and how can I access my intranet from any PC with different operating systems?
Thank you in advance.
0
radzo > goria
 
I have the same problems as you, have you already solved them? If so, how?
0
julianinou
 
Hello everyone! =)
I followed the instructions, but when it says "Find the line 'Alias /mysql/ phpmyadmin' below it is written 'allow from 127.0.0.1' replace it with 'allow from 192.168.0.x' then save." I can't find this line ... lol and when I want to save this document, it suggests that I overwrite the original with this one, I accept and it says access denied O.O. Thank you for clarifying this for me :)
4
Anonymous user
 
Hello,

EasyPHP works with Apache. You need to edit the Apache configuration file (via the EasyPHP icon, "configuration" then "Apache") and add your machine's IP next to the "servername" line. Save it and there you go...
3
amau
 
Find the line "Alias /mysql/ phpmyadmin" below it's written "allow from 127.0.0.1" replace it with "allow from 192.168.0" then save.

Attention you also need to do it for

<Directory "${path}/home">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 192.168.0
deny from all
</Directory>

Then, be careful, it depends on the local network, but it could be 192.168.1
3
mickchauv
 
Thank you Amau, it works. I just set allow from myIP because I don’t want other machines to access phpMyAdmin.

To create an intranet with PHP, what do you recommend I use to put it online on the internal network and not just on my machine? EasyPHP or something else? And/or should I consider a Windows Server 2003? If yes, with which software?
0
amau > mickchauv
 
lol, I have no idea at all, sorry, I'm just starting out on this software, I replied to this post to help others, best regards

amau
0
Anonymous user
 
You edit it and, instead of "localhost", you indicate the name you want. Then, you go to your hosts file to put this name with the IP address so that Windows recognizes it.
--
"Teaching students to use Microsoft products is like teaching them to smoke. It's giving them an expensive, dangerous habit that they will find hard to break." R.S
2
Anonymous user
 
My instructions apply to EasyPhp 1.7. For higher versions, I don't know...
1
Ohm-WorK Posted messages 1468 Status Contributeur 420
 
Hi

2h and etycia, you’re doing a lot to make this work!!!
Indeed, you need to find the line corresponding to listen, but modifying just that one is enough, since Apache will listen to that IP...

What is your manipulation on the .htaccess for? If you don’t set any particular access restrictions...

Cheers
--
Life is a terminal disease, sexually transmitted (Woody Allen)
1
etycia
 
Actually, I modify the htaccess because otherwise I can't access mysql from my work computer... (which runs on another computer)
There I allow the entire network by masking the last octets of my IPs.
1
Naoned_TAZ
 
Thank you Tuxie!
I confirm that your instructions work, I have version 8 so it's perfect, a big big big thank you because it really relieves me!
See you!
1
mic
 
Hello,
it's working for me too (and the network posts) but I can't connect to phpMyAdmin anymore????
1
koala33
 
Hello

I tested making these changes and of course I have a little issue

when I modify the listen with the IP address given by etycia (I tried changing one thing, then two, then three..)
I can no longer access the administration via easyphp .... It redirects me to the address 127.0.0.1/admin and that is an unknown address

I have a Joomla site in test locally
if I connect to the administration address: 192.168.0.xx:80/jeux/administrator/index.php it works perfectly
if I type 192.168.0.xx:80/jeux/ to display the home page of the site .. well it redirects me to 127.0.0.1/jeux and of course that's an unknown address

what to do?
thank you for any help
1
Ohm-WorK Posted messages 1468 Status Contributeur 420
 
Hi

If you change the listening IP of Apache, and the directories it redirects, be careful. If you redirect the phpMyAdmin alias to allow from 192.168.0, you will also need to modify the operational IP of MySQL, which is by default localhost, in the configuration of phpMyAdmin and mysql.conf ...

EasyPHP is well made for local use, for testing. To set up a web server, whether it’s for intranet or directly for the web, it would be better to use a server-oriented OS (Linux or Windows 2000 / 2003 server). Then, for a clear configuration that you understand, it’s better to use the tools one by one, configuring them yourself, rather than installing an all-in-one package that configures things on its own without you knowing...

Personally, I set up an intranet/extranet/website on the same Apache server with virtual hosts, on a Debian Etch, with Apache, MySQL, PHP5, and an SSL FTP access; in 1 hour of configuration the server was ready...

See you later :)
--
Life is a terminal disease, sexually transmitted (Woody Allen)
1
eddyok
 
Hello, I would like to know if we can load "localhost" in another one in Easy PHP.
1
Anonymous user
 
Do you mean changing the name? Just edit the hosts file and the server configuration file.
--
"Teaching students to use Microsoft products is like teaching them to smoke. It's giving them an expensive, dangerous habit that's hard to break."
1
Anonymous user
 
Hello,

Have you added your machine's IP address in the Apache configuration file?
--
"Teaching students to use Microsoft products is like teaching them to smoke. It gives them an expensive, dangerous habit that they will find hard to shake off." R.S
1
eddyok Posted messages 14 Status Membre 4
 
Well, how do we change this configuration file?
0
eddyok Posted messages 14 Status Membre 4
 
Thank you Tuxi
0
jumpy
 
Is it possible to work with Namo Webeditor after I've installed EasyPHP
and to work on my website pages? Do they generate automatically on the pages or what? Thanks for your replies, Jumpy.
0
redsky
 
hello everyone I'm currently working on easyphp 2.1b and I've followed the instructions of 'juj2potence'
unfortunately apart from when I put "localhost/nomsite"
the other possibilities like '198.100.x.x:80/nomsite' don't work
I also added "allow 198.100.x.x " in .htaccess located in "easyphp2.01b/home/"
:-( what should I do to fix the problem?
0
redsky
 
I followed the recommendations regarding easyphp 2.1b, but apart from when I put 'localhost/monsite', the page
is not accessible for addresses like '198.100.x.x:80/monsite'. What should I do?
I also added the line 'allow 198.100.x.x' in [easyphp_folder]/home/.htaccess
nothing changes, what should I do?
0
  • 1
  • 2