PogoPlug + PHP + Apache + Samba share

Ask questions about Arch Linux ARM. Please search before making a new topic.

Re: PogoPlug + PHP + Apache + Samba share

Postby pepedog » Sun Dec 04, 2011 11:09 am

This is a caching problem on your pc. Not the plug
Windows? Ctrl F5 on web page, and possibly reboot (after deleting cache). Or try another PC.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: PogoPlug + PHP + Apache + Samba share

Postby Raymondday » Mon Dec 05, 2011 10:52 am

F5 Did not fix it. 2 other PC's same thing. Any other LAN things I can get to them by there name. But it does seem to take a day or 2.

The name and IP is in the list of LAN devices in my router. I think it's something with ArchLinux on it.

All I get is:

$this->bbcode_second_pass_quote('', 'O')ops! Google Chrome could not find alarm


Or this:

$this->bbcode_second_pass_quote('', 'I')nternet Explorer cannot display the webpage


Or this:

$this->bbcode_second_pass_quote('', 'N')etwork Error

Windows cannot access \\alarm

Check the spelling of the name. Otherwise, there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.


If I click on Diagnose. It just says something like Windows Can't help.

I can put it's IP in all them and it work then. The IP will show up under Network then. But never the name like other things I have on my LAN.

I guess all I can do is give alarm a static IP and edit the C:\Windows\System32\drivers\etc\hosts file with:

192.168.2.114 alarm

-Raymond Day
Raymondday
 
Posts: 77
Joined: Sat Nov 19, 2011 1:46 pm
Top

Re: PogoPlug + PHP + Apache + Samba share

Postby pepedog » Mon Dec 05, 2011 1:21 pm

2 issues here

Getting to destination via hostname requires device allocating ip address to have reverse dns, not likely.

If you can see index.php but not \ then try this
edit /etc/httpd/conf/extra/php5_module.conf to look like this (restart http after)
$this->bbcode_second_pass_code('', '<IfModule dir_module>
<IfModule php5_module>
DirectoryIndex index.php index.html
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
</IfModule>')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: PogoPlug + PHP + Apache + Samba share

Postby Raymondday » Mon Dec 05, 2011 4:22 pm

At:

/etc/httpd/conf/extra/php5_module.conf

Looks like this:

# Required modules: dir_module, php5_module

$this->bbcode_second_pass_code('', '<IfModule dir_module>
<IfModule php5_module>
DirectoryIndex index.php index.html
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
</IfModule>
</IfModule>')

Looks like it's the same as yours but some lines are added. So should I just copy and paste yours in mine?

-Raymond Day
Raymondday
 
Posts: 77
Joined: Sat Nov 19, 2011 1:46 pm

Re: PogoPlug + PHP + Apache + Samba share

Postby Raymondday » Mon Dec 05, 2011 4:30 pm

I just added your lines to mine but I did not delete any of my lines in the file. So mine looks like this now:

# Required modules: dir_module, php5_module

$this->bbcode_second_pass_code('', '<IfModule dir_module>
<IfModule php5_module>
DirectoryIndex index.php index.html
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
</IfModule>
</IfModule>')

Did:

$this->bbcode_second_pass_code('', '/etc/rc.d/httpd restart')

But still no good. I guess I have to wait for my router release and renew IP's yet.

-Raymond Day
Raymondday
 
Posts: 77
Joined: Sat Nov 19, 2011 1:46 pm

Re: PogoPlug + PHP + Apache + Samba share

Postby pepedog » Mon Dec 05, 2011 5:53 pm

It is one method, OR the other
You must have these 2 lines in httpd.conf
LoadModule php5_module modules/libphp5.so
Include /etc/httpd/conf/extra/php5_module.co
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: PogoPlug + PHP + Apache + Samba share

Postby Raymondday » Mon Dec 05, 2011 6:05 pm

I all ready have them 2 lines in /etc/httpd/conf/httpd.conf file.

-Raymond Day
Raymondday
 
Posts: 77
Joined: Sat Nov 19, 2011 1:46 pm

Re: PogoPlug + PHP + Apache + Samba share

Postby pepedog » Mon Dec 05, 2011 7:05 pm

Look, if you tried both methods, and only index.php works, it is a cache problem on your pc.
Force plug to get a different ip address, alter plug host file, restart apache, and try again
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: PogoPlug + PHP + Apache + Samba share

Postby Raymondday » Tue Dec 06, 2011 10:20 am

At lest now it's is loading the index.php with out adding that at the end of the URL. So that's fix.

When I go to Gallery 3:

http://192.168.2.114/gallery3/installer/index.php

It says Success! Your Gallery 3 install is complete!

Start using Gallery.

I click that one and page can't be displayed.

I do have now Wordpress and phpBB working on it. But I can't get my old database working with the phpBB board yet. It only shows one message.

I all so got torrentflux working on it. That was easy.

Just did on my router "DHCP Release" then clock on "DHCP Renew". I got a new WWW IP and cleared on the LAN computers got 192.168.2.114 alarm back. But I still can't go to it's name only IP. It my take some time before Windows knows after I did that to the router.

-Raymond Day
Raymondday
 
Posts: 77
Joined: Sat Nov 19, 2011 1:46 pm

Re: PogoPlug + PHP + Apache + Samba share

Postby pepedog » Tue Dec 06, 2011 5:01 pm

Your router does not have a DNA server running, you cannot get to plug with alarm.
Check http logs to see what error is, it could be permissions, or a htaccess file, or httpd.conf, or many things.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

PreviousNext

Return to User Questions

Who is online

Users browsing this forum: No registered users and 6 guests