Announcement

#1 2014-02-07 01:13:49

GuruDavid
Member
United States
2014-02-07
2

Installing Piwigo in root path. ( / home / public_html )

Hello,

Useful Info:
--------------
CentOS release 6.5 (Final)
Apache/2.2.26
PHP 5.4.23
Piwigo 2.6.1 (NetInstall)
--------------

Goal:
--------------
Install Piwigo to the direct/root/home path. (eg. http://domain.tld not http://domain.tld/piwigo)
--------------

I have downloaded the latest version of Piwigo, (the NetInstall version) and followed all directions provided. I am able to successfully install Piwigo with no errors to the default defined path of http://domain.tld/ [ piwigo ] (or even a different, non-existing folder such as [ photos ]. However, if I leave it blank, as I want it install on the direct path, it's unsuccessful. After clicking to continue, it processes for a moment and results with a blank page.

Further more, during another attempt, I installed successfully to /photos. I then attempted moving the entire folder's contents up a level:
--
[/home/public_html/photos/]# mv * ../
--

Now, when accessing the direct url, rather than http://domain.tld/photos I receive the following error:

Code:

Warning: require(/home/public_html/photos/include/smarty/libs/Smarty.class.php): failed to open stream: No such file or directory in /home/public_html/photos/include/smarty/libs/SmartyBC.class.php on line 35

Fatal error: require(): Failed opening required '/home/public_html/photos/include/smarty/libs/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/public_html/photos/include/smarty/libs/SmartyBC.class.php on line 35

This suggests that the initial install path is still being referenced by a specific configuration or setting, however I have not been able to find it anywhere in the Admin Panel, online instructions, nor checking the installed files.

It seems to me that 'PHPWG_ROOT_PATH' isn't being called correctly somewhere, as all of the definitions I have found for it suggest './'

Any thoughts on this?

Offline

 

#2 2014-02-07 10:15:18

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Installing Piwigo in root path. ( / home / public_html )

After mv, did you check that EVERYTHING was moved ?
Do you have a .htaccess at the root of your site ?

Offline

 

#3 2014-02-08 03:14:18

GuruDavid
Member
United States
2014-02-07
2

Re: Installing Piwigo in root path. ( / home / public_html )

rvelices wrote:

After mv, did you check that EVERYTHING was moved ?
Do you have a .htaccess at the root of your site ?

Hello rvelices,

Thank you for your reply. The default installation of Piwigo does not create a .htaccess file, nor do or I did I have one in either directories. This is a brand new virtual host.

Code:

root@host [/home/(USER)/domains/(DOMAIN.TLD)/public_html]# ls piwigo/* | wc -l
ls: cannot access piwigo/*: No such file or directory
0
root@host [/home/(USER)/domains/(DOMAIN.TLD)/public_html]# ls piwigo/*.* | wc -l
ls: cannot access piwigo/*.*: No such file or directory
0

As previously stated in this post the only errors being presented are as follows:

Code:

root@light [/home/(USER)/domains/(DOMAIN.TLD)/public_html]# cat error_log 
[08-Feb-2014 02:11:57 UTC] PHP Warning:  require(/home/(USER)/domains/(DOMAIN.TLD)/public_html/piwigo/include/smarty/libs/Smarty.class.php): failed to open stream: No such file or directory in /home/(USER)/domains/(DOMAIN.TLD)/public_html/piwigo/include/smarty/libs/SmartyBC.class.php on line 35
[08-Feb-2014 02:11:57 UTC] PHP Fatal error:  require(): Failed opening required '/home/(USER)/domains/(DOMAIN.TLD)/public_html/piwigo/include/smarty/libs/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/(USER)/domains/(DOMAIN.TLD)/public_html/piwigo/include/smarty/libs/SmartyBC.class.php on line 35

Which, again suggests that something is referencing the old location.

Offline

 

#4 2014-02-08 07:34:43

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Installing Piwigo in root path. ( / home / public_html )

I just checked moving / renaming piwigo dir. It works, so I suppose there is so;ething else I don't know ...

Offline

 

#5 2017-08-17 09:40:54

abelljms
Member
london
2017-08-17
4

Re: Installing Piwigo in root path. ( / home / public_html )

as an (idiot) user, it is obvious that nowhere is there a CLEAR install set of instructions

step 1
download
step 2
install to........................
step 3-97
magic happens
step 98
it works

without 3-97, I'm sitting screaming

Offline

 

#6 2017-08-17 10:23:43

homdax
Member
Sweden
2015-02-02
294

Re: Installing Piwigo in root path. ( / home / public_html )

Care to elaborate on that abelljms?

I have done a few piwigo installations to /root/, in fact that is all I do since i allocate subdomains to them so i am not sure what you are saying or if you are jesting?

Offline

 

#7 2017-08-17 12:22:49

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13790

Re: Installing Piwigo in root path. ( / home / public_html )

abelljms wrote:

as an (idiot) user, it is obvious that nowhere is there a CLEAR install set of instructions

What about these http://piwigo.org/basics/installation_netinstall ?

Offline

 

#8 2017-08-18 13:39:16

abelljms
Member
london
2017-08-17
4

Re: Installing Piwigo in root path. ( / home / public_html )

Thank you for replying, i am deadly serious.

I've followed what iso n the website and got nowhere. I'm sure it's all easy if you speak fluent 'itgeek', but I'm just a normal person.

Maybe a tool to check an instal/configuration would help, to give you a diagnostic report?

Offline

 

#9 2017-08-18 13:53:16

abelljms
Member
london
2017-08-17
4

Re: Installing Piwigo in root path. ( / home / public_html )

please check the links.

Offline

 

#10 2017-08-18 14:51:21

abelljms
Member
london
2017-08-17
4

Re: Installing Piwigo in root path. ( / home / public_html )

"Once the NetInstall script has transferred, "

### NetInstall

* Download the [NetInstall script](http://piwigo.org/download/dlcounter.ph … netinstall)
* Transfer the script to your web space with any FTP client
* Open the script in you web browser (for example http://example.com/piwigo-netinstall.php) and follow the steps

[More information](http://piwigo.org/basics/installation_netinstall)

er HOW??

This is step 5 of the secrets?
do i save it as a text file and ftp it across? how does that help?

Offline

 

#11 2017-08-18 14:58:17

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13790

Re: Installing Piwigo in root path. ( / home / public_html )

How what?

Piwigo.org is not the right place to teach what is an FTP and how to use it. Having a few skills on managing an hosting (I'm talking about a shared hosting, not a dedicated server) is a prerequisite to use Piwigo on a shared hosting.

If you don't want to learn how to use an FTP client, but still want to try (and maybe stick with) Piwigo, then https://piwigo.com/signup is pretty straightforward ;-)

Offline

 

#12 2017-08-18 14:59:07

homdax
Member
Sweden
2015-02-02
294

Re: Installing Piwigo in root path. ( / home / public_html )

Ok, back to basics.

Do you know what a web host is?
Do you know what FTP is?
Do you have experience in remote file management?
Do you know what PHP is?
Do you know what a Database, in this context, is?

All of the above, and some more, is presumed knowledge. If you do not have it, well, I guess you will have to learn from basics, back to "internet elementary school". And we do not really have one here.

Should above not apply, I apologize, then we have some other misunderstanding.

/Ninjae'd by PLG... :)

Last edited by homdax (2017-08-18 15:15:50)

Offline

 

#13 2017-08-19 21:47:24

erAck
Only trying to help
2015-09-06
2021

Re: Installing Piwigo in root path. ( / home / public_html )

abelljms wrote:

please check the links.

You're not supposed to enter http://example.com/piwigo-netinstall.php literally, "for example http://example.com/piwigo-netinstall.php" means it is an example and you need to replace example.com with the actual name of your domain, for example yourdomain.com ... ah well, this is an example as well, you got it?


Running Piwigo at https://erack.net/gallery/

Offline

 

#14 2021-08-12 12:10:00

Piwigoo
Member
2021-08-12
20

Re: Installing Piwigo in root path. ( / home / public_html )

Back to Topic, even if this thread is quite old right now:
The author wanted to install Piwigo under the Webserver root. I want the reverse thing: Installing it under a subpath (192..168.x.x/piwigo/).
Both ended in the same problem, that there’s no option to change the base url of Piwigo afterwards. As GuruDavid wrote it:

This suggests that the initial install path is still being referenced by a specific configuration or setting, however I have not been able to find it anywhere in the Admin Panel, online instructions, nor checking the installed files.
It seems to me that 'PHPWG_ROOT_PATH' isn't being called correctly somewhere, as all of the definitions I have found for it suggest './'

Since I’m using Docker I can’t install Piwigo directly under the subpath, I have to move it afterwards but I can’t find any option on how to change the base url.

I hope you can help me!

Last edited by Piwigoo (2021-08-12 12:14:05)

Offline

 

#15 2021-08-12 15:25:29

erAck
Only trying to help
2015-09-06
2021

Re: Installing Piwigo in root path. ( / home / public_html )

You don't have to change any setting to be able to run Piwigo from the subdirectory where it was installed. PHPWG_ROOT_PATH being ./ to define the relative current path, that is correct.

Something else in your docker installation is broken. But as you only say "both ended in the same problem" and don't tell which problem exactly there is no help possible.

And "Back to Topic" it's exactly not because as you state "I want the reverse thing", so a new topic would had been appropriate.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact