where server root?is

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

where server root?is

Postby capchap » Sat Aug 09, 2014 1:32 pm

Hi all,
I finally finished installing LAMP (kirkwood) on my pogoplug/8gb memorex thumbdrive.

I am having trouble with a few things and I'm not sure I know where to start to figure out whats going on
I tried to see how my machine is configured by putting phpinfo.php in my root dir (/srv/http)

when i run it I get a blank page, but if i vire source it contans
<?php
phpinfo();
?>
and should work...but all I get is a blank page,
i have a small index file in same dir that containg the words First file which shows if I just go to the root page.
but if I try to access the info then I get a blank page.

It seems that php isnt runnig?
how do I start and stop services in linux-kirkwood?

what do you think the issue is?

any help would be greatly appreciated.

Thanks
Don
capchap
 
Posts: 60
Joined: Sat Aug 09, 2014 3:47 am

Re: where server root?is

Postby WarheadsSE » Sat Aug 09, 2014 2:24 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: where server root?is

Postby capchap » Sat Aug 09, 2014 5:11 pm

[root@alarm http]# apcahectl configtest
-bash: apcahectl: command not found
[root@alarm http]# more /etc/rc.d
/etc/rc.d: No such file or directory
[root@alarm http]# systemctl status httpd
● httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: inactive (dead)

all of the installs went without error, but something isnt right.
http seems to run because it does load the simple html
but wont run phpinfo correctly (blank screen)
capchap
 
Posts: 60
Joined: Sat Aug 09, 2014 3:47 am

Re: where server root?is

Postby pepedog » Sat Aug 09, 2014 5:46 pm

You going to have to check what you have done
https://wiki.archlinux.org/index.php/LAMP#PHP
Make sure after editing you restart with systemctl restart httpd

I assume you are viewing web page withe internet explorer, do ctrl F5 and not just refresh
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: where server root?is

Postby capchap » Sat Aug 09, 2014 11:20 pm

no, Firefox.
I'll read the link more thoroghly, but it seems like is =t says I need to know more about what was installed than I do.
i followed the instructions pretty explicitly, so I dont understand why is doesnt work for the environment the instructions were written.

The procress gives instructins for making some very specific changes, so if it needs to be tweaked, then I would think they would be included.
capchap
 
Posts: 60
Joined: Sat Aug 09, 2014 3:47 am

Re: where server root?is

Postby capchap » Sat Aug 09, 2014 11:35 pm

its very difficult to figure out whart went wrong when the reference files dont match what is existingfor example, it says in order to use php, then a line must be changd in /etc/httpd/conf/httpd.conf but it doesnt exist.

see the following.
MacBookPro:log Pastor$ cd /etc/httpd/conf
-bash: cd: /etc/httpd/conf: No such file or directory
(its httpd that doesnt exist, therefore neither does conf



If your DocumentRoot is not /srv/http, add it to open_basedir in /etc/php/php.ini as such:
open_basedir=/srv/http/:/home/:/tmp/:/usr/share/pear/:/path/to/documentroot
but that doesnt exist either
(Its actually/etc/php that doesnt exist; therefore nothing below it does either.

if httpd/conf doesnt exist; how is httpd running?
I am really lost.
I didnt have any trouble like thins installing CENTOS 6.5 LAMP servers
capchap
 
Posts: 60
Joined: Sat Aug 09, 2014 3:47 am

Re: where server root?is

Postby moonman » Sun Aug 10, 2014 12:06 am

Please use code tags. You are doing something wrong. Why does your command prompt read MacbookPro? Do you have all the required packages installed?

EDIT: i just installed apache and the directories are where they should be.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: where server root?is

Postby capchap » Sun Aug 10, 2014 12:29 am

well last part is my bad.
when I changed apache start at boot status I didnt notice it had kicked me off so a couple searches we on my mac and not on the Arch Linux ARM install

I'll update with status as soon as I log back in and assess...maybe php started...
capchap
 
Posts: 60
Joined: Sat Aug 09, 2014 3:47 am

Re: where server root?is

Postby capchap » Sun Aug 10, 2014 12:54 am

webmin is reporting:
The MySQL startup script /etc/rc.d/mysqld was not found on your system. Maybe MySQL is not installed, or your module configuration is incorrect.

it is showing the config file for php at the correct location, but php is still not running the phpinfo file.
capchap
 
Posts: 60
Joined: Sat Aug 09, 2014 3:47 am

Re: where server root?is

Postby capchap » Sun Aug 10, 2014 1:01 am

I was looking at your install instructions and noticed
get http://archlinuxarm.org/os/ArchLinuxARM ... est.tar.gz

where my instructions say wget http://archlinuxarm.org/os/ArchLinuxARM ... est.tar.gz

will this make a difference?
My pogoplug device is an e02 model

I'm not afraid to start over if that's what is needed, but if it isnt going to make a difference, then I'll focus on fixing what I have.
all the installs went without error, all of the pacman updates went without error
all of the pacman installs
apache, php, mysql, webmin etc. went without issue.
capchap
 
Posts: 60
Joined: Sat Aug 09, 2014 3:47 am

Next

Return to ARMv5

Who is online

Users browsing this forum: No registered users and 5 guests

cron