google cloud console - phpmyadmin 404 not found - google-compute-engine

Trying to create a new instance for running a php web app. But never installed a new server before. So I have followed all the instructions from the link below but when I go to http://[my ip addess]/phpmyadmin
I get a 404 error.
https://cloud.google.com/community/tutorials/setting-up-lamp?_ga=2.212307860.-1468980495.1579877933

As per the Ubuntu Help Community, if you're getting a 404 error upon visiting http://localhost/phpmyadmin, you will need to configure apache2.conf to work with Phpmyadmin.
Try the following command:
$ gksudo gedit /etc/apache2/apache2.conf
Include the following line at the bottom of the file, save and quit.
$ Include /etc/phpmyadmin/apache.conf
Greetings!

Related

how to setup phpmyadmin on nginx with laraval?

does anybody know how to setup phpmyadmin on nginx server (ubuntu) with laravel?..
my site is built with laravel and hosted on /var/www/mysite/
the default nginx-config is disabled...site is not hosted under the default html directory, but on the /var/www/mysite directory...(because i plan to host one more site on the same server in future)
Laraval installation works, but i am unable to access phpmyadmin..
i have already tried the ln -s /usr/share/phpmyadmin /var/www/mysite/ approach but laravel gives a 404 error
the guides found on the internet do not specify how to install phpmyadmin onto a nginx-laravel combo.. the settings are different than a normal nginx only installation..
does anybody know the correct steps to make it working?
Your question is not about use specifically phpmyadmin, but how to use more than one site under the same host with nginx, it doesn't matter if it is phpmyadmin. If you already have your website at /var/www/mysite you cannot map the phpmyadmin to the same path (symlink), you have to map it to another folder, like this:
ln -s /usr/share/phpmyadmin /var/www/phpmyadmin/
Make sure that your .conf files at nginx are right, post them here.
Remember to reload the server and it could be the case to map the public phpmyadmin folder (that contains index file) if it exists.
Check it out: https://fedingo.com/how-to-host-multiple-domains-on-one-server-in-nginx/
English isn't my first language, ask me again if you didn't understand something.

Phabricator installation problem " FATAL ERROR: Unable to load the "Arcanist" library. Put "arcanist/" next to "phabricator/" on disk."

I'm trying to install Phabricator with that documentation: https://websiteforstudents.com/install-phabricator-platform-on-ubuntu-16-04-18-04-with-apache2-mariadb-and-php-7-2
When i use "sudo ./bin/config set mysql.host localhost" command there was a error:
FATAL ERROR: Unable to load the "Arcanist" library. Put "arcanist/" next to "phabricator/" on disk.
Any solution?
It looks like the most recent git commit is missing some critical files from the arcanist directory.
I downloaded commit 26f853b from 2 days ago (26f853b6343083c3ddfb6a393843edb20248ee71.zip) from here and the script ran through. I haven't tested if phabricator actually works with it however.
You might want to submit a bugreport.
I've received the same fatal when tried to upgrade the Phabricator via update script.
I did manual update in the path in
./phabricator/scripts/init/lib.php
from
"arcanist/scripts/init/init-script.php"
to
"arcanist/support/init/init-script.php"
after which the update script passed and storage upgrade was ok.
Maybe there was a typo and the "scripts" in the path should be "support".
Also reported here https://discourse.phabricator-community.org/t/the-phutil-library-phutil-has-not-been-loaded/3543/2

Perl can't load SSLeay.dll because LWP::Protocol::https is not installed

For internal messaging the company I work for uses Slack. It allows for a lot of awesome integration with tons of different software and services. I'm making my own bot for sending webhooks to Slack.
I got everything set up and working, I have a Perl script that sends a JSON payload. If I trigger the script manually, everything works flawlessly and my Slack bot sends messages.
However, when the script gets triggered by Finalbuilder (Software for automatic build processing), it it fails.
I get the following response:
501 Can't load 'C:/Strawberry/perl/site/lib/auto/Net/SSLeay/SSLeay.dll' for module Net::SSLeay: load_file:The specified module could not be found (LWP::Protocol::https not installed)
So I figured I needed to install the "LWP::Protocol::https" module. I just opened my cpan client and wrote install LWP::Protocol::https
Still get the error after installing the module.
I wrote test LWP::Protocol:https, which gave the following response:
Running test for module 'LWP::Protocol::https'
Running make for M/MS/MSCHILLI/LWP-Protocol-https-6.06.tar.gz
Checksum for C:\Strawberry\cpan\sources\authors\id\M\MS\MSCHILLI\LWP-Protocol-https-6.06.tar.gz ok
Scanning cache C:\Strawberry\cpan\build for sizes
............................................................................DONE
CPAN.pm: Going to build M/MS/MSCHILLI/LWP-Protocol-https-6.06.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for LWP::Protocol::https
Could not read metadata file. Falling back to other methods to determine prerequisites
cp lib/LWP/Protocol/https.pm blib\lib\LWP\Protocol\https.pm
MSCHILLI/LWP-Protocol-https-6.06.tar.gz
C:\Strawberry\c\bin\dmake.EXE -- OK
Running make test
C:\Strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,'blib\lib', 'blib\arch')" t/*.t
t/apache.t ....... ok
t/https_proxy.t .. 1/56 # creating cert for direct.ssl.access
# creating cert for direct.ssl.access
# creating cert for foo
# creating cert for bar
# creating cert for foo
# creating cert for foo
# creating cert for bar
# creating cert for bar
t/https_proxy.t .. ok
All tests successful.
Files=2, Tests=61, 8 wallclock secs ( 0.02 usr + 0.01 sys = 0.03 CPU)
Result: PASS
MSCHILLI/LWP-Protocol-https-6.06.tar.gz
C:\Strawberry\c\bin\dmake.EXE test -- OK
I can trigger my script with windows CMD, or Finalbuilder. Both will work just fine, but when the Finalbuilder project gets activated through Continua CI, I get the "can't load ssleay.dll" error.
I have no clue what to do now. Does anyone know how I can fix the Perl error?
I got this same error while running scripts from IDE, but not from command line (same issue).
My command line was adding these to the path. (These were not globally defined).
c:\perl\perl\bin;c:\perl\sup\bin;c:\perl\c\bin;
But the IDE didn't have these. So same fix should work for FinalBuilder, it is missing the perl path information.
Have you loaded the header files? I don't know what they are for Windows but in Linux, they're called: libssl-dev and zlib1g-dev
I also had this error for awhile. In my case the solution was quite simple. It turned out that I hadn't restarted the SVN service, so when it ran the post-commit.bat file the PATH environment hadn't been updated to reflect the new paths that had been added during the Perl install.
While I was testing I was running from a new console window which had the correct PATH, but as soon as it ran from the batch file via SVN it broke, with exactly the same error you posted.
Same problem with IDE Eclipse, command line fine but error with IDE.
I check the location:
C:\>perldoc -l LWP::Protocol::https
C:\zailperl\perl\vendor\lib\LWP\Protocol\https.pm
And I add it to Environments variables.
I didn't want to reboot my PC so I add the parent path to the IDE.
Right click on project.
enter image description here

How to install wordpress with MariaDB?

I am trying to install wordpress on my nginx + mariadb
First step of: pointing my url to
http://localhost/wordpress/
is throwing following error:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
I hope many other people are using wordpress with mariadb.
[EDIT]
Using WNMP for bundle installation of ( Nginx + MariaDB + PHP )
Maybe this helps you, its for Windows 7. Here are the steps
Get the files
Download only the compressed files which do not require installation to use the programs
get the Xeoncross’ WNMP https://github.com/Xeoncross/wnmp
get memcached http://code.jellycan.com/memcached/
get MySQL http://dev.mysql.com/downloads/
get nginx http://nginx.org/en/download.html
get PHP http://windows.php.net/download/
get phpMyAdmin http://www.phpmyadmin.net/home_page/downloads.php
get wordpress http://www.wordpress.org/
Place the files
extract the content of WNMP to d:wemp
extract the memcached.exe to d:wempmemcached
extract the contents of MySQL to d:wempMySQL
extract the contents of nginx to d:wempnginx
extract the content of PHP to d:wempPHP
extract the content of phpMyAmdin to d:wempwwwphpMyAdmin
extract the content of wordpress to d:wempwwwwordpress
Configure
for MySQL, rename d:wempMySQLmy-small.ini to my.ini
for NginX, copy d:wempexample.nginx.conf to d:wempnginxconf, rename nginx.conf to nginx.conf.bak and rename example.nginx.conf to nginx.conf
for PHP, rename d:wempPHPphp.ini - development to php.ini
open the php.ini file in a text editor, remove the ; preceeding extension_dir = "ext"
remove the ; preceeding cgi.fix_pathinfo = 1
remove the ; preceeding extension=php_mbstring.dll
remove the ; preceeding extension=php_mysql.dll, save the file
Run
run d:wempstart_server.bat to start running, a few command prompt windows will pop up and disappear
Confirm they are running
open task manager by pressing Ctrl + Shift + Esc
check php-cgi.exe, memcached.exe, mysqld.exe, nginx.exe are running
run the following command in command prompt to change the root password of MySQL d:wempmysqlbinmysqladmin -u root password hereIsYourPassword
If face problem starting mysqld.exe than look the error in d:wempmysqldataerr.log
Test the server and install WordPress
start a browser (make sure there is no proxy)
visit http://localhost/
see the WNMP success page
visit http://localhost/phpMyAdmin/
log in with username root, password hereIsYourPassword!
create a database with the name wordpress
visit http://localhost/wordpress/
start the famous 5 mins installation of wordpress
mariadb is 100% compatible with the mysql interface in php
i think you're missing the module for php
depending on the distribution you're using i'd say do a
sudo apt-get install php5-mysqlnd
you can make sure the mysql mod is enabled by doing a phpinfo();
when running php5-fpm with nginx make sure the module is enabled at the right place
/etc/php5/fpm/

openshift : need to edit httpd.conf to enable or add directive according to my needs but it's not work

i've build my application on localhost and running it without any error. i choose openshift to host my application code but i have a problem to make it works perfectly like on my localhost.
i want to add directive of AllowEncodedSlashes and set it to On in my apache2 configuration file, i have tried to edit the file from ~/php/configuration/etc/conf/httpd.conf and then restart the server using ctl_all restart. but the result are http error code 400 (Bad Request). before i add this directive into httpd.conf the result are http error code 404, i am just not sure if the changes are in effect or not. or apache is bugging?
is there anyone knows howto make this work for me?
See if you can add it into .htaccess file instead of httpd.conf file. Also the best way to troubleshoot these problems would be by reviewing your application logs for errors. All you have to do is run "rhc tail {appName}" from your client machine (where the rhc client tools are installed). That gives you the current log entries.
To get to the entire log, you'll want to ssh onto the gear(s) on which the language framework/cartridge is installed using this FAQ and run: more ~/{cartridgeID}/logs/*.log
where {cartridgeID} is your framework cartridge like nodejs-0.6, or your embedded cartridge logs like mysql-5.1.
I created a feature request for this. See this Trello card and feel free to vote it up.