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:
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
After mv, did you check that EVERYTHING was moved ?
Do you have a .htaccess at the root of your site ?
Offline
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.
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:
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
I just checked moving / renaming piwigo dir. It works, so I suppose there is so;ething else I don't know ...
Offline
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
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
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
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
please check the links.
Offline
"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
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
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
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?
Offline
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
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.
Offline